Apache server commands

Enable an Apache site

The site must exist on the folder “/etc/apache2/sites-available”. The command “/etc/init.d/apache2 reload” needs to be executed after adding a new site in order to update Apache server configuration.

a2ensite [site]

Disable an Apache site

The command “/etc/init.d/apache2 reload” needs to be executed after removing a site in order to update the Apache server configuration.

a2dissite [site]

Reload config files

Whenever you update the Apache config files you will need to reload the new configuration.

/etc/init.d/apache2 reload

Restart Apache server

/etc/init.d/apache2 restart

Editing the php.ini file

sudo nano /etc/php5/apache2/php.ini

Comments 1

Leave a Reply to sandeepm Cancel reply

Your email address will not be published. Required fields are marked *