Switch between multiple PHP.ini's
Posted by: markos (---.plus.com)
Date: May 06, 2015 05:11AM

I'm working with a number of different projects (with different environment settings) and I wondered if there is a simple solution to switching between mulitple versions of PHP.ini?

I wondered if I could duplicate my PHP install and simply rename the version so I could simply switch between say "5.x (Project A)" and "5.x (Project cool smiley"?

Otherwise I guess I could create a .bat file to copy over the ini version I need.

Options: ReplyQuote
Re: Switch between multiple PHP.ini's
Posted by: RiggsFolly (---.as43234.net)
Date: May 06, 2015 10:23AM

A better solution would be to create a Virtual Host, one for each project.

See how to here [forum.wampserver.com]

Inside the virtual host definition for each project it is then possible to set php parameters specifically for just that Virtual Host.

With statements like this ( just for example )

  php_admin_value upload_max_filesize 128M
  php_admin_value post_max_size 128M
  php_admin_value max_execution_time 360
  php_admin_value max_input_time 360


See the PHP Manual for more details [php.net]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.