ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   apache2 +suexec (http://forum.ispsystem.com//showthread.php?t=1509)

Spirre 08-30-2011 12:32 PM

apache2 +suexec
 
Hi, im been running apache2 and php5 as a module for my customers, then i realise that suexec aint working. changed over to php as cgi and now all pages get error 500, here is what the suexeclog says

[2011-08-30 11:25:11]: uid: (1021/futureon) gid: (1012/futureon) cmd: php
[2011-08-30 11:25:11]: command not in docroot (/home/futureon/data/php-bin/php)

Any ideas howto solve? or get suexec working with php as module.

slava 08-30-2011 12:57 PM

Hello,
what system you have (I think Debian or Ubuntu Linux?)
You should place files in suexec docroot i.e.
Code:

root@debian:~# /usr/lib/apache2/suexec -V
 -D AP_DOC_ROOT="/var/www"

Add
Code:

path DefaultHomeDir /var/www
to /usr/local/ispmgr/etc/ispmgr.conf and restart ISPmanager by killall ispmgr command and re-create user
Or install and configure apache2-suexec-custom package for AP_DOC_ROOT="/home" or "/" in /etc/apache2/suexec/www-data file

Spirre 08-30-2011 01:00 PM

Correct, my system is running Ubuntu.. I will check what you wrote.

Spirre 08-30-2011 01:14 PM

Slava: Thanks alot. suexec-custom solved my problems.


All times are GMT +2. The time now is 12:25 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.