Apache error with environment variables (Ubuntu)

My OS is Ubuntu 12.04, I installed Apache, Php and Mysql separately. I have never had a problem, but after updating Ubuntu I always get the "404 Not Found" error when I try to access the php file on my web server.

When I write "apache2 -S" on my console, I get the following:

[Sat Feb 22 16:15:16.983766 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Sat Feb 22 16:15:16.983871 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Sat Feb 22 16:15:16.983914 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Sat Feb 22 16:15:16.983936 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Sat Feb 22 16:15:16.983966 2014] [core:warn] [pid 4475] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.987930 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[Sat Feb 22 16:15:16.988259 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.988433 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Feb 22 16:15:16.988456 2014] [core:warn] [pid 4475:tid 139974428579648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 75 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR} 

Can anybody help me?

+3
source share
3 answers

, , , , apache2. -, /etc/apache 2/envvars, , "service apache2 start". - apache2ctl.

+3

, , apache2 -S, . man- apache - . PHP-? apache - var/log/apache2.

0

I had a very similar problem with running Bugzilla locally through Apache 2.4 on Ubuntu Server 14.04. Running the command sudo /etc/init.d/apache2 gracefulforced to load the page where Chrome previously informed me that the data was not received. I hope someone is more knowledgeable than I can explain why it was effective, but service apache2 startit was apache2ctln’t.

0
source

All Articles