Page 1 of 1

mobile website script is maxing out memory on server

Posted: Mon Oct 19, 2015 6:21 am
by jonnyfortis
i have followed the step and installed https://code.google.com/p/phpmobilizer/ to temporarily convert site to mobile until i get round to making mobile sites. but as soon as i have done this i am getting 500 internal errors on the whole server space, looking at the website stats memory usage is maxing out. checking the error logs im getting
[Mon Oct 19 12:13:03.159648 2015] [:error] [pid 18918] (12)Cannot allocate memory: [client xx.xxx.xxx.xxx:55962] couldn't create child process: /opt/suphp/sbin/suphp for /home/dignfr/public_html/website/index.php
for now i have had to disable the mobile sites. i have spoken to technical support at the server and they said its the .htaccess that is causing the problems

Code: Select all

DirectoryIndex phpmobilizer.php


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ phpmobilizer.php?url=$1 [qsa]
is the file that is uploaded.

Re: mobile website script is maxing out memory on server

Posted: Mon Oct 19, 2015 1:38 pm
by requinix
That's not the problem. All it does is (1) tell the server that it can use phpmobilizer.php when someone requests a directory like / and (2) pass stuff that doesn't exist through phpmobilizer.php.

Do you have shell access?

Re: mobile website script is maxing out memory on server

Posted: Mon Oct 19, 2015 1:50 pm
by jonnyfortis
requinix wrote:That's not the problem. All it does is (1) tell the server that it can use phpmobilizer.php when someone requests a directory like / and (2) pass stuff that doesn't exist through phpmobilizer.php.

Do you have shell access?
so i dont have to upload it?
and yes i have shell access

Re: mobile website script is maxing out memory on server

Posted: Mon Oct 19, 2015 4:13 pm
by requinix
Well yeah, you do need it on the server, doesn't do you any good if you keep it, but it isn't the cause of the error.

When this problem is happening, if it isn't constant, what does "top" show? We're looking for something that's using a lot of memory, and you can press "M" (while in top) to sort.