storescas.blogg.se

Xampp change php version
Xampp change php version








xampp change php version

Just add the following at the bottom of the config file to set directories. Now you can set directories that will run in php 5.6. Note: You can add more versions of PHP to your xampp installation following step 1 to 3 if you want. A text file will open up put the following settings at the bottom of the file: ScriptAlias / php56 "C:/xampp/php56" AllowOverride None Options None Require all denied Open xampp control panel, click config button for apache, and click Apache (nf). Then uncomment the following line: extension_dir = "ext" If the file does not exist copy php.ini-developmentto php.ini and open it in notepad. Open c:\xampp\php56\php.ini file in notepad.

xampp change php version xampp change php version

Download the php zip archive from here and extract the files under c:\xampp\php56. So you have php 7 running under xampp, you want to add an older php version to it, say php 5.6. Then you can set an older PHP version on a different port (say 8056) so when you go to runs php 7 and when you go to runs php 5.6.

  • Run an older PHP version on a separate port of xampp: Sometimes you may be upgrading and old project to latest PHP version when you need to run the same project on new and older php version back and forth.
  • Just configure xampp to run older PHP version only for those project directories.
  • Run an older PHP version for only the directory of your old project: This will serve the purpose most of the time, you may have one or two old projects that you intend to run with older PHP version.
  • Why switch between PHP versions when you can use multiple PHP version at a same time with a single xampp installation? With a single xampp installation, you have 2 options:










    Xampp change php version