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

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #30 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 #31 on: August 31, 2015, 08:10:57 PM »
nano /usr/local/apache/conf/httpd.conf

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #32 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 #33 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 #34 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 #35 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 #36 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 #37 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 #38 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 #39 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 #40 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 #41 on: May 28, 2016, 01:52:33 PM »
problem resolved fixed apache and permission

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #42 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 #43 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.

Offline
*
Re: suPHP - 500 Internal Server Error
« Reply #44 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