I have added a php7.0.0 directory khổng lồ wamp/bin/php, copied files php.ini, phpForApache.ini và wampserver.conf, and modified the directories và php extensions in these files.
Bạn đang xem: Using php 7 with wamp
There is my wampserver.conf:
It is correctly read by WAMP because when I select the php7.0.0 version, the Apache httpd.conf gets this line:
LoadModule php7_module "c:/wamp/bin/php/php7.0.0/php7apache2_4.dll"The path is correct và the dll tệp tin exists, but the Apache service doesn"t start & if I kiểm tra Apache extensions, the php7_module is indicated as not found (red square).
If I kiểm tra apache error log, the only reported one is
Does anyone who has successfully run PHP 7 in WAMP vps know a fix for this problem? Thank you.
php apache wampserver php-7
tóm tắt
Improve this question
Follow
edited Sep 5, 2016 at 17:02

Erbureth
3,2092121 silver badges3838 bronze badges
asked Dec 8, 2015 at 10:06

tyd01tyd01
16111 gold badge11 silver badge1010 bronze badges
2
địa chỉ a comment |
4 Answers 4
Sorted by: Reset to default
Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)
Help us improve our answers.
Are the answers below sorted in a way that puts the best answer at or near the top?
Take a short survey I’m not interested
1
I found out the trick for the Version 3.0 +LEFT click (instead right click) lớn the Wamp icon tray e choose the PHP Version.
nội dung
Improve this answer
Follow
answered Mar 31, 2018 at 10:53
novecentonovenovecentonove
31933 silver badges1212 bronze badges
2
địa chỉ cửa hàng a comment |
6
There is the answer :
I was running with the last official wampserver which seems to lớn be not compatible with php7 (I have made some tests on 4 computers with the same result of my problem).
One of my colleague give me this link: http://forum.wampserver.com/read.php?1,126455 with some tutorials lớn update wampserver lớn unofficial new versions.Following this indications I have updated folders wamp/scripts & wamp/lang.After that apache start normally using php 7.
Xem thêm: Hướng Dẫn Xây Dựng Website Php Và Bootstrap, Lập Trình Php
PS : it seems to be some errors with certain php functions. One more fix is to lớn update some other wampserver files, the details are on the links up. But for the moment I haven"t got this errors.
Thank you to all the people who are coming on this page and giving me some help.
I hope in the future some other developers will found answers here.
share
Improve this answer
Follow
edited Nov 17, 2018 at 9:16

CommunityBot
111 silver badge
answered Dec 11, 2015 at 10:21

tyd01tyd01
16111 gold badge11 silver badge1010 bronze badges
địa chỉ cửa hàng a phản hồi |
1
I just fix the same error earlier. All liên kết are from the french wampserver forum, maybe the same liên kết can be find in english.
First, follow all steps that are discribed here (otomatic"s response, it works fine for me with the php7.0.0 release) : http://forum.wampserver.com/read.php?1,133587,133587#msg-133618
care about khổng lồ update your wampserver version following these steps : (if you don"t run a 3.0 wampserver ) http://forum.wampserver.com/read.php?1,126455
Don"t forget khổng lồ install all packages at step 20 (both x86 and x64) in the wampserver forum"s CONSEILS DE DEPANNAGE section: forum.wampserver.com/read.php?1,88043
After that, some symbolic"s liên kết can be missing with a php7 dll. So, you have to add some lines in wamp/scripts/config.inc.php (view otomatic"s #msg-135093 in the first link) : forum.wampserver.com/read.php?1,133587,133587#msg-133618
I hope that could help you.
nội dung
Improve this answer
Follow
edited Dec 8, 2015 at 16:51
answered Dec 8, 2015 at 16:44
AriartAriart
68955 silver badges1616 bronze badges
0
showroom a phản hồi |
8
On windows, click on wamp php, versions,then select your version

chia sẻ
Improve this answer
Follow
answered Jun 12, 2017 at 12:32
Mwangi ThigaMwangi Thiga
1,3191919 silver badges2222 bronze badges
địa chỉ a comment |
Your Answer
Thanks for contributing an answer to Stack Overflow!
Please be sure khổng lồ answer the question. Provide details and share your research!But avoid …
Asking for help, clarification, or responding to lớn other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.
Draft saved
Draft discarded
Sign up or log in
Sign up using Google
Sign up using Facebook
Sign up using thư điện tử and Password
Submit
Post as a guest
Name
thư điện tử Required, but never shown
Post as a guest
Name
thư điện tử
Required, but never shown
Post Your Answer Discard
By clicking “Post Your Answer”, you agree khổng lồ our terms of service, privacy policy & cookie policy
Not the answer you're looking for? Browse other questions tagged php apache wampserver php-7 or ask your own question.
The Overflow Blog
Featured on Meta
Linked
2
Changing WampServer PHP website version
0
Switching php version in wamp
Related
2773
How can I prevent SQL injection in PHP?
2884
Deleting an element from an array in PHP
4909
Reference — What does this symbol mean in PHP?
2199
How does PHP 'foreach' actually work?
2652
Why shouldn't I use mysql_* functions in PHP?
0
Laravel 5.7 Apache 2.4 php 7.2 Undefined class constant 'SQLSRV_ATTR_FETCHES_NUMERIC_TYPE'
3
Installing Apache 2.4 và PHP 7 on Windows 10
Hot Network Questions more hot questions
Question feed
Subscribe to RSS
Question feed to subscribe khổng lồ this RSS feed, copy và paste this URL into your RSS reader.
lang-php
Stack Overflow
Products
Company
Stack Exchange Network
Site design / logo © 2022 Stack Exchange Inc; user contributions licensed under cc by-sa. Rev2022.5.2.42013
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.