Managing modules at the command line has never been easier than with Ubuntu. Even though we could use a single httpd.conf file to manage the Apache Server, Ubuntu include files from sub-directories. These directories include /etc/apache2/mods-enabled. The files in this directory local and configure modules for Apache but are just link to /etc/apache2/mods-available. When enables the links exists in mods-enabled to files in mods-available.
To create the required symbolic links in the mods-enabled directory Ubuntu include the command a2enmod(/usr/sbin/a2enmod) and the reciprocal command to remove the links is a2dismod(/usr/sbin/a2dismod). In the demomnstration we first diable and then re-enable php5.
sudo a2dismod php5 sudo a2enmod php5
Don’t forget you will need to restart the Apache server for any change to take effect:
service apache2 restart
The video follows