jacko1066 Posted December 20, 2007 Share Posted December 20, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/ Share on other sites More sharing options...
trq Posted December 20, 2007 Share Posted December 20, 2007 Can you post the contents of your .htaccess file? Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419866 Share on other sites More sharing options...
PHP_PhREEEk Posted December 20, 2007 Share Posted December 20, 2007 FTP into your server web root. Rename .htaccess to .htaccessOLD Re-load the site... If it loads up, then you can take your time trouble shooting the .htaccess file problem PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419868 Share on other sites More sharing options...
Ninjakreborn Posted December 20, 2007 Share Posted December 20, 2007 1. Paste your htaccess file. 2. What web host are you using. Some hosts support certain things, while other's don't. Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419874 Share on other sites More sharing options...
jacko1066 Posted December 20, 2007 Author Share Posted December 20, 2007 Hi thorpe How can i do this ?? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419876 Share on other sites More sharing options...
trq Posted December 20, 2007 Share Posted December 20, 2007 Hi thorpe How can i do this ?? Thanks If you have shell access, login and cat the .htaccess file. Otherwise download it via ftp, then post the contents here. If all this has gone over your head, were in trouble. Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419883 Share on other sites More sharing options...
Ninjakreborn Posted December 20, 2007 Share Posted December 20, 2007 Go to your .htaccess file in your server via ftp. Copy the contents within that file, and paste it here. Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419884 Share on other sites More sharing options...
jacko1066 Posted December 20, 2007 Author Share Posted December 20, 2007 hi guys how can i post up the htaccess file ?? Also i am using a company called hostyorkshire i am onto it now getting the htaccess file Cheers will reply as quick as i can Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419887 Share on other sites More sharing options...
dyson Posted December 20, 2007 Share Posted December 20, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419964 Share on other sites More sharing options...
phpSensei Posted December 20, 2007 Share Posted December 20, 2007 Your php may be running as a CGI. Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419969 Share on other sites More sharing options...
dyson Posted December 20, 2007 Share Posted December 20, 2007 ok so if it is how do i change this ????? if it help the url to the site is www.performance-direct.co.uk Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-419974 Share on other sites More sharing options...
dyson Posted December 21, 2007 Share Posted December 21, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420019 Share on other sites More sharing options...
trq Posted December 21, 2007 Share Posted December 21, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420026 Share on other sites More sharing options...
dyson Posted December 21, 2007 Share Posted December 21, 2007 ok the hosting company bloke said this it looks like some permissions have been changed somewhere, I cannot even CHMOD a config file at root level i dont understand php well enough tbh im only a noobie at it. any help is much appreciated thanks Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420038 Share on other sites More sharing options...
trq Posted December 21, 2007 Share Posted December 21, 2007 File permissions have nothing to do with php. How do you gain access to the server? Do you have shell access at all? Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420043 Share on other sites More sharing options...
trq Posted December 21, 2007 Share Posted December 21, 2007 ps: If you don't know what Im talking about it may simply be worth your while to have someone do this for you. Its pretty hard to explain stuff otherwise. Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420044 Share on other sites More sharing options...
dyson Posted December 21, 2007 Share Posted December 21, 2007 no i am having to use ftp access. Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420045 Share on other sites More sharing options...
trq Posted December 21, 2007 Share Posted December 21, 2007 OK. Via your ftp client can you right click on the file and chmod it? You need user to have read/write and execute, group to have read/execute and other to have read/execute. Im not sure this is at all related to the original problem though. Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420047 Share on other sites More sharing options...
PHP_PhREEEk Posted December 21, 2007 Share Posted December 21, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/82592-urgent-help-required/#findComment-420181 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.