US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting
Register FAQ Community Calendar Today's Posts Search


Reply
 
Thread Tools
Old 08-30-2011, 12:32 PM   #1
Junior Member
 
Join Date: Apr 2011
Posts: 14
Spirre is on a distinguished road
Default 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.
Spirre is offline   Reply With Quote
Old 08-30-2011, 12:57 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

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
slava is offline   Reply With Quote
Old 08-30-2011, 01:00 PM   #3
Junior Member
 
Join Date: Apr 2011
Posts: 14
Spirre is on a distinguished road
Default

Correct, my system is running Ubuntu.. I will check what you wrote.
Spirre is offline   Reply With Quote
Old 08-30-2011, 01:14 PM   #4
Junior Member
 
Join Date: Apr 2011
Posts: 14
Spirre is on a distinguished road
Default

Slava: Thanks alot. suexec-custom solved my problems.
Spirre is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:46 PM.