500 error after migrating from Easy Apache 3 to EA4 on Centos6 VPS

500 error after migrating from Easy Apache 3 to EA4 on Centos6 VPS - .htaccess files are extremely useful in many cases for users who either do not have root permissions or for users who simply aren't comfortable in making changes in their web server's configuration file. Trying to debug .htaccess not working isn't always the easiest thing to do, however, hopefully by checking the discuss below mentioned about web-hosting, htaccess, html, apache, .htaccess common problems as well as the troubleshooting tips, you'll have a better grasp on what you may have to modify to get your .htaccess file running smoothly.Problem :


I made the mistake of clicking the button in WHM to migrate from Easy Apache 3 to EA4 and now I am receiving a 500 error when I try to visit my site. What have I broken and how can I troubleshoot the problem? I have tried restarting httpd and restarting the server. I checked the .htaccess file and it is still in place. I am running Apache 2.4 on a Centos6 server platform.


Solution :

Checked error logs using:



tail /usr/local/apache/logs/error_log


Logs indicated "SoftException in Application.cpp:267: File "/home/mywebsite/public_html/myfile.php" is writeable by group



A web search revealed an article here with this suggestion:




This
is due to the server running SuPHP and the files having higher
permissions than allowed, to fix this problem you need to make sure
your files are chmod 644 for all PHP based files and 755 for
directories in order for them to work with SuPHP.You can easily do
this by connecting via FTP with Filezilla and right clicking on the
problem folders and files and selecting file permissions.




I changed the permissions on the problem file from 664 to 644 and the problem was resolved.


Additionally, if you would like to do some further testing, give the htaccess tester tool a try. It allows you to specify a certain URL as well as the rules you would like to include and then shows which rules were tested, which ones met the criteria, and which ones were executed.

Comments

Popular posts from this blog

Rewrite in Mediawiki, remove index.php, .htaccess

.htaccess rewrite wildcard folder paths from host

Using .htaccess to set a cookie and 301 redirect