php.ini path

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

php.ini path

Postby Daniel » September 9th, 2013, 2:55 pm

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
Daniel
 
Posts: 29
Joined: September 9th, 2013, 2:51 pm

Re: php.ini path

Postby Jakub Misek » September 10th, 2013, 12:56 pm

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,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: php.ini path

Postby Daniel » September 11th, 2013, 12:24 pm

Ah, this helped, thanks :)

Best Regards,
Daniel
Daniel
 
Posts: 29
Joined: September 9th, 2013, 2:51 pm

Re: php.ini path

Postby Jakub Misek » September 12th, 2013, 2:49 pm

Great! I'm glad it works for you.

Best,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 59 guests

cron

User Control Panel

Login

Who is online

In total there are 59 users online :: 0 registered, 0 hidden and 59 guests (based on users active over the past 5 minutes)
Most users ever online was 330 on April 19th, 2024, 1:35 am

Users browsing this forum: No registered users and 59 guests