Bookmark and Share

Uninstalling Apache server

If Apache server has been installed, you may want to remove it and re-install it.

Update packages:

sudo apt-get update
sudo apt-get autoremove

Uninstall Apache2 and its configuration files:

sudo apt-get purge apache2
sudo apt-get autoremove

Installing

Reinstall Apache2 and PHP5 packages:

sudo apt-get install apache2 php5

Setting up ~/public_html/

Create public_html directory for storing Web site files:

mkdir $HOME/public_html

Configure Apache2 server to use $HOME/public_html as the Web site root path:

cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/userdir.conf userdir.conf
sudo ln -s ../mods-available/userdir.load userdir.load

Restarting Apache2 server

sudo /etc/init.d/apache2 restart

Or

sudo service apache2 restart

Installing PHP

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

Installing MySQL

See "Installing and configuring MySQL."

References

blog comments powered by Disqus