Domain down
in WHM, PHP Multi manager, I gave a domain it's own version of PHP so I could play with the editor in the domains cpanel.
Now the web site won't launch.
I'm seeing this in Apache error logs.
[Wed Jul 26 20:59:56.723067 2017] [cgi:error] [pid 27222] [client x.xx.xx.xxx:53508] AH01215: PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 8192 bytes) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php70
I changed the PHP back to inherited, i've stopped and restarted apache plus PHP-FPM, but I'm still unable to launch the web site.
any ideas ?
-
Hello, Do you notice any additional entries in the Apache error log when this happens? Also, feel free to open a support ticket using the link in my signature so we can take a closer look at the system and see what happened. Thank you. 0 -
I've been playing with ini_set('memory_limit earlier today, in the files on the domain. I was trying to determine if the local or master settings were being used. I set the limit to 2mb. It seems that this is leaving something behind, no amount of changing multiphp editor or inheriting PHP is affecting this. Even with the line removed, I'm hitting a 2mb limit. Change it to 128m it works, delete the line it reverts back to 2m 0 -
Hello, Could you let us know the contents of the .htaccess file associated with this domain name? Thank you. 0 -
Hi, I would ask you to create a PHP info in the account in question and navigate to it and check what memory limit is being supplied to the account for use and make the change you mentioned and again check whether there is any change in the memory limit that you are seeing.. 0 -
PHPinfo would suggest that the memory limit is 128m. However, the Apache logs suggest only 2m. AH01215: PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php70 I suspect, something maybe lurking in a cached file or similar below is the .htaccess ### File Security ### Order Allow,Deny Deny from all ### Apache directory listing rules ### DirectoryIndex index.php index.htm index.html IndexIgnore * Header always append X-Frame-Options SAMEORIGIN ### Rewrite rules for SEO functionality ### RewriteEngine On RewriteBase / ##### START v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L] ##### END v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA] ### Default store 404 page ### ErrorDocument 404 /index.php ## Override default 404 error document for missing page resources ## ErrorDocument 404 " ##### END CubeCart .htaccess # php -- BEGIN cPanel-generated handler, do not edit # This domain inherits the "PHP" package. # php -- END cPanel-generated handler, do not edit [\code]0 -
It turned out to be a schoolboy error on my part In Multi PHI ini editor, I'd earlier in the day, inadvertantly, left out M at the end of memory limit, so PHP was allocating bytes and not MegaBytes. I guess playing with this domain only was what triggered the outage, no other domains were affected on the server, as these have been left untouched. It's easy to feel a fool occasionally. 0 -
Hello, I'm glad to see you were able to solve the issue. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
7 comments