Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st July 2006, 15:26
tipsy tipsy is offline
Junior Member
 
Join Date: Jul 2006
Location: /dev/null
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default suPHP -couldn't create child process error

hi,

i was trying to follow the "How To Set Up suPHP With PHP4 And PHP5" but i ran into trouble when i tried to test my configuration

i managed to install the php cgi's and compiled the suPHP according to the instructions and my virtualhost config is as follows:

Code:
NameVirtualHost *
<VirtualHost *>

  ServerName www.example.com
  ServerAdmin webmaster@example.com
  DocumentRoot /var/www
  ErrorLog /var/log/apache2/error.log

  suPHP_Engine on
  suPHP_UserGroup testuser test
  AddHandler x-httpd-php .php .php3 .php4 .php5
  suPHP_AddHandler x-httpd-php

</VirtualHost>
my suphp.conf file:

Code:
[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=www-data

;Path all scripts have to be in
docroot=/

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0077

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100


[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/bin/php4-cgi

;Handler for CGI-scripts
x-suphp-cgi=execute:!self
php installations:
Code:
# php5-cgi -v
PHP 5.1.4-1.dotdeb.2 (cgi-fcgi) (built: Jun  2 2006 10:26:45)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

# php4-cgi -v
PHP 4.3.10-16 (cgi-fcgi) (built: Aug 24 2005 20:10:22)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
now as for the error..

i am getting a http500 on every page (even with the simple phpinfo(); ) and when i look into /var/log/apache/error.log i see these lines:

Code:
[Fri Jul 21 20:25:49 2006] [error] [client x.x.x.x] (2)No such file or directory: couldn't create child process: /usr/sbin/suphp for /var/www/index.php
suphp exists in /usr/sbin

Code:
# /usr/sbin/suphp
suPHP version 0.6.1
(c) 2002-2005 Sebastian Marsching

suPHP has to be called by mod_suphp to work.
i have read that it is a bug (and apparently fixed according to: http://issues.apache.org/bugzilla/show_bug.cgi?id=30137 ).

what can i do to overcome this, i thought of compiling the latest 2.0 code but then it will break the apt-get..

thanks.

Last edited by tipsy; 22nd July 2006 at 09:52.
Reply With Quote
Sponsored Links
  #2  
Old 22nd July 2006, 10:20
tipsy tipsy is offline
Junior Member
 
Join Date: Jul 2006
Location: /dev/null
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

a follow up,

i noticed in my vhost config i used suPHP_UserGroup testuser test and thought it may be the problem. so i did:

# groupadd unpriv
# useradd -g unpriv suphpuser

and changed the suPHP_UserGroup to suPHP_UserGroup unpriv suphpuser


and it is now even worse

Code:
[Sat Jul 22 15:25:35 2006] [error] [client x.x.x.x] Premature end of script headers: index.php
[Sat Jul 22 15:25:35 2006] [error] [client x.x.x.x] SoftException in Application.cpp:291: UID of script "/var/www/index.php" is smaller than min_uid
index.php is:
Code:
<?php
  phpinfo();
?>

there is something terribly wrong going on here, any help is appreciated

Last edited by tipsy; 22nd July 2006 at 10:24.
Reply With Quote
  #3  
Old 22nd July 2006, 16:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Did you follow the tutorial as close as possible (please compare your setup with the one from the tutorial)? Which distribution do you use?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 22nd July 2006, 22:11
tipsy tipsy is offline
Junior Member
 
Join Date: Jul 2006
Location: /dev/null
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Did you follow the tutorial as close as possible (please compare your setup with the one from the tutorial)? Which distribution do you use?
hi,

i followed the guide step by step and i am using a fresh debian 3.1 installation.
just to ensure i did not skip a step, i tried it twice, and i restored the harddisk to the fresh state after i failed first time
Reply With Quote
  #5  
Old 23rd July 2006, 22:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Do the user testuser and the group test exist on your system? Please check /etc/passwd and /etc/group.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 24th July 2006, 10:55
tipsy tipsy is offline
Junior Member
 
Join Date: Jul 2006
Location: /dev/null
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Do the user testuser and the group test exist on your system? Please check /etc/passwd and /etc/group.
hi falko,

i noticed the user test and the group testuser did not exist after my first post so in my follow-up message i did:

Quote:
i noticed in my vhost config i used suPHP_UserGroup testuser test and thought it may be the problem. so i did:

# groupadd unpriv
# useradd -g unpriv suphpuser

and changed the suPHP_UserGroup to suPHP_UserGroup unpriv suphpuser
and it still did not solve it.


thanks for your help, it's much appreciated
Reply With Quote
  #7  
Old 25th July 2006, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

What does your vhost configuration look like now? Which error message do you get?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 25th July 2006, 23:07
tipsy tipsy is offline
Junior Member
 
Join Date: Jul 2006
Location: /dev/null
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
What does your vhost configuration look like now? Which error message do you get?
hi,

the vhost config is:
Code:
NameVirtualHost *
<VirtualHost *>

  ServerName www.example.com
  ServerAdmin webmaster@example.com
  DocumentRoot /var/www
  ErrorLog /var/log/apache2/error.log

  suPHP_Engine on
  suPHP_UserGroup unpriv suphpuser
  AddHandler x-httpd-php .php .php3 .php4 .php5
  suPHP_AddHandler x-httpd-php

</VirtualHost>
the error message is:
Code:
[Wed Jul 26 04:13:58 2006] [error] [client x.x.x.x] SoftException in Application.cpp:291: UID of script "/var/www/index.php" is smaller than min_uid
the usergroup 'unpriv' and user 'suphpuser' exist.


thanks for your help.
Reply With Quote
  #9  
Old 26th July 2006, 10:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Quote:
Originally Posted by tipsy
hi,

the vhost config is:
Code:
  suPHP_UserGroup unpriv suphpuser
It must be
Code:
suPHP_UserGroup suphpuser unpriv
instead. You mixed up the user and group.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 30th July 2006, 14:11
tipsy tipsy is offline
Junior Member
 
Join Date: Jul 2006
Location: /dev/null
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

well, i gave up. it does not work


thanks for your help anyway. i will probably use one of your other howtos to set up a web server.
regards.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42
Frustrated with ISPConfig install! woozyerdaddee Installation/Configuration 4 19th May 2006 03:38
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 18:07
Could not make OpenSSL yontengyatso Installation/Configuration 3 3rd November 2005 10:50
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 4th October 2005 23:53


All times are GMT +2. The time now is 06:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.