Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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"
share|improve this question

1 Answer 1

up vote 1 down vote accepted

A fix is simple:

chown root.root /
share|improve this answer
    
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 '13 at 17:39
    
I don't know but it works ok ;) –  Spacedust Jun 21 '13 at 15:25
    
Cooool!!! But... why chown root.root / has resolved the problem? tell me, please :-D –  Pol Hallen Jun 30 '13 at 17:51
    
Please up my answer ;) –  Spacedust Jul 13 '13 at 16:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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