Jump to content

Recommended Posts

Hi Guys

 

Please bare with me as im not an expert when it comes to stuff like this but here it goes

 

I have a website that is currently not running i keep getting the 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request

 

I have a php forum as well as a html website that i use to sell bits from my shop and one of the moderators to the forum tried uploading a christmas theme to our forum and since that i keep getting the internal error warning and this about 500 times when i check my error log in cpanel

 

public_html/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

 

All i can tell you is that it is on phpb and apache 1.3.39 unix and its a linux operating system i can try and provide more info if needed.

 

Please help as i am desperate to get my site back up and running

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/82592-urgent-help-required/
Share on other sites

hi there, right im jacko1066's mate who helps him with the website.

 

i have renamed the .htaccess to .htaccessOLD as guided and this has let the website load up so there for what do i have to do next to combat this problem, my .htaccess file is shown below.

 

php_flag register_globals on

Link to comment
https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419964
Share on other sites

right after going onto the shop side of things which is a php online shoping system the following warning appears at the top of my screen

 

Warning: I am able to write to the configuration file: /home/wwwperf/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

what can cause this ? please need help asap thankyou

Link to comment
https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420019
Share on other sites

Its telling you that the file permissions on the configure.php file are too lax. Try chmod'ing it to 655.

 

Also, it is a security risk as well as simply bad practice to enabled register_globals. If that is all your .htaccess file contains I would remove it and fix the code problems that may arise.

Link to comment
https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420026
Share on other sites

it looks like some permissions have been changed somewhere, I cannot even CHMOD a config file at root level

 

If your web hosting guy said exactly that, and he really cannot change a file's permissions while logged in as root, then his entire server is hosed. I've never even heard of that... ever.

 

Most FTP clients have the ability to CHMOD a file, unless your webhost has disabled that FTP command. What client are you using? What type of web control panel are you using? It can usually be done through there as well...

 

PhREEEk

Link to comment
https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420181
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.