본문 바로가기

카테고리 없음

Old Version Of Wamp Server

In my, I said that I like having a development environment on my computer (running Windows 7). I use to do this. I especially like that WampServer allows you to have multiple versions of php (and MySQL and Apache) installed. You can switch between versions in the WampServer menu on the icon in the system tray.The server that an upcoming client project will be hosted on will be running php version 5.2.14.

That version isn’t available for download on the WampServer website, but that doesn’t mean that I’m out of luck. I decided to manually install php to see if I could get it running, and I succeeded. I wanted to share my process so that you can do it to (and so that I know what I need to do if I have to install another version that isn’t available on WampServer). Download the php windows binariesThere are 2 sources for the binaries,. I recommend downloading the files from windows.php.net because they are more up-to-date.

Version

I ran into an issue where the cURL extension wouldn’t load. It turns out the php team made some changes to the phpcurl.dll file to correct those issues. The download on php.net doesn’t include those changes (it’s an older version).No matter which source you choose to download the binaries from, download the zip package. Extract the contents of the zip file to C:/wamp/bin/php/php5.2.14 (change the path to reflect where you have WampServer installed and the version number to whatever version you are installing). Modify the php.ini fileYou need to make some changes to the php.ini file in order for it to work with WampServer. NOTE: You will need to modify the paths to reflect where your installation of WampServer is (mine is in C:/wamp). You will also have to modify the extensiondir if you are installing a version other than 5.2.14.

The following lines indicate the changes you will need to make. Just do a search to find where in the file the lines are so you can make the changes (I noticed that the line numbers vary between php versions, so I didn’t include them here).; Log errors to specified file.errorlog = c:/wamp/logs/phperror.log; Directory in which the loadable extensions (modules) reside.extensiondir = 'c:/wamp/bin/php/php5.2.14/ext/'; Temporary directory for HTTP uploaded files (will use system default if not; specified).uploadtmpdir = 'c:/wamp/tmp'; where MODE is the octal representation of the mode.

Wamp 2.0

Old Version Of Wamp Server

Note that this; does not overwrite the process's umask.session.savepath = 'c:/wamp/tmp'You will also want to enable/disable any extensions that you need for your application(s).Once you have completed your changes to the php.ini file, you will need to save a copy of the file with the filename of phpForApache.ini (in the same directory as the php.ini file). You must do this in order for WampServer to use the new version. WampServer copies this file to the Apache server when you select the version from the menu. Modify the WampServer configurationIf you already have WampServer running with another version of php, copy the wampserver.conf file from that version into your newly installed version. If you don’t have another version running, paste the following code into a file and save it in the directory that you extracted the php files to.$phpConf'phpIniDir' = '.' ;$phpConf'phpExeDir' = '.'