blackkaviar Posted October 7, 2014 Share Posted October 7, 2014 (edited) NOTE: Problem solved by replacing the php.ini with the server-wide php.ini. I just moved my site from the old hosting to the new VPS running on CentOS 6.5 with Cpanel/WHM. I have few other sites which already moved and running well. But this one won't open with an error message [an error occurred while processing this directive]. When I checked the error log, I see a bunch of the following messages: exec used but not allowed in /home/bursasp/public_html/500.shtml I've browsed around for solutions, but found nothing that really answered my problem. I noticed there's this post but I've checked my folders and file permissions and everything looks fine. Any help would be really appreciated. Thanks. Edited October 8, 2014 by blackkaviar (see edit history) 1 Link to comment Share on other sites More sharing options...
El Patron Posted October 7, 2014 Share Posted October 7, 2014 how did you put the files to new server? 1 Link to comment Share on other sites More sharing options...
blackkaviar Posted October 7, 2014 Author Share Posted October 7, 2014 Hi El Patron, thanks for responding I downloaded and reuploded the files and database manually. The reason I did that manually is because on the old hosting it was an addon domain. Then I want to make it separate account on the new VPS. But, I've tried to transfer the site using SCP as the whole account (with it's parent domain), and still having the same error message. 1 Link to comment Share on other sites More sharing options...
El Patron Posted October 7, 2014 Share Posted October 7, 2014 check that your domain is group owner, this is generally not an issue if you create ftp for that domain and you ftp. but if we use scp and/or unzip of files, then it's possible that your domain is not owner of files... 1 Link to comment Share on other sites More sharing options...
blackkaviar Posted October 8, 2014 Author Share Posted October 8, 2014 Problem Solved!! It's actually the problem with php.ini file. After I replaced the php.ini with the server-wide php.ini (/usr/local/lib/php.ini), it worked. Using diffchecker I can see there are quite a few difference between the original php.ini with the server-wide php.ini. Some settings are quite the opposite of each others, AFAIK. Currently I got no time (actually no courage and no knowledge to test and find which corresponding line cause the problem. But yeah the problem solved, so I'm happy with this. Thanks El Patron for willing to help and giving some advise! 1 Link to comment Share on other sites More sharing options...
willmt Posted September 2, 2015 Share Posted September 2, 2015 This was making me crazy for a couple of days. [an error occurred while processing the directive] This error suddenly appeared twice in the header-container. I checked permissions on the files - all fine. And looked into the .htaccess, but couldn't find anything that showed it was looking for SSI directives. What finally solved the problem was removing the hashtag character "#" from comments in smartblocktopmenu.tpl. The problem seems to be that the server was interpreting the comments as calls to SSI directives. Anything that looks like <!--#comment --> is interpreted as an SSI directive. Since it couldn't process the directive it returned the error. So I simply removed the hashtag "#" to make it look like <!--comment -->. I don't know why I suddenly started getting the error message since I hadn't made any changes. But changing the comments fixed the problem. 2 Link to comment Share on other sites More sharing options...
Recommended Posts