Cannot Login to my website

Discussion in 'Security' started by ikwee, Feb 21, 2008.

  1. #1
    Hi anyone,

    This morning i found out that i cannot go to my website.
    It gives the following error.

    "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 77824 bytes) in /home/ivonson/public_html/wp-content/plugins/revver/xmlrpc-2_2/xmlrpc.inc on line 2551"

    Anyone know how to fix it. This is the first time it happen to me.
     
    ikwee, Feb 21, 2008 IP
  2. boltok

    boltok Active Member

    Messages:
    257
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #2
    The default memory limit for PHP is 8MB and that has been exhausted by whatever site you are running. You can try reloading the web server to be able to login.

    However, if this happens regularly, you should find a permanent fix for it. Either fix your scripts so that they don't use so much memory, and/or increase the memory allocated to PHP in php.ini.
     
    boltok, Feb 22, 2008 IP
  3. ikwee

    ikwee Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Boltok,

    I'm not a tech geek. Can you tell me how

    1. reload the web server.
    2. fix what script and where is php.ini

    Sorry for all this question but i'm a newbie here. Hope you bare with me
     
    ikwee, Feb 22, 2008 IP
  4. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #4
    If you don't have root access, you will need to ask your host to do it for you.
    If you have root access, you can follow the below steps
    It will reurn the full path to php.ini file. Now, edit it
    find the line "memory_limit = xxM", and change it to the value you want. Save and quit (ctrl-x) and restart web server (with my assumption that you are using Apache
     
    gate2vn, Feb 22, 2008 IP
  5. ikwee

    ikwee Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Still cannot access my site. But can access my c-panel. Any idea
     
    ikwee, Feb 22, 2008 IP
  6. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Inside your cPanel you should be able to modify your php.ini

    Then goto services and restart your apache web service.

    PS what script is using over 8MB to run?

    If it is not some sort of import script then you have a coding error.. Most likely infinite loop.
     
    LittleJonSupportSite, Feb 22, 2008 IP
  7. ikwee

    ikwee Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    LittleJonSupportSite I went in my cpanel, File Manager Icon . Now in which folder does this php.ini located. I have search all the folder.

    Anyway of telling from cpanel which script run 8MB.

    I am running wordpress blog only and few marketing sales letter, and cloaking script.
     
    ikwee, Feb 22, 2008 IP
  8. ikwee

    ikwee Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    where do you type in this command?
     
    ikwee, Feb 23, 2008 IP
  9. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #9
    You will need a ssh client. On Windows, you can use Putty
     
    gate2vn, Feb 23, 2008 IP
  10. ikwee

    ikwee Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thank you all for helping

    Finally i manage to solve the php memory issue.

    I just add this code to my htaccess

    php_value memory_limit 24M

    Any idea what is the max limit

    I am still puzzle what script can take so many memory
     
    ikwee, Feb 23, 2008 IP