Author Topic: suPHP - 500 Internal Server Error  (Read 77528 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #45 on: January 24, 2019, 12:13:48 AM »
Hi guys.

I'm trying to solve this HTTP ERROR 500 (6 days trying and nothing....),
but i can't solve...
I read about a solution:

"Big thanks to Sandeep for fixing the issues that I had, and for taking the time to converse via PM etc in resolving the issue.

A Big thanks for this wonderful support. "

But i cant see the solution..  can you guys say what to do or help me in some way?

I'll be gratefull.
regards

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #46 on: March 04, 2019, 01:10:26 PM »
Hello there guys,

Another one in desperate need for help here.

I'm getting 500 error whenever I try to open php page. I can open html pages though.
I have newly installed CentOS 7 with CWP.

I have very limited knowledge about linux environment, though I know how to use ssh (i own another linux server, which was already in working condition when I get it).

Here's files and permissions that I have in htdocs directory:
-rw-r--r-- 1 root root     49 Feb 20 09:31 index.html
-rw-r--r-- 1 root root   5069 Feb 26  2018 index-orig.html
-rw-r--r-- 1 root root 550726 Feb 19 23:30 najava2019.png
-rw-r--r-- 1 root root     24 Feb 19 23:32 nikola.php
-rw-r--r-- 1 root root     10 Feb 19 13:07 phpinfo.php
drwxr-xr-x 6 root root   4096 Aug 22  2014 webftp_simple

And here's an error from error_log:
[Mon Mar 04 14:07:41.395390 2019] [:error] [pid 2115:tid 140338167944960] [client 212.200.80.129:59946] SoftException in Application.cpp:350: UID of script "/usr/local/apache/htdocs/phpinfo.php" is smaller than min_uid
[Mon Mar 04 14:07:41.395436 2019] [core:error] [pid 2115:tid 140338167944960] [client 212.200.80.129:59946] End of script output before headers: phpinfo.php

I assume it's permission/ownership problem with suPHP, but It's frustrating as I'm trying to figure it out by reading a tons of articles from the web, but can't seems to find a solution. I don't even know how to check if I'm using the right user (root:root) for files, though I haven't changed/added new users or anything, this is something that should be working by default, right?

Note that I have just one site hosted on this server, and I'm not gonna add new ones, so I don't need different users, permissions and stuff, just one global setting for everything, for what it's worth.

Please advice where to go from here.

Thanks,
Nikola
« Last Edit: March 04, 2019, 01:13:36 PM by Dzonny »

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #47 on: March 04, 2019, 02:29:47 PM »
simple under users in the cwp admin you have option fix account permissions and select user "nobody"
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #48 on: July 04, 2019, 01:35:29 AM »
Hello Friends.

i solved this error.
our server was giving error Mismatch between target UID (525) and UID (99) of file /usr/local/apache/htdocs/roundcube/index.php.

suPHP_UserGroup nobody needs to be added to suphp.conf.
but when adding this, the system appends the file to the end.
This is the source of the problem.
<Directory />

* other expressions
suPHP_UserGroup nobody nobody
*
</ Directory>
if this happens, the problem is corrected

my suphp.conf file.

LoadModule suphp_module modules / mod_suphp.so
suPHP_Engine on
AddType application / x-httpd-php .php5 .php4 .php .php3
<Directory />
suPHP_AddHandler application / x-httpd-php
        suPHP_AddHandler application / x-httpd-php44
        suPHP_AddHandler application / x-httpd-php52
        suPHP_AddHandler application / x-httpd-php53
        suPHP_AddHandler application / x-httpd-php54
        suPHP_AddHandler application / x-httpd-php55
        suPHP_AddHandler application / x-httpd-php56
        suPHP_AddHandler application / x-httpd-php7
        suPHP_AddHandler application / x-httpd-php70
        suPHP_AddHandler application / x-httpd-php71
        suPHP_AddHandler application / x-httpd-php72
        suPHP_UserGroup nobody nobody
</ Directory>

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #49 on: July 06, 2019, 09:17:09 PM »
thank you to write the right answer and share it with us
Regards