Saturday, September 13, 2008

Setting apache web server

Install: sudo apt-get install apache2

Basically followed guidelines here.

The main thing I had to do was to create my own public_html directory, and create an apache config file pointing to it.

1) Create config file at /etc/apache2/sites-available/ (copy /etc/apache2/sites-available/default config file)
2) edit config file to point to created public_html directory
3) create public_html/cgi-bin directory if needed and modify ScriptAlias section of config file to point to created directory
4) disable apache default site: sudo a2dissite default
5) enable new site: sudo a2ensite (verify in /etc/apache2/sites-enabled/)
6) restart apache server: sudo /etc/init.d/apache2 restart

No comments: