Hi all,
Sorry if this is a little nonsensical, I've been debugging this for hours, it's getting late, and I'm more than a little exhausted at this point.
I was having some issues with PHP so I decided to do a rebuild via EasyApache. Following that, PHP has not been working. I do not know if this is something EasyApache has caused or if there is some other configuration issue so I wasn't quite sure where to post.
The odd part is that when I looked in /usr/local/cpanel/logs/error_log, it's not showing errors there, despite throwing 500 errors whenever I try to load a PHP page (HTML pages load fine). I also looked in the root of the website I'm trying to load, no error logs there either.
When I add a rule like:
<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
to the htaccess, then the site displays but does not execute PHP. PHP/Suexec configuration is:
Default PHP Version (.php files) 5
PHP 5 Handler suphp
Apache suEXEC on
Apache Ruid2 off
And I get no errors when I run php -v
I am using a test PHP file which just echoes out some text and exits.
Any thoughts on how to debug this? Where else can I look for useful logs?
Thanks.
Sorry if this is a little nonsensical, I've been debugging this for hours, it's getting late, and I'm more than a little exhausted at this point.
I was having some issues with PHP so I decided to do a rebuild via EasyApache. Following that, PHP has not been working. I do not know if this is something EasyApache has caused or if there is some other configuration issue so I wasn't quite sure where to post.
The odd part is that when I looked in /usr/local/cpanel/logs/error_log, it's not showing errors there, despite throwing 500 errors whenever I try to load a PHP page (HTML pages load fine). I also looked in the root of the website I'm trying to load, no error logs there either.
When I add a rule like:
<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
to the htaccess, then the site displays but does not execute PHP. PHP/Suexec configuration is:
Default PHP Version (.php files) 5
PHP 5 Handler suphp
Apache suEXEC on
Apache Ruid2 off
And I get no errors when I run php -v
I am using a test PHP file which just echoes out some text and exits.
Any thoughts on how to debug this? Where else can I look for useful logs?
Thanks.