Skip to main content

.httaccess - 500 Internal Server Error

Comments

11 comments

  • cPanelMichael
    Hello :) Please post the output to /usr/local/apache/logs/error_log when you notice the "500" error code in your browser. Thank you.
    0
  • Ivo Danic
    I removed the three first lines and everything is fine! Why? the site works at 100%
    0
  • cPanelMichael
    It's likely you are using the suPHP handler for PHP which does not support the use of the "php_value" flag in the .htaccess file. You should instead copy /usr/local/lib/php.ini to the account's home directory and adjust your custom php values accordingly. Thank you.
    0
  • Ivo Danic
    Could you please tell me the comands to do this? Or how do it? Thanks for all!
    0
  • cPanelMichael
    Could you please tell me the comands to do this? Or how do it? Thanks for all!

    Yes, here are the commands:
    cp -a /usr/local/lib/php.ini /home/$username/public_html/ chown $username.$username /home/$username/public_html/php.ini vi /home/$username/public_html/php.ini
    Replace "$username" with the username of the account. The last command invokes "vi" and allows you to modify the php.ini file for the individual account: How to Use the vi Editor Thank you.
    0
  • Ivo Danic
    i did it! But i cant acces into an admin panel, the admin panel path is
    0
  • cPanelMichael
    Could you provide more details about what happens when you attempt to access your admin page? The php.ini file should not prevent it from loading. Thank you.
    0
  • Ivo Danic
    What happens .... when i try to acces only changes de url, just adds the s500.html
    0
  • cPanelMichael
    What happens .... when i try to acces only changes de url, just adds the s500.html

    Is there any new output to /usr/local/apache/logs/error_log when this happens? Thank you.
    0
  • Hasan ALTuhamey

    Hello I need support and this is the error of my server : [Tue Oct 28 07:56:30.457572 2025] [cgid:error] [pid 13329:tid 13411] [client 167.94.146.53:48734] AH01265: stderr from /home/tawilati/public_html/driver/cgi-bin/: attempt to invoke directory as script, referer: http://redacted.domain.

    0
  • cPRex Jurassic Moderator

    Hasan ALTuhamey - this thread was 9 years old, so you should really be making a new thread for your issue.

    Could you start a new thread with more context about your issue, such as how you discovered the error and what work let to it?  This is likely an issue with the ScriptAlias line for the domain, so any customizations to the vhosts would also be relevant here.

    0

Please sign in to leave a comment.