Why do I need this?
WampServer is a great web development environment but it's a bit outdated so if you want to work with latest apache server you need to do it manually. Also consider to make a donation to the Apache Lounge to keep the site alive and continuing the building of the binaries by visiting their site and clicking donation.
Prerequirements
You need to have WampServer 2.5 or later (may work for older versions too), if you don't know how to install WampServer check my tutorial here.
Where to download?
You can download the latest apache version from the Apache Lounge. Based on your machine you will download the 32-bit or 64-bit, if you don't know which one is for you then download the 32-bit. If the latest version is 2.4.10 as your read this then you can download it directly from the below links.
How to install it?
Go to C:\wamp\bin\apache directory, there you will see the old apache version in my example is apache2.4.9. Now create a folder apachex.x.x based on the version you downloaded without deleting the old one, in my example is apache2.4.10 and extract all the files there. Now open httpd.conf which you can find on this directory C:\wamp\bin\apache\apache2.4.10\conf. Below are the required changes that you must do and some recommended that you can skip or modify as you want.
Required
ServerRoot "c:/wamp/bin/apache/apache2.4.10" Define APACHE24 Apache2.4
ServerName localhost:80
DocumentRoot "c:/wamp/www" <Directory "c:/wamp/www">
ScriptAlias /cgi-bin/ "c:/wamp/bin/apache/apache2.4.10/cgi-bin/"
# "c:/Apache24/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "c:/wamp/bin/apache/apache2.4.10/cgi-bin"> AllowOverride None Options None Require all granted </Directory>
# If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .php3Place this under the #LoadModule xml2enc_module modules/mod_xml2enc.so
LoadModule php5_module "c:/wamp/bin/php/php5.5.12/php5apache2_4.dll"Place this at the end of file
#IncludeOptional "c:/wamp/vhosts/*" Include "c:/wamp/alias/*"
Recommended
WampServer by default includes also those modules but I suggest to comment back the ones you don't use
LoadModule cache_module modules/mod_cache.so LoadModule cache_disk_module modules/mod_cache_disk.so LoadModule deflate_module modules/mod_deflate.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule vhost_alias_module modules/mod_vhost_alias.so
DirectoryIndex index.php index.php3 index.html index.htm
#AllowOverride controls what directives may be placed in .htaccess files. #It can be "All", "None", or any combination of the keywords: #AllowOverride FileInfo AuthConfig Limit AllowOverride all
ErrorLog "c:/wamp/logs/apache2.4.10_error.log"
CustomLog "c:/wamp/logs/apache2.4.10-access.log" commonUncomment
AddEncoding x-compress .Z AddEncoding x-gzip .gz .tgzUncomment
Include conf/extra/httpd-autoindex.conf
Save and close the file. Now go to the apache2.4.9 folder and copy the wampserver.conf to the apache2.4.10 folder. There is also a wampserver.conf inside the apache2.4.9/conf copy it to the apache2.4.10/conf. Exit from WampServer and open it again, now click to the WampServer tray icon, Apache, Version and now you will see that there are 2 apaches the 2.4.9 and the 2.4.10. Click on the one that you want to use, both works.
Verify that it works
Go to the localhost and you will see Apache Version : 2.4.10
No comments:
Post a Comment