sudo /etc/init.d/apache2 restart not starting
There is some syntax error in the file apache2.conf
.
In a terminal, type:
cd /etc/apache2
Then:
apache2ctl configtest
Cannot load modules/mod_rewrite.so into server: /etc/apache2/modules/mod_rewrite.so: cannot open shared object file: No such file or directory
Enabling mod_rewrite
Now, we need to activate mod_rewrite
.
- sudo a2enmod rewrite
This will activate the module or alert you that the module is already in effect. To put these changes into effect, restart Apache.
- sudo service apache2 restart
for LoadModule vhost_alias_module /usr/lib/apache2/modules/mod_vhost_alias.so
sudo a2enmod vhost_alias