php.ini path
4 posts
• Page 1 of 1
php.ini path
Before I installed PHP Tools I already had PHP 5.3 installed with the downloadable installer.
It was recognised and everything went fine with a local apache.
Now I wanted to test PHP 5.4 with its own web server and downloaded the ZIP archive and manually extracted the contents to a certain path.
There I created a new php.ini file.
In the PHP Tools->Interpreter Options I registered the PHP 5.4 path, but I still just see under "Settings" and "Configuration File" the ini file of my PHP 5.3 installation.
I didn't find a way to change this path to my new php.ini file. How can I tell PHP Tools to use my PHP 5.4 ini file when I use the PHP 5.4 integrated web server?
Edit: I use Visual Studio 2010 and PHP Tools 1.8.4504
Best Regards,
Daniel
It was recognised and everything went fine with a local apache.
Now I wanted to test PHP 5.4 with its own web server and downloaded the ZIP archive and manually extracted the contents to a certain path.
There I created a new php.ini file.
In the PHP Tools->Interpreter Options I registered the PHP 5.4 path, but I still just see under "Settings" and "Configuration File" the ini file of my PHP 5.3 installation.
I didn't find a way to change this path to my new php.ini file. How can I tell PHP Tools to use my PHP 5.4 ini file when I use the PHP 5.4 integrated web server?
Edit: I use Visual Studio 2010 and PHP Tools 1.8.4504
Best Regards,
Daniel
- Daniel
- Posts: 29
- Joined: September 9th, 2013, 2:51 pm
Re: php.ini path
Hi Daniel,
This is usually caused by the PHP installer. PHP looks for PHPRC environment variable which 'overrides' php.ini directory. It is possible, your previous installation of PHP 5.3 set this variable on your system.
If there is PHPRC environment variable on your system, PHP (and PHP Tools) uses php.ini from this location.
Note, changing/removing PHPRC variable may need PC restart.
Please give me know if it helps.
Thanks,
This is usually caused by the PHP installer. PHP looks for PHPRC environment variable which 'overrides' php.ini directory. It is possible, your previous installation of PHP 5.3 set this variable on your system.
If there is PHPRC environment variable on your system, PHP (and PHP Tools) uses php.ini from this location.
Note, changing/removing PHPRC variable may need PC restart.
Please give me know if it helps.
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: php.ini path
Ah, this helped, thanks
Best Regards,
Daniel
Best Regards,
Daniel
- Daniel
- Posts: 29
- Joined: September 9th, 2013, 2:51 pm
Re: php.ini path
Great! I'm glad it works for you.
Best,
Best,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 59 guests