Results 1 to 10 of 10
  1. #1
    Junior Member leonforthewin's Avatar
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Joomla, intermittent 500 errors & .htaccess woes

    I'm only learning this more complex side of things so bare with me!

    I'm getting intermittent '500 Internal Server Errors' with my domain frontlinefit.co.uk. - I feel confident that it's a module that's causing it called 'Facebook Graph Connect', could be very wrong though.

    Simple enough to find out right? Well that module is kind of integral to the website, so rather then using the process of elimination I have learnt you can add work arounds in the .htaccess file?

    My error log is as follows:
    Code:
    [Sun Sep 04 08:44:16 2011] [error] [client 193.35.132.33] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/theonlyp/public_html/frontlinefit.co.uk/index.php, referer: http://frontlinefit.co.uk/
    [Sun Sep 04 08:44:16 2011] [error] [client 193.35.132.33] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/theonlyp/public_html/frontlinefit.co.uk/index.php, referer: http://frontlinefit.co.uk/
    [Sun Sep 04 08:37:20 2011] [error] [client 193.35.132.16] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/theonlyp/public_html/frontlinefit.co.uk/index.php, referer: http://frontlinefit.co.uk/administrator/index.php
    [Sun Sep 04 08:37:20 2011] [error] [client 193.35.132.16] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/theonlyp/public_html/frontlinefit.co.uk/administrator/index.php, referer: http://frontlinefit.co.uk/administrator/index.php
    [Sun Sep 04 08:33:51 2011] [error] [client 66.249.71.42] File does not exist: /home/theonlyp/public_html/index.php
    [Sun Sep 04 08:33:51 2011] [error] [client 66.249.71.42] File does not exist: /home/theonlyp/public_html/index.php
    [Sun Sep 04 08:33:51 2011] [error] [client 66.249.71.42] File does not exist: /home/theonlyp/public_html/index.php
    [Sun Sep 04 08:33:51 2011] [error] [client 66.249.71.42] File does not exist: /home/theonlyp/public_html/index.php
    I don't think the memory allocation errors are creating 500's. However the last 4 entries are indeed referring to something that doesn't exist - there is nothing installed in the main domain directory. I'm guessing this is an auto-generated URL which would be product of one of the modules? Funny thing is a refresh fixes it all every time.

    My .htaccess file is standard as far as I know:
    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    I'm also not running any WP installations at the moment, in case that's relevant.

    If anyone has any ideas into further investigation I can do or even can go as far as providing a solution I would be eternally grateful - This website is meant to be going live with a huge members section soon and these errors will kill it.

    Cheers,
    Leon.

  2. #2
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Are you sure it isn't the memory allocation that is killing it? What are you running server-wise?

  3. #3
    Junior Member leonforthewin's Avatar
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Umm I'm not entirely sure on that - My hosting is with GreenGeeks. Im guessing I could find out via cPanel?

    Just had a look at the stats - Linux running Apache? That sound right? I can always get onto my hosts after i take the pups for a walk?
    Last edited by leonforthewin; 09-04-2011 at 04:57 PM. Reason: cPanel said..

  4. #4
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Quote Originally Posted by leonforthewin View Post
    Umm I'm not entirely sure on that - My hosting is with GreenGeeks. Im guessing I could find out via cPanel?

    Just had a look at the stats - Linux running Apache? That sound right? I can always get onto my hosts after i take the pups for a walk?
    Is it your own private/virtual private sever or shared? If private you should be able to get info from WHM. If shared you'll need to ask your hosts.

    Shared I'd guess you are probably running 32M memory limit which might be stopping it if it is a larger/more complex application.

  5. #5
    Junior Member leonforthewin's Avatar
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry it's a shared - cPanel does say 524288 KB available?

  6. #6
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Quote Originally Posted by leonforthewin View Post
    Sorry it's a shared - cPanel does say 524288 KB available?
    Check with your hosts. Tell them what you are running in terms of applications and see what they say. Be prepared they'll probably try and up-sell you!

  7. #7
    Junior Member leonforthewin's Avatar
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So you think this is the actual issue? I've never seen memory usage over 20%!

  8. #8
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    In my experience 500s are probably caused by one of three things;

    1. Something rotten in your .htaccess file. Try refreshing it with the .htaccess file you get out of the box. Keep your current one backed up just in case.

    2. Conflicts in plug-ins. Try disabling them one by one until your site functions correctly all the time.

    3. Over memory capacity. That's down to your hosting.

    I'd usually take a punt and say number 3 is the cause but investigate the other two as well.

    In any case;

    This website is meant to be going live with a huge members section soon
    Tells me you want to stump up for some decent hosting anyway or you are gonna have some disappointed huge members (sorry, couldn't resist).

  9. #9
    Junior Member leonforthewin's Avatar
    Join Date
    Sep 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just spoke to my hosts I do indeed have 512mb of ram available. - After telling the bloke thrice about the memory allocation error he said:
    If you see an 500 error appear randomly, this is because our system is limiting you for exceeding your memory limit. You will have the ability to optimize your site to prevent this error from occurring by using caching plugins, optimizing code, etc
    Makes sense. I may have turned caching off at some point for doing lots of small updates. I will look into it. CACHE EVERYTHING! - Also do you think having joomla zip everything up would reduce the memory load?

    Thanks,

  10. #10
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Quote Originally Posted by leonforthewin View Post
    Makes sense. I may have turned caching off at some point for doing lots of small updates. I will look into it. CACHE EVERYTHING! - Also do you think having joomla zip everything up would reduce the memory load?
    Yes, that might help. It would be wise to run a beta test with a few people on the site at the same time if you can. Stress testing should highlight any weaknesses in your set up.

Similar Threads

  1. Printing Errors
    By nathobson in forum Printing & Print Design Forum:
    Replies: 9
    Last Post: 03-08-2011, 12:53 PM
  2. Anyone else suffer like me? - logo woes.
    By Helen in forum Logo Design & Brand Identity Forum:
    Replies: 12
    Last Post: 08-18-2010, 12:19 AM
  3. Illutrator to Flash woes!!!
    By mattpearce79 in forum Adobe Forum:
    Replies: 1
    Last Post: 01-14-2010, 10:15 PM
  4. .htaccess
    By Timmo in forum GDF Feedback & Help:
    Replies: 4
    Last Post: 03-10-2009, 04:49 PM
  5. Joomla Help
    By adnanfazlani in forum Website Coding & Programming Forum:
    Replies: 2
    Last Post: 03-10-2009, 10:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •