FCGId - how check which user should run this?

4 posts / 0 new
Last post
#1 Sun, 11/25/2012 - 16:00
cybuch

FCGId - how check which user should run this?

Hello, I've had some problems with permissions on my home, so I've set 755 on entire public_html directory, via virtualmin panel I've recreated apache's virtualhost, but I get 500 HTTP internal server error whenever I'm trying to use FCGId, so actually I use mod_php. Other virtual servers work just fine, there's only problem with this one. Via virtualmin panel I've tried to set "Run CGI programs as" #1002 both user ID and group which seems to be fine, but the error occurs then. Any ideas?

Sun, 11/25/2012 - 18:03
andreychek

Howdy,

If you're getting 500 errors, you can see the exact error by looking in the Apache error logs... that would be in $HOME/logs/error_log. You may also need to take a peek at the system-wide Apache suexec log, it may offer some insight as well.

Note though that if Apache is running scripts as the #1002 user, that all the files in public_html, cgi-bin, and fcgi-bin, would also need to be owned by that same #1002 user.

-Eric

Mon, 11/26/2012 - 06:14
cybuch

@up All of my files under public_html are owned by #1002. Where're suexec logs and configuration? Because AFAIR acces_log shown something about permissions, so that might be it

Mon, 11/26/2012 - 08:32
andreychek

Howdy,

The suexec logs (along with all the other Apache logs) are located within /var/log. Where exactly depends on your distro.

If you dont' see them there, let us know what distro/version you're using, and I'll get the exact path and filename.

-Eric

Topic locked