mobile website script is maxing out memory on server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

mobile website script is maxing out memory on server

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: mobile website script is maxing out memory on server

Post 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?
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: mobile website script is maxing out memory on server

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: mobile website script is maxing out memory on server

Post 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.
Post Reply