Personal tools
  • Log in
You are here: Home Support HowTo Build a Debian Etch Server with basic LAMP components
 

Build a Debian Etch Server with basic LAMP components

Building a fresh Debian system with basic LAMP components

Setup server environment
    First thing you'll want to do with your new server is login as root and change the root password by typing
        passwd
    Then add some users to your system with
        adduser username
    Setup your locales
            ??
    Setup your timezone
        type tzconfig then y, 3, Eastern for EST.        
    Next update your system to the most current distribution and base programs.
        apt-get update, apt-get upgrade, apt-get dist-upgrade
    And finally install a few programs that we will need.
        apt-get install sudo language-env build-essential subversion

Install Apache
    Now that we have a working environment, let's install our webserver.
        apt-get install apache2 libapache2-mod-perl2
    Edit /etc/apache2/apache2.conf and add this line
       NameVirtualHost *:80
    Enable apache modules.
        a2enmod rewrite proxy proxy_http
    If you are migrating the sites-enabled folder from another server type, login to the source data and type
        scp -r /etc/apache2/sites-enabled user@newserver:/etc/apache2
    If you are migrating home directories from another server, login to the source data and type
        scp -r /home/user/directory user@newserver:/home/username

Install MySQL
    Install base components.
        apt-get install mysql-server mysql-client phpmyadmin
    Edit /etc/apache2/sites-enabled/000-phpmyadmin
        Include /etc/phpmyadmin/apache.conf
    Edit /etc/phpmyadmin/apache.conf
       Add <VirtualHost *:80> declaration
   And restart apache
       /etc/init.d/apache2 restart

Install Webmin
    First off lets install some dependencies we'll need.
        apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
    Download and install the webmin .deb file
        wget http://prdownloads.sourceforge.net/webadmin/webmin_1.420_all.deb
        dpkg -i webmin_1.420_all.deb
   
You should now be able to login to Webmin at the URL https://localhost:10000/

Document Actions