0

I'm trying to run a test phpinfo page from:

/home/admin/testdomain.com

But it displays such error:

Internal Server Error

Directory / is not owned by admin
suPHP 0.7.1

My /etc/suphp.conf is like this:

[global]
logfile=/var/log/httpd/suphp_log
loglevel=info
webserver_user=apache
docroot=/
env_path=/bin:/usr/bin
umask=0022
min_uid=500
min_gid=48

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

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false

;Send minor error messages to browser
errors_to_browser=true

[handlers]
;Handler for php-scripts
x-httpd-php="php:/usr/bin/php-cgi"
; x-httpd-php52="php:/usr/local/lxlabs/ext/php/bin/php_cgi"
x-httpd-php52="php:/usr/local/lxlabs/ext/php/etc/lxphpcgi.sh"

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"

1 Answer 1

2

A fix is simple:

chown root.root /
4
  • First thanks a lot, the fix is indeed easy and quick! How come it happens? Why should the / permissions change? And why SuPHP talks about "not owned by user" while the / has to be owned by root ?
    – user176078
    May 31, 2013 at 17:39
  • I don't know but it works ok ;)
    – Spacedust
    Jun 21, 2013 at 15:25
  • Cooool!!! But... why chown root.root / has resolved the problem? tell me, please :-D
    – Pol Hallen
    Jun 30, 2013 at 17:51
  • Please up my answer ;)
    – Spacedust
    Jul 13, 2013 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.