error 500 after site save

Discussion in 'Installation/Configuration' started by DUCKFACE, Nov 10, 2010.

  1. DUCKFACE

    DUCKFACE New Member

    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: Mar 12, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

    Which PHP mode do you use? SuPHP, FastCGI, CGI?
     
  3. DUCKFACE

    DUCKFACE New Member

    Last edited: May 12, 2011
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /var/www/clients/client4/web4/web/index.php
    , and what's in /etc/suphp.conf?
     
  5. DUCKFACE

    DUCKFACE New Member

    -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
     
  6. falko

    falko Super Moderator ISPConfig Developer

    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?
     
  7. DUCKFACE

    DUCKFACE New Member

    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
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Please change
    Code:
    allow_directory_group_writeable=false
    to
    Code:
    allow_directory_group_writeable=true
    in /etc/suphp.conf and restart Apache.
     
  9. DUCKFACE

    DUCKFACE New Member

    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: May 12, 2011
  10. falko

    falko Super Moderator ISPConfig Developer

    Change
    Code:
    allow_directory_others_writeable=false
    to
    Code:
    allow_directory_others_writeable=true
    as well.
     
  11. DUCKFACE

    DUCKFACE New Member

    thanks

    Thanks a lot :)
    it works now.
    btw ... for what was those lines .. i could'nt found any documentation about that
    ________
    No2 review
    ________
    Video Reviews
    ________
    WATER BONGS
     
    Last edited: May 12, 2011
  12. falko

    falko Super Moderator ISPConfig Developer

    These options define whether directories in the path to your PHP script are allowed to be group-/others-writeable or not.
     

Share This Page