Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/78438-loaded-configuration-file-none/
Share on other sites

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

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

 

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.