httpd dont start

dvizhok

Verified User
Joined
Jun 10, 2008
Messages
21
Hello.

I install php-fpm + mod_php on my server
CentOS 6.4
cat cat options.conf
php1_release=5.3
php2_release=no
php1_mode=php-fpm
php2_mode=mod_php
but but I can not start apache

FastCgiIpcDir /var/run/fastcgi: access for server (uid 4294967295, gid 4294967295) failed: write not allowed

Tell me how to fix it.
Thank you.
 
I have same issue just updated to latest directadmin and apache Apache/2.4.6. Previously working apache will now not start.

php1_release=5.3
php2_release=5.4
php1_mode=mod_php
php2_mode=php-fpm


AH00526: Syntax error on line 3 of /etc/httpd/conf/extra/httpd-fastcgi.conf:
FastCgiIpcDir /var/run/fastcgi: access for server (uid 4294967295, gid 4294967295) failed: write not allowed

# cat /etc/httpd/conf/extra/httpd-fastcgi

<IfModule mod_fastcgi.c>
FastCgiWrapper /usr/sbin/suexec
FastCgiIpcDir /var/run/fastcgi

<FilesMatch \.php54$>
SetHandler php54-fcgi
</FilesMatch>

<Location /php54-bin>
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</Location>

Action php54-fcgi /php54-bin
</IfModule>







Any help please.

Thank you


Jonathan
 
Last edited:
The best thing to do is to get the new configuration files:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

Alternative way to solve the problem (if you wouldn't like to rewrite the configs):
Code:
​mkdir -p /var/run/fastcgi/dynamic
chown -R apache:apache /var/run/fastcgi
 
Thanks for looking at this Martynas.

/var/run/fastcgi/dynamic already exists with apache:apache ownership on both servers
 
No mod_ruid

options.conf on

php1_release=5.3
php2_release=5.4
php1_mode=mod_php
php2_mode=php-fpm
php_ini=yes
php_timezone=BST
#Possible values - production or development
php_ini_type=production
ioncube=yes
zend=no

#HTTP server. Possible values: apache, nginx
webserver=apache

#Apache settings
#Possible value: 2.4
apache_ver=2.4
mod_ruid2=no
secure_htaccess=no
harden-symlinks-patch=no
use_hostname_for_alias=no
redirect_host=************
redirect_host_https=no
 
Last edited:
I am trying to reproduce the problem now with the settings posted. Thank you for the report.
 
The issue seems to be related to the custom templates you use :) The fix is:
Code:
cd /usr/local/directadmin/custombuild
./build update
mv custom custom_backup
./build rewrite_confs

In /etc/httpd/conf/httpd.conf you seem to have the following line placed above the User and Group directives, while it should be below:
Code:
Include /etc/httpd/conf/extra/httpd-phpmodules.conf

Please let me know the results :)
 
Hi Martynas

Thank you so much for your fix which solved the problem on both servers. httpd-phpmodules.conf was already below the User/Group statement so I have not needed to move it.

...and thanks for all your great work on custombuild.


Jonathan
 
Back
Top