500 - Internal Server Error Help Please [only on php files]

Discussion in 'Site & Server Administration' started by Nick1337, Mar 13, 2008.

  1. #1
    Nick1337, Mar 13, 2008 IP
  2. djacobs

    djacobs Well-Known Member

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #2
    What is your configuration? OS, Web Server,etc.

    Do you have PHP installed? Is your web server setup to server php?

    Have you checked your error logs?
     
    djacobs, Mar 13, 2008 IP
  3. hycari

    hycari Peon

    Messages:
    228
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It sounds to me like Apache might not be properly configured to work with PHP. When did this start happening, did you make any changes?
     
    hycari, Mar 13, 2008 IP
  4. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It started happening when i uploaded vbulletin, I've only had it for a couple days.. It used to work and i didnt change nothing.. and it dont use apache its lighttpd

    Im using centos hostinabox with lxadmin control panel
     
    Nick1337, Mar 13, 2008 IP
  5. djacobs

    djacobs Well-Known Member

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Could you answer my questions so we can help you. Otherwise we can only make assumptions.
     
    djacobs, Mar 13, 2008 IP
  6. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't know if php is setup.. it used to work i thought... and yes php is posed to work
     
    Nick1337, Mar 13, 2008 IP
  7. djacobs

    djacobs Well-Known Member

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Check your error logs. That will be most beneficial.
     
    djacobs, Mar 13, 2008 IP
  8. Sohan

    Sohan Peon

    Messages:
    2,330
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Sohan, Mar 13, 2008 IP
  9. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Here is my .htaccess file, maybe it has something to do with the problem?

     
    Nick1337, Mar 13, 2008 IP
  10. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Here is a error_log i found:
    If says that about a million times
     
    Nick1337, Mar 13, 2008 IP
  11. djacobs

    djacobs Well-Known Member

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #11
    What does your "lighttpd.conf" look like, specifically the FastCGI bit?
    This error can mean that there is a problem with a PHP script that is crashing the PHP fast-cgi server process and lightTPD is waiting for it to come back up.

    Try this:
    mkdir -p /var/tmp/lighttpd
    chmod 770 /var/tmp/lighttpd
    chown lighttpd:lighttpd /var/tmp/lighttpd
    Code (markup):
    Try changing the socket path from /tmp/php-fastcgi.socket to /var/tmp/lighttpd/php-fastcgi.socket
    in your conf file

    If not, you should try changing the memory_limit in cgi/php.ini to a higher value
     
    djacobs, Mar 13, 2008 IP
  12. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I added you on msn, I need further instructions please
     
    Nick1337, Mar 13, 2008 IP
  13. djacobs

    djacobs Well-Known Member

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #13
    Sorry, I posted that last message after I got off of work, and I didn't log back on. Do you have an idea of executing the instructions I provided? I'll try to get on MSN sometime today.
     
    djacobs, Mar 14, 2008 IP
  14. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    No i don't know how, And i had someone disable mod_fastcgi and now its 403 error on everything :(
     
    Nick1337, Mar 14, 2008 IP
  15. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Sounds like you have bad permissions on PHP files which can cause issues depending on your CGI setup. So PHP files usually need to be 644 and folders 755. Another reason could be the files not being owned by the correct user so when fcgi tries to run them it gets an error coming from suexec if you're running it.
     
    InFloW, Mar 14, 2008 IP
  16. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Ok, i have rebuilt the VPS and reuploaded everything. PHP Fastcgi has been disabled and now port 80 is just going up and down up and down.

    When php fastcgi is on i get 500 internal server error again...

    I need help urgent.. please contact me on msn or something..
     
    Nick1337, Mar 15, 2008 IP
  17. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #17
    [​IMG]

    It says 0 for fastcgi im guessing? Maybe i need to add that somehow? I dont know how tho.
     
    Nick1337, Mar 15, 2008 IP
  18. Nick1337

    Nick1337 Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #18
    I will pay 10$ paypal for someone to fix this..
     
    Nick1337, Mar 15, 2008 IP
  19. KINGPIN

    KINGPIN Peon

    Messages:
    235
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Good luck. I have the exact same problem on my high traffic site. I've spent hundreds of dollars looking for a solution, and I've decided to go with nginx. Now to find someone who can install and confugre.
     
    KINGPIN, Apr 4, 2008 IP