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

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #30 on: August 05, 2015, 10:04:49 AM »
Hello to the forum!
Similar situation for me.
I am spending a lot of hours trying to resolve this issue. But, now, it is time to ask your help.
I have this VPS server with only one public/shared IP.
I have setup a Vhost with one only domain (registered with Registrar with DNS management correctly configured) running a small Wordpress network (The installation went Ok, but I have experienced a lot of permission denied and forbidden and so all, when in wordpress admin). Anyway, until this afternoon I was able to install wordpress, setup a working mail server, sending and receiving email via roundcube webmail, at  the price of security setting
Code: [Select]
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false
in /usr/local/etc/suphp.conf. Thinking about that, in fact, I am still in "development mode", I revert to TRUE the line above.
Result: 500 internal server error. Also in roundcube.
I have made all the actions suggested here in the forum and in the Wiki: fix permission thousands of times, re-upload manually wp-admin and wp-include folder in their proper location, renamed .htaccess (Leave it untouched as default wordpress network required), rebuild virtual hosts, increase in the php.ini memory limit to 256 Mb, disabling all plugins, nothing.
Looking inside apache error log, it says at the recent few lines:
Code: [Select]
[Tue Aug 04 21:08:27 2015] [error] [client 93.41.199.45] ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
[Tue Aug 04 21:08:27 2015] [error] [client 93.41.199.45] Premature end of script headers: themes.php
[Tue Aug 04 21:08:28 2015] [error] [client 93.41.199.45] ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
[Tue Aug 04 21:08:28 2015] [error] [client 93.41.199.45] Premature end of script headers: themes.php
[Tue Aug 04 21:11:32 2015] [error] [client 180.76.15.146] ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
[Tue Aug 04 21:11:32 2015] [error] [client 180.76.15.146] Premature end of script headers: index.php
[Tue Aug 04 21:13:21 2015] [error] [client 180.76.15.153] ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
[Tue Aug 04 21:13:21 2015] [error] [client 180.76.15.153] Premature end of script headers: index.php
[Tue Aug 04 21:18:26 2015] [error] [client 93.41.199.45] ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
[Tue Aug 04 21:18:26 2015] [error] [client 93.41.199.45] Premature end of script headers: themes.php
[Tue Aug 04 21:32:51 2015] [error] [client 93.41.199.45] ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
[Tue Aug 04 21:32:51 2015] [error] [client 93.41.199.45] Premature end of script headers: index.php
[Tue Aug 04 21:32:53 2015] [error] [client 93.41.199.45] ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
[Tue Aug 04 21:32:53 2015] [error] [client 93.41.199.45] Premature end of script headers: index.php
[Tue Aug 04 21:52:28 2015] [error] [client 66.249.78.57] ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
[Tue Aug 04 21:52:28 2015] [error] [client 66.249.78.57] Premature end of script headers: index.php

At this point, any suggestion is appreciated.
Thank you.
David

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #31 on: August 27, 2015, 05:36:00 PM »
I have a problem with this panel. I need to run a php script, execution time him are quite large.
In browser sho error(500):
Internal Server Error
In apache log(/usr/local/apache/logs/error):
Script timed out before returning headers: index.php

The values for:
max_input_time, max_execution_time
set great value - 999

I tried to correct the error, the value(Timeout) of the rules:
in file /usr/local/apache/conf/extra/httpd-default.conf

But it did not help.
Some time later, still an error: 500
How to increase the timeout.
Help me please.

Re: suPHP - 500 Internal Server Error
« Reply #32 on: August 31, 2015, 08:10:57 PM »
nano /usr/local/apache/conf/httpd.conf

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #33 on: January 16, 2016, 06:09:31 PM »
Hi,

I am facing with this error - 500 Internal Server Error but for SUB DOMAIN ONLY. Main domain works fine. I tried to use fix permissions but It still happen.

After I created sub domain demo.xxx.com with path: /home/USERNAME/public_html/demo.xxx.com then checking it in File Manager, I see an empty demo.xxx.com folder is created in public_html

Could Anyone help this?
Thank you

Some info about server:
Apache version: Apache/2.2.27
PHP version: 5.4.45
MySQL version: 5.1.73
CWP version: 0.9.8.11

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #34 on: January 17, 2016, 01:43:07 AM »
you can check your apache logs

tail -f /usr/local/apache/logs/error_log
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #35 on: January 17, 2016, 07:11:07 AM »
you can check your apache logs

tail -f /usr/local/apache/logs/error_log

Thank you for the reply

This is the logs

[root@mail ~]# tail -f /usr/local/apache/logs/error_log
[Sun Jan 17 13:55:29 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here, referer: http://courses.xxx.edu.vn/
[Sun Jan 17 13:55:36 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here
[Sun Jan 17 13:55:36 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here, referer: http://demo.xxx.edu.vn/
[Sun Jan 17 13:55:36 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here, referer: http://demo.xxx.edu.vn/
[Sun Jan 17 13:55:36 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here, referer: http://demo.xxx.edu.vn/
[Sun Jan 17 13:57:08 2016] [error] [client 66.249.77.122] File does not exist: /usr/local/apache/htdocs/index.php
[Sun Jan 17 13:57:49 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here
[Sun Jan 17 13:57:49 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here, referer: http://demo.xxx.edu.vn/
[Sun Jan 17 13:57:49 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here, referer: http://demo.xxx.edu.vn/
[Sun Jan 17 13:57:49 2016] [alert] [client 14.161.68.128] /home/username/public_html/.htaccess: Options not allowed here, referer: http://demo.xxx.edu.vn/


xxx.edu.vn: is my domain
username: user name
« Last Edit: January 17, 2016, 07:13:58 AM by lethang »

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #36 on: February 01, 2016, 03:55:50 PM »
Please don't stop this thread, finally I've found someone working on a similar problem.  I've installed suitecrm and having nothing but permissions problems.

This is the most informative thread I've found so far and none that I've started draw responses.

If you find resolution please continue to share.

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #37 on: February 10, 2016, 07:24:22 AM »
You need to put content of your .htaccess file here (the one in your public_html directory.

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #38 on: May 05, 2016, 07:17:48 AM »
Hello,

I got PHP Parse error, how can i fix it?

Code: [Select]
[Thu May 05 02:59:14 2016] [error] [client 108.162.222.31] PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/banchong/public_html/index.php on line 50

Offline
*****
Re: suPHP - 500 Internal Server Error
« Reply #39 on: May 05, 2016, 10:18:01 AM »
did you modified Index.php?

probably reinstalling the software/script (wordpress, etc) files will fix this issue and i recommend to install Suhosin
Code: [Select]
cd /usr/local/src
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar zxvf suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
phpize
./configure
make
make install
echo extension=suhosin.so >> /usr/local/php/php.ini

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #40 on: May 28, 2016, 11:24:29 AM »
Hi
I too am getting 500 error when I try to access phpmyadmin or roundcube webmail from admin panel

My vps is IP only no domain associated with it (yet)
I have a website I am building, and editing hosts file to create site before I point existing domain to new ip

I have tried reset permission for both nobody and user acount for new domain.

in cw.admin the apache server is stopped with errors
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ########.### for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Not sure if the above helps, the website I am creating is working but even this i cannot acces phpmyadmin or webmail

I hope it is something I have forgotten that is easily rectified.

Thanks in advance

Offline
*****
Re: suPHP - 500 Internal Server Error
« Reply #41 on: May 28, 2016, 11:33:19 AM »
Hi
I too am getting 500 error when I try to access phpmyadmin or roundcube webmail from admin panel

My vps is IP only no domain associated with it (yet)
I have a website I am building, and editing hosts file to create site before I point existing domain to new ip

I have tried reset permission for both nobody and user acount for new domain.

in cw.admin the apache server is stopped with errors
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ########.### for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Not sure if the above helps, the website I am creating is working but even this i cannot acces phpmyadmin or webmail

I hope it is something I have forgotten that is easily rectified.

Thanks in advance

Pm me the VPS credentials need to check it

Offline
*****
Re: suPHP - 500 Internal Server Error
« Reply #42 on: May 28, 2016, 01:52:33 PM »
problem resolved fixed apache and permission

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #43 on: June 04, 2016, 04:23:36 PM »
Hi

Apologies for late reply, unfortunately I only have time to work on this in the weekends.

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.


IDC

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #44 on: August 15, 2017, 06:50:10 AM »
The first thing you need to know about an "Internal Server Error" is that the error can only be resolved by fixes to the Web server software. It is not a client-side problem meaning that the problem is not with our plugin. This is a 'catch-all' error generated by the Web server. Basically something has gone wrong, but the server can not be more specific about the error condition in its response to the client. In addition to the 500 error notified back to the client, the Web server should generate some kind of internal error log which gives more details of what went wrong. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.