help getting my Apache 2.4 on Ubuntu image back up and running
My procedure has been essentially
A) service apache2 start
B) look at error that presents. Go to /etc/apache2/mods-enabled and fiddle with the symbolic link pointing to ../mods-avaiilable. Often I flipped the link to the dpkg-new version of the file and the error migrated to a new place. Sometimes I simply removed the link for the .conf and .load to discipate the error.
C) repeat A
Now I'm stymed on an error point into my apache2.conf itself
===
service apache2 start
- Starting web server apache2 AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8
AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
Action 'start' failed.
The Apache error log may have more information.
===
The line 156 in apache2.conf is
===
147 # Sets the default security model of the Apache2 HTTPD server. It does
148 # not allow access to the root filesystem outside of /usr/share and /var/www.
149 # The former is used by web applications packaged in Debian,
150 # the latter may be used for local directories served by the web server. If
151 # your system is serving content from a sub-directory in /srv you must allow
152 # access here, or in any related virtual host.
153
155 AllowOverride None
156 Require all denied
157
158
===
There doesn't seem to be anything in the error log related to this error.
Any help would be appreciated.
Bob
4 Replies
Typically this occurs when Apache 2.2 is upgraded to 2.4. At a guess, the upgrade replaced the default configuration with new 2.4 versions but failed to install the new module configuration (possibly because it was messed around with in defiance of the distribution rules before the upgrade).
If there is nothing intricate in your configuration, the best bet would be a complete removal of Apache and all related packages, removal (after backup) of /etc/apache2 and letting the reinstall produce a correct default configuration.
However now my webpages can't be found.
eg. icanprogram.ca gets the default ubuntu page but icanprogram.ca/simpl says can't find pages. They are at /var/www/simpl on my system.
What do I have to reconfigure to bring things back up online.
Thanks in advance for your help.
bob
/var/www/html
When I symlink my simpl directory to that place the website comes up. yeh!!!
Thanks for all your help. I guess it is a small price to relocate my pages.
bob