- Posts: 106
- Thank you received: 10
apache2 + Plesk + php5 problems after Ubuntu 12.04 to 14.04.
- Support Team
- Topic Author
- Offline
- Moderator
Less
More
9 years 7 months ago #654
by Support Team
Problems and solutions
1:
================
Plesk and apache 2.4.7 need to be reconfigured.
Copy /etc/apache2/conf.d/zz010_psa_httpd.conf to /etc/apache2/conf-enabled/zz010_psa_httpd.conf
2.:
=================
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
===========================================================
I had this problem : The cause is in the file
/etc/apache2/sites-available/000-default.conf
where the root have changed:
before upgrade = /var/www
after upgrade = /var/www/html
So edit to modify this file
sudo gedit /etc/apache2/sites-available/000-default.conf
And restart apache
$ sudo service apache2 restart
and
I had this problem even though apache was working for me. I simply wanted to do a quick
$ /usr/sbin/apache2 -V
to find the value of SERVER_CONFIG_FILE. Because that\'s not the way to start apache2 any more it
fails with the errors the OP posts. A quick and dirty workaround is simply to set the envvars that
are missing first:
$ source /etc/apache2/envvars
$ /usr/sbin/apache2 -V
This sets the APACHE_LOCK_DIR variable and all is well (-D SERVER_CONFIG_FILE=\"apache2.conf\").
3.:
=============================
ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file,
not touching it
Remove /etc/apache2/mods-enabled/dir.conf and do
$ sudo a2enmod dir
When you run a2enmod, it creates a symlink in the mods-enabled folder pointing to the item in the
mods-available folder. It\'s failing because there\'s already a plain file with the same name. You
don\'t need to \"touch\" stuff.
4.:
=====================================
Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
Set up the right modules when using mpm event/ FPM , (mpm-fork /php5) or mpm-worker
$ apache2ctl -M
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
aclr_module (shared)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
macro_module (shared)
mime_module (shared)
mpm_event_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
remoteip_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
status_module (shared)
suexec_module (shared)
userdir_module (shared)
1:
================
Plesk and apache 2.4.7 need to be reconfigured.
Copy /etc/apache2/conf.d/zz010_psa_httpd.conf to /etc/apache2/conf-enabled/zz010_psa_httpd.conf
2.:
=================
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
===========================================================
I had this problem : The cause is in the file
/etc/apache2/sites-available/000-default.conf
where the root have changed:
before upgrade = /var/www
after upgrade = /var/www/html
So edit to modify this file
sudo gedit /etc/apache2/sites-available/000-default.conf
And restart apache
$ sudo service apache2 restart
and
I had this problem even though apache was working for me. I simply wanted to do a quick
$ /usr/sbin/apache2 -V
to find the value of SERVER_CONFIG_FILE. Because that\'s not the way to start apache2 any more it
fails with the errors the OP posts. A quick and dirty workaround is simply to set the envvars that
are missing first:
$ source /etc/apache2/envvars
$ /usr/sbin/apache2 -V
This sets the APACHE_LOCK_DIR variable and all is well (-D SERVER_CONFIG_FILE=\"apache2.conf\").
3.:
=============================
ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file,
not touching it
Remove /etc/apache2/mods-enabled/dir.conf and do
$ sudo a2enmod dir
When you run a2enmod, it creates a symlink in the mods-enabled folder pointing to the item in the
mods-available folder. It\'s failing because there\'s already a plain file with the same name. You
don\'t need to \"touch\" stuff.
4.:
=====================================
Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
Set up the right modules when using mpm event/ FPM , (mpm-fork /php5) or mpm-worker
$ apache2ctl -M
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
aclr_module (shared)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
macro_module (shared)
mime_module (shared)
mpm_event_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
remoteip_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
status_module (shared)
suexec_module (shared)
userdir_module (shared)
Please Log in or Create an account to join the conversation.