PC Nerd Posted June 16, 2007 Share Posted June 16, 2007 hi guys. ivre recently installed V-Webmail on my server, and the installation worked fine on my localhost. However when i uploaded the files to my online server, i found that i got "Intertnal Server Error". Now when i looked at the index.php, it had code, using :: between words an example is below. Coudl this be cauaseing the error, or is it somethign else? thanks for your help, PC Nerd include('config.php'); /** ** Check Login */ auth::check_login('login.php', 'index.php'); /** * Redirect to email.list.php */ common::redirect('email.list.php'); Please remember this is the index.php from V-Mail, just to make sure im not bvreaching copyright.:> thanks Quote Link to comment Share on other sites More sharing options...
chigley Posted June 16, 2007 Share Posted June 16, 2007 Internal server errors are primarily caused by a .htaccess misconfiguration, check it Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted June 16, 2007 Author Share Posted June 16, 2007 hmmm ok, thanks, Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted June 16, 2007 Author Share Posted June 16, 2007 ok, this is the htaccess file.... that comes with the files.... i dont know anythign about this sort of stuff..... can some one let me know what mught be causeing this problem? thanks. php_flag session.auto_start Off php_flag register_globals Off Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 16, 2007 Share Posted June 16, 2007 It is best to look at Apaches error log for the reason why you are getting 500 internal error message. I think it maybe because Apache is not recognising the php_flag attributes within the .htaccess file. Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted June 16, 2007 Author Share Posted June 16, 2007 thanks, i will look into it.....does anyoen know what it is straight off? Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted June 16, 2007 Author Share Posted June 16, 2007 Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuratio is the error log with this htaccess file..... how coulr i replace or fix it? thanks Quote Link to comment Share on other sites More sharing options...
chigley Posted June 16, 2007 Share Posted June 16, 2007 Perhaps include a file like this in every file of your site? Or put it in the config file or something, just anything as long as it's included in every file! ini_set("session.auto_start", 0); ini_set("register_globals", 0); Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted June 16, 2007 Author Share Posted June 16, 2007 thats a problem, becauase it took me ages to upload the directory.... like theres heaps if files. thats why i think thayve put in htaccess etc..... i dont even know what each one is doing... unless its going to impact onm site, i could always place it in the /www/ directory version? would this help thanks Quote Link to comment Share on other sites More sharing options...
chigley Posted June 16, 2007 Share Posted June 16, 2007 Is there a configuration file in which you place database credentials or anything? Or perhaps a header.php file? Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted June 16, 2007 Author Share Posted June 16, 2007 what do you meabn, like an include file where i connecto to a database? im ot sure ill have to look.... Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted June 17, 2007 Author Share Posted June 17, 2007 could you please clarify what you mean by database credentials? thanks Quote Link to comment 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.