500 Internal Server Error - After i deleted some files

Discussion in 'Site & Server Administration' started by zuly, May 6, 2009.

  1. #1
    hi, a few days ago i way cleaning my shared hosting account from files that i thought are not necessary (like cache database, logs) and i think after that 500 Internal Server Error started to show up or it was only coincidence that it started to show i don't know. What i wanna ask is, can it possible that i caused this cause of my deletion of the files from the server, are there any files that are vital but can be erased?
     
    zuly, May 6, 2009 IP
  2. ractors

    ractors Well-Known Member

    Messages:
    1,979
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #2
    that is server misconfiguration message i think u deleted .htacess file
     
    ractors, May 6, 2009 IP
  3. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #3
    you mean from my domain www folder?
    or from somewhere else?
    cause i don't have .htaccess in www folder.
    Should it be in some other directory (like /home/myusername/)?
     
    zuly, May 6, 2009 IP
  4. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #4
    i now noticed that this only happens when i try to run .php files in directory's that are under a domain, if i rund then in the main www folder everything works, it's weird.

    What should there be in the htaccess file and where should i put it?
     
    zuly, May 6, 2009 IP
  5. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #5
    do you have an htacess file in the directories you run into problem ?

    a 500 error, is a server related error. Either htacess or you will need to recompile your php
     
    Camay123, May 6, 2009 IP
  6. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #6
    Check the error logs for your domain. It will give you some more information. Also, update your host to check the issue so that you can resolve this as soon as possible.

    Kailash
     
    kailash, May 6, 2009 IP
  7. zuly

    zuly Well-Known Member

    Messages:
    317
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #7
    i can't get in touch with my host, they are not responding, there is no .htaccess in the directory's at all, i think i never had them, in my other host i don't see it anywhere and everything works fine. I'm starting to believe that i didn't cause this and i will just have to be patient until my host support comes online, i will report back here when they do.

    And also there is no error_log at all, anywhere i double checked.
     
    zuly, May 7, 2009 IP
  8. enduserhelp

    enduserhelp Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    -Internal Error 500:
    The server was unable to send the html document to you due to an internal (server software) error.

    are you able to copy/edit/add anything on your account? if not, the problem is that the server is on read-only mode, you should ask for a server reboot if this is the case.
     
    enduserhelp, May 7, 2009 IP
  9. sreyas

    sreyas Well-Known Member

    Messages:
    128
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #9
    Hi,

    Please check the php file permissions in your site. It should be 644, if you have given 777 permission then it would throw you an error.

    Let us know how it goes after you change the permission.

    Regards,
    Sreyas
     
    sreyas, May 9, 2009 IP
  10. mjp81

    mjp81 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    you really need access to your apache error logs. It could be anything - deleted files that were actually needed, a typo in your code, file permission error...

    Your apache log will tell you everything you need to track it down.

    If you really can't get them, try re-uploading the files you deleted, if you happen to have an old copy anywhere.
     
    mjp81, May 9, 2009 IP