Control Web Panel

WebPanel => PHP => Topic started by: kh4it on April 08, 2015, 03:47:13 AM

Title: PHP 500 Internal Server Error
Post by: kh4it on April 08, 2015, 03:47:13 AM
Dear CWP,
I have some problem with access php file. when access php it shows 500 internal server error. I also try to follow this tip http://forum.centos-webpanel.com/php/suphp-500-internal-server-error/ (http://forum.centos-webpanel.com/php/suphp-500-internal-server-error/) but it's can't solve my problem. also when i see log file it show :
SoftException in Application.cpp:555 Directory /home is not owned by khomrean
Premature end of script headers : index.php

my question what is suitable solution with this problem? I also try to change chown but still the same. thanks in advance
Title: Re: PHP 500 Internal Server Error
Post by: brijendrasial on April 08, 2015, 10:44:41 AM
Looks like permission issue.
Title: Re: PHP 500 Internal Server Error
Post by: kh4it on April 08, 2015, 10:58:05 AM
Yes, I think this problem too, but i try to chown as in picture but still internal server error

(http://limhong.kh4it.com/image/data/2015-04-08_175418.png)

after that

(http://limhong.kh4it.com/image/data/2015-04-08_175438.png)
Title: Re: PHP 500 Internal Server Error
Post by: brijendrasial on April 08, 2015, 11:04:46 AM
Run the commands below

chown lawkhmer:nobody /home/lawkhmer/public_html
chown -R lawkhmer:lawkhmer /home/lawkhmer/public_html/*
Title: Re: PHP 500 Internal Server Error
Post by: kh4it on April 08, 2015, 11:07:13 AM
Yes, Already, but still Internal Server Error.
Title: Re: PHP 500 Internal Server Error
Post by: kh4it on April 08, 2015, 11:09:41 AM
Html I can access and see normally but if i open php file it show 500 internal error like that.

Here is the pic that i try with, but still error

(http://limhong.kh4it.com/image/data/2015-04-08_180753.png)
Title: Re: PHP 500 Internal Server Error
Post by: brijendrasial on April 08, 2015, 11:12:00 AM
did you do chown lawkhmer:nobody /home/lawkhmer/public_html
Title: Re: PHP 500 Internal Server Error
Post by: kh4it on April 08, 2015, 11:14:20 AM
Yes, of course. but not effect

(http://limhong.kh4it.com/image/data/2015-04-08_181313.png)
Title: Re: PHP 500 Internal Server Error
Post by: kh4it on April 08, 2015, 11:17:16 AM
In error_log it said like that Mismatch

(http://limhong.kh4it.com/image/data/2015-04-08_181604.png)
Title: Re: PHP 500 Internal Server Error
Post by: brijendrasial on April 08, 2015, 11:44:36 AM
you need to contact your server administrator to help you further.
Title: Re: PHP 500 Internal Server Error
Post by: kh4it on April 08, 2015, 11:55:50 AM
This server I try to install my self. How can I do? Does it relate to any configuration?
Title: Re: PHP 500 Internal Server Error
Post by: brijendrasial on April 08, 2015, 12:12:47 PM
Well a server admin can look and sort issue. As I am not developer of the script, you need to contact CWP team to assist you. Also seems like they provided managed support for once time: http://centos-webpanel.com/support-services
Title: Re: PHP 500 Internal Server Error
Post by: kh4it on April 08, 2015, 12:53:33 PM
Anyway thank you.
Title: Re: PHP 500 Internal Server Error
Post by: kh4it on April 09, 2015, 03:41:02 AM
It's work now. Because directory /home must be root:root