suPHP and suEXEC broken by default in Ubuntu 10.04 Perfect Server

Discussion in 'HOWTO-Related Questions' started by jumba, May 28, 2010.

  1. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/suphp.conf?
     
  2. brafreider

    brafreider New Member

    it´s the unchanged original /etc/suphp/suphp.conf:
    Code:
    [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
    
    Cheers,
    Björn
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Can you try
    Code:
    ;Handler for CGI-scripts
    x-suphp-cgi="execute:!self"
    x-httpd-suphp=[COLOR="Red"]"[/COLOR]php:/usr/bin/php-cgi[COLOR="Red"]"[/COLOR]
    at the end of the file?
     
  4. brafreider

    brafreider New Member

    Ok, that seems to work (I´ll take a closer look tomorrow).
    Older Ubuntu Versions work without the quotes... is that a general Ubuntu 10.04/suphp bug?

    thanks,
    Björn
     
  5. icmono

    icmono New Member

    disabling PHP globally worked for me too. Thank you everyone for sharing.
     
    Last edited: Jun 17, 2010

Share This Page