Proper web server setup

Posted by DMin on Server Fault See other posts from Server Fault or by DMin
Published on 2011-03-05T15:18:23Z Indexed on 2011/03/05 15:26 UTC
Read the original article Hit count: 281

Filed under:
|
|

I just got myself a slicehost basic slice to play around with so I can learn how to setup web-servers.

I have Ubuntu 10.04.2 installed on the server.

I was able to successfully get the server up and running from scratch, these were the things I did - following this tutorial. I know this is probably just a starters tutorial, so, I was wondering if you guys can tell me what you like to do while setting up production servers.

These are the steps that were followed :

  • Update and Upgrade Ubuntu
  • sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server
  • Backup a copy of and edit apache2.conf Set :
    'ServerTokens Full' to 'ServerTokens Prod'
    'ServerSignature On' to 'ServerSignature Off'
  • Backup php.ini and then Change “expose_php = On” to “expose_php = Off”
  • Restart Apache

  • Install Shorewall firewall
  • Configure Shorewall to only accept HTTP and SSH connections(in the rules file)
  • Enable shorewall on startup
  • Add the website to the server :

    sudo usermod -g www-data root
    sudo chown -R www-data:www-data /var/www
    sudo chmod -R 775 /var/www
    

    I want make this CommunityWiki but can't seem to find the option to do it. Please feel free to add any feedback on the processes and things I am doing right/wrong. Much appriciated, thanks! :)

    © Server Fault or respective owner

    Related posts about configuration

    Related posts about process