Doc on fine tune LAMP server.

Discussion in 'Server Operation' started by satimis, Oct 9, 2007.

  1. satimis

    satimis New Member

    Hi folks,


    Ubuntu 7.04 server amd64, Host OS
    VMWare - virtual machine
    CentOS 5 - Guest OS


    I have the captioned Ubuntu server installed following the document;
    Ubuntu 7.04 (Feisty Fawn) LAMP Server Setup
    http://onlyubuntu.blogspot.com/2007/05/ubuntu-704-feisty-fawn-lamp-server.html

    and some other relevant docments to setup VMWare server and CenOS 5


    Now they are running. CentOS 5 can be started on vmware-server-console.


    I need to fine-tune the Ubuntu server. I found follwing documents;
    The Perfect Setup - Ubuntu Feisty Fawn (Ubuntu 7.04)
    http://howtoforge.org/taxonomy_menu/1/1/50?from=30

    Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)
    http://howtoforge.org/taxonomy_menu/1/1/50?from=40

    Rails production server setup and deployment on Ubuntu/Debian
    http://ariejan.net/2007/06/20/rails-production-server-setup-and-deployment-on-ubuntudebian/

    Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)
    http://howtoforge.org/taxonomy_menu/1/1/50?from=40

    etc.

    Please advise which of them is most suitable for my application? Or is there any more suitable document?


    TIA


    B.R.
    satimis
     
    Last edited: Oct 9, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

    What exactly do you want to do with your Ubuntu server?
     
  3. satimis

    satimis New Member

    Mainly mail server, if possible adding Web server.

    Since my goal is testing building a Virtual Machine on this box, not for production. Ubuntu is the Host OS. After its setup completed I'll test/add Guest OS on this PC. CentOS 5, as Guest OS, is already running on this box. I'll setup a LAMP server on it later.


    B.R.
    satimi
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. satimis

    satimis New Member

  6. falko

    falko Super Moderator ISPConfig Developer

  7. satimis

    satimis New Member

    Thanks for your URL.


    I was following;
    http://onlyubuntu.blogspot.com/2007/05/ubuntu-704-feisty-fawn-lamp-server.html

    to install "Ubuntu 7.04 server amd64"

    $ sudo fdisk -l
    Code:
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          31      248976   83  Linux
    /dev/sda2              32       19457   156039345    5  Extended
    /dev/sda5              32       19457   156039313+  8e  Linux LVM
    
    IIRC I only used 80G out of 160G capacity on the HD to proceed. My intention was to leave the remaining 80G for VMWare and other Guest OSs to be installed later. However on intalling VMWare server and the Guest OS, CentOS 5, it seemed to me that they were also installed on the same 80G partitions where the Host OS resides.

    Is there any way to check the unused 80G partion and use it? TIA


    I'll contiune checking Ubuntu 7.04, the Host OS, against your recommended doc. I'll complete the parts missed, if any, on my previous installation steps.


    B.R.
    satimis
     
  8. falko

    falko Super Moderator ISPConfig Developer

    You can mount it like this:
    Code:
    mount /dev/sda5 /mnt
    and then use it (as /mnt).
     
  9. satimis

    satimis New Member

    # mount /dev/sda5 /mnt/
    Code:
    mount: unknown filesystem type 'LVM2_member'
    
    I suspect whether I can mount it this way. It is LVM


    Edit:

    Continued on

    1)
    http://www.howtoforge.com/perfect_setup_ubuntu704_p3
    Original /etc/network/interfaces
    Code:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet static
            address 192.168.0.10
            netmask 255.255.255.0
            gateway 192.168.0.1
    
    Changing it as;
    Code:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet static
            address 192.168.0.10
            netmask 255.255.255.0
            network 192.168.0.0 
            broadcast  192.168.0.255
            gateway 192.168.0.1
    
    What will be the use of;
    network 192.168.0.0
    broadcast 192.168.0.255
    ???


    2)
    10 Quota
    http://www.howtoforge.com/perfect_setup_ubuntu704_p4

    original /etc/fstab
    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    /dev/mapper/ubuntu-root /               ext3    defaults,errors=remount-ro 0       1
    # /dev/sda1
    UUID=16932771-ab2e-41cf-aea9-f744b7a252eb /boot           ext3    defaults        0       2
    /dev/mapper/ubuntu-swap_1 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
    
    do I need to make any change on /etc/fstab ???


    3)
    Continued without changing /etc/fstab

    $ sudo touch /quota.user /quota.group
    No complaint

    $ sudo chmod 600 -c /quota.*
    Code:
    mode of `/quota.group' changed to 0600 (rw-------)
    mode of `/quota.user' changed to 0600 (rw-------)
    
    $ su
    Password:
    # mount -o remount /
    No complaint

    # quotacheck -avugm
    Code:
    quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
    
    How to get it fixed? Thanks

    # quotaon -avug
    No complaint.


    satimis
     
    Last edited: Oct 23, 2007
  10. falko

    falko Super Moderator ISPConfig Developer

    Yes, it must look like this:
    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    /dev/mapper/ubuntu-root /               ext3    defaults,errors=remount-ro[B][COLOR="Red"],usrquota,grpquota[/COLOR][/B] 0       1
    # /dev/sda1
    UUID=16932771-ab2e-41cf-aea9-f744b7a252eb /boot           ext3    defaults        0       2
    /dev/mapper/ubuntu-swap_1 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
    
     
  11. satimis

    satimis New Member

    Noted with thanks.

    satimis
     

Share This Page