2 devs: please make PHPIniDir explicit

Problems with the Windows version of XAMPP, questions, comments, and anything related.

2 devs: please make PHPIniDir explicit

Postby IMil » 04. December 2008 09:37

Sorry for crossposting, but I didn't find another place to make feature requests and I am afraid that the developers don't have time to look deep inside other threads.

If PHP was previously installed on the machine, it's likely to have set the environment variable PHPRC. This makes the "php.ini" file from the previous installation to be used instead of the XAMPP one.

This may lead to confusion. The worst case is when PHP is uninstalled but the environment variable remains. Then default settings are used and things don't work.

Preventing this problem is easy. Just change the default file "httpd-xampp.conf" and include the line "PHPIniDir <xampp install dir>\apache\bin\php.ini" before the "LoadModule php5_module". I believe this will lead to more expected behaviour.
Last edited by IMil on 04. December 2008 19:48, edited 1 time in total.
IMil
 
Posts: 3
Joined: 04. December 2008 08:47

Re: 2 devs: please make PHPIniDir explicit

Postby Sharley » 04. December 2008 10:47

IMil wrote:...Just change the default file "httpd-xampp.conf" and include the line "PHPIniDir <xampp php directory>" before the "LoadModule php5_module". I believe this will lead to more expected behaviour...
The php.ini file directory is not in the xampp php directory in an XAMPP default installation as is laid out in plain English in the FAQ if you care to read it.
http://www.apachefriends.org/en/faq-xampp-windows.html#phpini

The correct location is .\xampp\apache\bin\php.ini

I will leave it up to you to edit your post with the correct information inserted.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 147 guests