Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th November 2010, 21:56
DUCKFACE DUCKFACE is offline
Member
 
Join Date: Dec 2008
Location: Bulgaria
Posts: 92
Thanks: 2
Thanked 2 Times in 2 Posts
Default error 500 after site save

Hello
im useng ispconfig3.0.3 and ubuntu 10.04
when i open site configirations and save it i get error 500.
here is logerror of the site
[Wed Nov 10 22:22:56 2010] [error] [client 192.168.1.1] SoftException in Application.cpp:350: UID of script "/var/www/clients/client4/web4/web/index.php" is smaller than min_uid
[Wed Nov 10 22:22:56 2010] [error] [client 192.168.1.1] Premature end of script headers: index.php
i try to make it with diferent site and the result is teh same
any idea what gets wrong?
________
Life Saber

Last edited by DUCKFACE; 12th March 2011 at 07:17.
Reply With Quote
Sponsored Links
  #2  
Old 11th November 2010, 13:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Which PHP mode do you use? SuPHP, FastCGI, CGI?
__________________
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
  #3  
Old 12th November 2010, 00:16
DUCKFACE DUCKFACE is offline
Member
 
Join Date: Dec 2008
Location: Bulgaria
Posts: 92
Thanks: 2
Thanked 2 Times in 2 Posts
Default

I am trying all of them .
in fact i want to use SuPHP but it wont work. Before i upgrade to 3.0.3 everything was OK. After upgrade i try to set "BACKUP" option to "weekly" on only one site and problems starts. Next i open another one and just press "save". It breaks too.
any idea whats wrong ?
________
Free ticketmaster gift cards
________
Colorado medical marijuana dispensaries
________
STARCRAFT 2 REPY

Last edited by DUCKFACE; 12th May 2011 at 03:09.
Reply With Quote
  #4  
Old 12th November 2010, 15:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

What's the output of
Code:
ls -la /var/www/clients/client4/web4/web/index.php
, and what's in /etc/suphp.conf?
__________________
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
  #5  
Old 13th November 2010, 10:34
DUCKFACE DUCKFACE is offline
Member
 
Join Date: Dec 2008
Location: Bulgaria
Posts: 92
Thanks: 2
Thanked 2 Times in 2 Posts
Default

-rwxr--r-- 1 web4 client4 1085 2010-06-28 19:43 /var/www/clients/client4/web4/web/index.php

and the SU

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

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=www-data

;Path all scripts have to be in
docroot=/var/www:${HOME}/public_html

;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=0022

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100


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

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
x-httpd-suphp="php:/usr/bin/php-cgi"
umask=0022
umask=0022
umask=0022
umask=0022
x-httpd-suphp="php:/usr/bin/php-cgi"
umask=0022
x-httpd-suphp="php:/usr/bin/php-cgi"
umask=0022
Reply With Quote
The Following User Says Thank You to DUCKFACE For This Useful Post:
bowlAltetle (21st July 2014)
  #6  
Old 14th November 2010, 19:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Please remove these lines at the end of suphp.conf and restart Apache:

Code:
umask=0022
umask=0022
umask=0022
umask=0022
x-httpd-suphp="php:/usr/bin/php-cgi"
umask=0022
x-httpd-suphp="php:/usr/bin/php-cgi"
umask=0022
What's the UserID of the user web4, and what's the GroupID of the group client4?
__________________
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
  #7  
Old 15th November 2010, 19:24
DUCKFACE DUCKFACE is offline
Member
 
Join Date: Dec 2008
Location: Bulgaria
Posts: 92
Thanks: 2
Thanked 2 Times in 2 Posts
Default

i removed the unmasks .... but the problem is still there
Group client4 5014 member www-data
Client web4 5006 group client4
the error log for the site in ispconf is:
[Mon Nov 15 20:19:25 2010] [error] [client 192.168.1.1] SoftException in Application.cpp:564: Directory "/var/www/clients" is writeable by group
[Mon Nov 15 20:19:25 2010] [error] [client 192.168.1.1] Premature end of script headers: index.php
and for the other site that i broke the error log is :
[Mon Nov 15 20:19:05 2010] [error] [client 192.168.1.1] SoftException in Application.cpp:564: Directory "/var/www/clients" is writeable by group
[Mon Nov 15 20:19:05 2010] [error] [client 192.168.1.1] Premature end of script headers: index.php
[Mon Nov 15 20:19:05 2010] [error] [client 192.168.1.1] File does not exist: /var/www/clients/client4/web4/web/error/500.php
Reply With Quote
  #8  
Old 16th November 2010, 16:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Please change
Code:
allow_directory_group_writeable=false
to
Code:
allow_directory_group_writeable=true
in /etc/suphp.conf and restart Apache.
__________________
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
  #9  
Old 16th November 2010, 18:48
DUCKFACE DUCKFACE is offline
Member
 
Join Date: Dec 2008
Location: Bulgaria
Posts: 92
Thanks: 2
Thanked 2 Times in 2 Posts
Default

somethin is realy wrong here ...
the saga continue
[Tue Nov 16 19:44:07 2010] [error] [client 192.168.1.1] SoftException in Application.cpp:573: Directory "/var/www/clients" is writeable by others
[Tue Nov 16 19:44:07 2010] [error] [client 192.168.1.1] Premature end of script headers: index.php
________
VAPORIZER
________
Threesome videos
________
Wendie 99

Last edited by DUCKFACE; 12th May 2011 at 03:09.
Reply With Quote
  #10  
Old 18th November 2010, 13:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

Change
Code:
allow_directory_others_writeable=false
to
Code:
allow_directory_others_writeable=true
as well.
__________________
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
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
multiple site with sub domains issues jtullous Installation/Configuration 6 22nd June 2010 02:41
every time I save a setting in a site, index.html gets recreated Ovidiu General 2 28th July 2009 00:14
Site Skeletons rbartz Feature Requests 11 29th November 2008 16:07
I just need one website...... showe1966 Installation/Configuration 21 19th September 2007 23:20
Static Web Site Configurations christopher Installation/Configuration 8 18th November 2006 14:43


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


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