Virtualmin + Apache + CentOS 7 + Fresh Install - FCGID Permission Issues

Hi, I've setup a host with CENTOS 7 x64, creating some virtual domains in virtualmin choosing as "PHP script execution mode" the option "FCGId (run as virtual server owner)".

When I try to access a .php page, for example www.neuromante.it/ these entry are generated in common apache error log:

[Wed Nov 02 13:47:24.328711 2016] [fcgid:error] [pid 10880] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /run/mod_fcgid/10880.65 [Wed Nov 02 13:47:24.328746 2016] [fcgid:warn] [pid 10880] (13)Permission denied: mod_fcgid: spawn process /home/neuromante/fcgi-bin/php5.fcgi error

It seems the system is unable to create the socket in /run/mod_fcgid/.

It seems all other settings are correct.

What am I missing?

Best regards

Status: 
Active

Comments

Howdy -- hmm, that's a pretty unusual problem you're seeing there. I'd check if it works using CGI, which you can switch to in Server Configuration -> Website Options.

I'd also check if you're using the default PHP for CentOS -- sometimes third party packages can cause unusual issues like that.

It looks like you're using Virtualmin GPL there though, the area here is for folks using Virtualmin Pro. If you have any followup questions, we'd encourage you to ask those in the Forums. We monitor the Forums, along with lots of wonderful folks in the community. Thanks!

Hi, sorry for the wrong post.

However with mod_php is OK.

Webmin gives CentOS Linux 7.2.1511

php -v gives: PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

I think it is the release version.

In case anyone else encounters the same problem, the solution is to change the group ownership on the /var/run/mod_fcgid directory:

chgrp -R apache /var/run/mod_fcgid