Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
74
rated 0 times [  74] [ 0]  / answers: 1 / hits: 81590  / 2 Years ago, fri, september 23, 2022, 6:02:06

I updated to Ubuntu 13.10 (from Ubuntu 13.04) last weekend, and now Apache is not being able to start. It was working perfectly well until the upgraded, and I haven't changed anything myself.



When I ran a restart this is what I get



apache2: Syntax error on line 260 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/: No such file or directory


So, I created the directory, and then I get this:



 * Starting web server apache2                                                                                                                                      * 
* The apache2 configtest failed.
Output of config test was:
[Wed Oct 30 11:17:42.921934 2013] [proxy_html:notice] [pid 2496] AH01425: I18n support in mod_proxy_html requires mod_xml2enc. Without it, non-ASCII characters in proxied pages are likely to display incorrectly.
AH00526: Syntax error on line 84 of /etc/apache2/apache2.conf:
Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.


Thanks!


More From » upgrade

 Answers
4

Replacing this line



LockFile ${APACHE_LOCK_DIR}/accept.lock


with this one



Mutex file:${APACHE_LOCK_DIR} default


in /etc/apache2/apache2.conf solved the problem.



Additional Info:
It occurs because the upgrade also upgrades your PHP. If you upgrade from PHP5.3.X to PHP5.5.X - and choose to keep your modified files you will find this error.


[#28647] Friday, September 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ameatoes

Total Points: 321
Total Questions: 106
Total Answers: 112

Location: Belarus
Member since Sat, Jul 18, 2020
4 Years ago
;