iman121 Posted November 22, 2007 Share Posted November 22, 2007 Hey... I had php5 ... After I inistalled php5.2.5 , I faced to this message(every time I want to run a php) "The server encountered an internal error or misconfiguration and was unable to complete your request." This is the result of I run php -info " ... Loaded Configuration File (none) ... " How can I fix it please help thanks Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted November 22, 2007 Share Posted November 22, 2007 PHP will still function fine if no php.ini is found. It'll resort to a default configuration. If you are using Apache (version 2.0.x or above) you can add the following directive the httpd.conf: PHPIniDir "C:/php" change C:/php to where you have installed PHP to. Now go to PHP's installation folder and and find a file called php.ini-recommended rename this file to php.ini . Save your httpd.conf and restart Apache. Rerun phpinfo and you should see PHP is now reading the php.ini located in PHP's installation folder. NOTE: I always recommend adding PHP to the Windows PATH variable. In doing so can help to keep problems to a minimum as you don't need to keep moving php library files around the file system, you can keep them all in one place. To learn how to add PHP to the PATH please read this PHP FAQ Quote Link to comment Share on other sites More sharing options...
iman121 Posted November 22, 2007 Author Share Posted November 22, 2007 wildteen88 : thanks alot I did it before... but it didn`t solved it... I`m using linux with suPhp... ... Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted November 22, 2007 Share Posted November 22, 2007 Ohh... I do not have any experience with Linux so I cant really help you sorry. Perhaps another member will be able to help you more. Quote Link to comment Share on other sites More sharing options...
iman121 Posted November 23, 2007 Author Share Posted November 23, 2007 Thanks anyway I had php 5 and I inistalled php5.2.5(with Apache 2.0.58 ) But Now I receive this error(500) Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Plz help ( thanks Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted November 23, 2007 Share Posted November 23, 2007 Check Apaches error log. All errors that cause a 500 Internal error messages are logged within the error log. NOTE: Look at the bottom of the error log for the most recent error. 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.