Changed to dedicated server and now I get 500 server errors

Discussion in 'Site & Server Administration' started by avidwebdev, Nov 15, 2007.

  1. #1
    Hi,

    I recently moved to a dedicated server and before I moved, I had a php.ini script and a .htaccess script which helped execute my email.php scripts. Now that I've moved to the dedicated server, I am getting an Internal Server Error.

    My php.ini file:

    register_globals=On


    My .htaccess file:

    suPHP_ConfigPath /home/trhou2/public_html
    <Files php.ini>
    order allow,deny
    deny from all
    </Files>


    I would appreciate any help that can be offered.

    Thanks!
    Dustie
     
    avidwebdev, Nov 15, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    Try renaming the .htaccess file. It may not be needed.

    It is also possible that the contents of your php.ini should be in your .htaccess. It all depends on how the server is configured.

    Some combination of the above should solve the problem.
     
    Colbyt, Nov 15, 2007 IP
  3. avidwebdev

    avidwebdev Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No Luck. I tried these options and they didn't work.

    suPHP_ConfigPath /home/trhou2/public_html
    register_globals=On
    <Files >
    order allow,deny
    deny from all
    </Files>

    and

    suPHP_ConfigPath /home/trhou2/public_html
    register_globals=On
     
    avidwebdev, Nov 15, 2007 IP
  4. calum

    calum Peon

    Messages:
    2,821
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try disabling suPHP, suPHP and PHPsuexec both can produce 500 errors, if suPHP is vital then you might also be able to fix it by changing the permissions of the files involved to lower levels (if it doesn't need to be written to make it unwritable).
     
    calum, Nov 15, 2007 IP
  5. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Be sure the permissions of the files is 755 or lower/more secure level. PHPsuEXEC and similar modiles black any script from running which is insecure.
     
    inworx, Nov 15, 2007 IP
  6. pig2cat

    pig2cat Active Member

    Messages:
    299
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #6
    /home/trhou2/public_html

    This path is most likely different now, you can find the correct path with a php command.. just forgot the command now;x or login as root with winscp(if you use linux) and find the correct path
     
    pig2cat, Nov 16, 2007 IP