I'm running XAMPP 1.6.8 on Windows 7 Ultimate and I wonder how can I upgrade my current installation with PHP 5.3.x without changing the whole XAMPP.
Can I just download PHP 5.3 from php.net and replace the PHP folder inside XAMPP?
You cant. php_mod is what XAMPP uses, unless you can get XAMPP to use ISAPI, or CGI. ISAPI is supposed to be called inside of apache, CGI is supposed to run on request, FastCGI is supposed to be better than both.
But assuming your using XAMPP you'll only want to use the version that works best for Windows 7. More likely plain PHP CGI will be updated the most often since its a generic library from PHP not dependant on what web server software you use.
Related
My question is simple: how to update PHP in Xampp withouts reinstallation? Current PHP version is 7.1.1
I have tried the following:
downloaded thread-save and non thread safe versions, extracted them in php and then replacing php.ini with older version
Copied all directories which are not in updated verion
answers from Upgrading PHP in XAMPP for Windows?
second answer from Upgrade PHP on XAMPP 1.8.3 windows 7 installation
Because Laravel requires newer versions every few weeks i would consider updating just php rather than Xampp itself.
The question is what is the best way to manage PHP versions withouth reinstalling Apache server? I need specific version because of software specifications
As #IgorIlic mentioned, one of the options is to setup different versions on different ports.
The other option would be to change PATH value, which points to PHP installation. Just edit the line and change it to version that you require.
So basically i am trying to run yii-framework on wamp server but required higher version of php (5.4 above). In my Wamp server, the php version is 5.5 which i have checked on browser (localhost). But the when i run it on windows, it fails because the windows version is only 5.3. It causes the yii framework fail too because when i type php requirements.php. it does not work.
There is no Windows version of PHP so basically you must have installed a version of PHP manually i.e. not with WAMPServer.
This will probably have added an entry on you PATH ( always a bad idea when using WAMPServer anyway as you can have many versions of PHP on your system at one time with WAMPServer)
Look at your PATH and if you must, amend it to point to the PHP in \wamp\bin\php\php{version}
A better way is to remove any reference to PHP from the PATH environmant variable and write a simple batch file to add php to your path only when you want to, like this
Batch file saved in C:\windows\phppath.cmd
echo off
PATH=%PATH%;c:\wamp\bin\php\php5.4.16
Assuming you have php5.4.16 on your wampserver install.
I have IIS 7 and Plesk 10.4.4 on my Cloud Server. I need to update php version. Right now php is being served by Plesk, and I don't know how to update it with Plesk.
I've managed to install the latest version with IIS 7 and Php Manager, so I was wondering, how can I force php serving through IIS instead of Plesk? Is it possible?
Thanks.
PHP it's just binary file you can take necessary complied files and just replace it where it installed in plesk %plesk_dir%\Additional\pleskphp5, but you have to create backup of replaced files and preserve all current permissions.
There possible issues with future upgrade to next plesk version, because files replacement can make Windows Installer crazy.
Btw Plesk 11.5 has feature which allows to add your own PHP handlers.
Trying to upgrade from PHP 5.2.5 to 5.2.17 (and then to 5.3.6 once that works) on IIS 6.0, installing the language itself runs just fine and I changed the PHP.ini/ect locations that IIS uses for PHP, everything still works but when I run PHP info on my site it still says it's running PHP 5.2.5. Restarted IIS, restarted the server even, no difference. What do I do to change which version/what location of PHP IIS is using?
When I install PHP 5.3.6 the site no longer works, so I know installing different versions is doing SOMETHING, but I think it might only be changing the PHP.ini my server is using, not the version of PHP.
In addition to installing the windows binary release of PHP I've also tried installing PHP from Microsoft's Web Platform Installer (both 5.3.6 and 5.2.17), after installing neither showed up as the current version in phpinfo either.
If you want to use php 5.3, you must install IIS FastCGI extension and run PHP as cgi script. From php 5.3 isapi is not supported. But everything works fine if you configure it, and as benefit you can use more php version simultaneously. IIS 6 is not a problem. Download PHP non thread safe.
For details see this, for example: http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
Download the latest VC11 x86 Non Thread Safe version of PHP from http://windows.php.net/download/
Once the zip is downloaded, right click on the zip file and select properties. Make sure you unblock the file.
Rename your current PHP folder to PHPold.
Find your php.ini file and rename it to phpold.ini
Extract the zip file to c:\temp\php.
Copy the php folder from c:\temp to wherever your old PHP folder was.
Go to your new php folder and copy php.ini-production and paste it to where your old php.ini file was
Rename php.ini-production to php.ini
On the server, make sure you have Notepad++ along with the Compare plugin. If you need the compare plugin, use these steps. http://www.davidtan.org/how-to-compare-two-text-files-using-notepad-plus/
In the location that stores your phpold.ini and php.ini, right click on each of those files and open them with Notepad++. On the php.ini, only make changes to the lines with the >> next to them.
Once the changes have been made, make sure you save php.ini.
Go to Services and restart IIS.
Solution has been to move to Apache in my case. IIS 7 has better tools but IIS has proven to be a poor environment for development in this case.
I have designed a PHP based website which needs to run on a local server. Unfortunately I have developed this on a WAMP server using Apache. The machine on which this website will be placed on only supports the IIS server and I am not allowed to install Apache on this this machine.
How do I run PHP code on an IIS server?
See this link: http://php.iis.net/
99% of stuff is compatible. There can be some problems though (for example if you use mod_rewrite, or some file operation functions behave a little differently).
You can get it installed and include the right infrastructure (IIS, WinCache, and FastCGI, and URL Rewrite) with a single click using Web Platform Installer:
To install PHP 5.2 use:
http://www.microsoft.com/web/gallery/install.aspx?appid=PHP52
To install PHP 5.3 use:
http://www.microsoft.com/web/gallery/install.aspx?appid=PHP53
http://php.iis.net/
With IIS 7, a lot of the apache/iis gaps have been closed. Like mod_rewrite is available in IIS 7 (http://www.iis.net/download/urlrewrite)
Here's how I got PHP 5.3 running on IIS 6:
http://www.howtoadvice.com/PHPIIS