Hello folks, I know it’s a bit late but I realize that this should be helpful for someone. So today we are going to learn how to configure PHP 8 in the windows wamp server.
PHP 8 version is already been launched and you as a tech artisan want to put your hands on a new journey of the version. You may be thinking about how to configure it in my wamp server.
As I personally know that if you are using windows wamp then you can easily switch PHP versions so it very uses full for a run some older projects which were using an older version of PHP.
So before we start configuration we must know the basic requirement of php8.
- Apache 2.4.x, I already have apache 2.4.46 installed in my wamp
- first you need to install Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, and 2019. Download and install both the x86 and x64 versions by clicking this link. If you have 32 bit OS, then i recommend downloading the 32-bit package only. If you have 64-bit os then i recommend installing both.
Once you are ready with installation then we are ready to configure PHP8.
Step: 1
Download the PHP8 version by clicking this link for windows. Select the x64 Thread Safe version if you have 64bit Windows. Right now PHP 8.0.6 is available so I downloaded that one.
Step: 2
Goto your WAMP directory, (generally C:/wamp) but I had installed it in D:/ drive so my path is D:/wamp. Now go to D:/wamp/bin/php and create a new folder named “php8.0.6″ and extract here the downloaded PHP .zip file.
Step: 3
Now, go to the old PHP folder ( D:/wamp/bin/php/php7.2.33). (mine is php7.2.33), and copy wampserver.conf from old and paste it to your “php8.0.6″ D:/wamp/bin/php/php8.0.6) directory.
Step:4
Now, go to D:/wamp/bin/php/php8.0.6 directory and find file php.ini-development. Copy it and rename it to php.ini in the same directory. Make sure you set the current path in extension_dir
next, open that php.ini file and update the following values:
extension_dir = D:/wamp/bin/php/php8.0.6/ext
upload_tmp_dir = D:/wamp/tmp
error_log = D:/wamp64/logs/php_error.log
Now, scroll down to extension list and choose the extensions which will nessesory and usefull for your projetcs. mostly are there but you only have to uncomment. i needed following :
extension=bz2
extension=curl
extension=fileinfo
extension=gd
extension=gettext
extension=gmp
extension=intl
extension=imap
extension=ldap
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
extension=openssl
extension=pdo_mysql
extension=pdo_sqlite
extension=snmp
extension=soap
extension=sockets
extension=xsl
Save and close the file.
Step:5
Next, create a duplicate of php.ini file and rename it as phpForApache.ini. This file used by the Apache webserver.
Step:6
Now open wampserver.conf copied in D:/wamp/bin/php/php8.0.6/ directory in Step 3 above. make the changes in it so that it should look like the following:
Note : Here the LoadModuleName for PHP 8 is php_module and LoadModuleFile for PHP 8 is php8apache2_4.dll
Step:7
now re-start WAMP server and go to PHP > PHP Version and there you will find version 8.0.6 and select it.
You can see that the PHP version is now updated to PHP 8 in PHP Info from localhost in any browser.
Notes to keep in mind :
It is recommended to include the new path in your system path directory otherwise you may face some issues with your CURL extension.
navigate to Windows environment variable window and edit system variable “Path” to add a new string “D:\wamp\bin\php\php8.0.6;”.
This step will resolve the CURL error “Unable to load dynamic library ‘php_curl.dll’ – The specified module could not be found in Unknown on line 0”
Now Enjoy Codding journey with PHP8. I hope this will help.
Howdy! Would you mind if I share your blog with my
facebook group? There’s a lot of people that I think would really
enjoy your content. Please let me know. Thanks
yes, you can share via link.
Very nice write-up. I definitely appreciate this site. Thanks!
What a data of un-ambiguity and preserveness of precious familiarity about unexpected emotions.
You ought to take part in a contest for one of the best websites on the net. I am going to recommend this website!
Really appreciate you sharing this blog post.Much thanks again. save writing.
Everything is very open with a really clear description of the issues. It was definitely informative. Your website is useful. Thank you for sharing!
Ahaa, its pleasant conversation on the topic of this piece of writing at this place at this web site, I have read
all that, so at this time me also commenting here.
Hi, everything is going well here and ofcourse every
one is sharing information, that’s in fact excellent, keep up writing.
No matter if some one searches for his required thing, so he/she needs to be available that
in detail, thus that thing is maintained over here.
I think the admin of this web site is actually working
hard in favor of his website, because here every material is quality
based information.
Very nice post. I absolutely appreciate this website. Continue the good work!
I do not even know how I ended up here, but I thought this post was good.
I do not know who you are but certainly you’re going to
a famous blogger if you are not already 😉 Cheers!
Excellent blog here! Also your web site loads
up fast! What host are you using? Can I get your affiliate link to your
host? I wish my website loaded up as quickly as yours lol
I am constantly invstigating online for articles that can assist me. Thank you!
Wow, wonderful blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your web
site is wonderful, let alone the content!
I will right away snatch your rss as I can’t to find your email subscription hyperlink or
e-newsletter service. Do you have any? Please permit me realize so
that I may just subscribe. Thanks.
Thank you, I’ve just been searching for info about this
subject for a long time and yours is the greatest I’ve found out till now.
But, what about the bottom line? Are you positive in regards
to the supply?
I have read so many articles or reviews on the topic
of the blogger lovers however this paragraph is truly a good paragraph,
keep it up.
This is very interesting, You’re a very skilled blogger.
I’ve joined your rss feed and look forward to seeking more of
your magnificent post. Also, I have shared your site in my
social networks!
We’re a bunch of volunteers and starting a new scheme in our community. Your website provided us with useful info to paintings on. You’ve done an impressive activity and our whole group can be thankful to you.