Today, I have on my Windows 8.1 computer (64bit), Wampserver 2.4, php 5.4.12, and apache 2.4.4 . Because of my student project, i have to upgrade my php version to 5.5.10. For this, I used this tutorial : http://forum.wampserver.com/read.php?2,113423,113435#msg-113435
I did every line in this tutorial, but, when i tried to switch php version in wampServer, i got this message :
this php version doesn't seem to be compatible with your actual apache version
So, i installed a VC11 (2.4.9) apache version, but this time, when i switched my apache version, i got this very intersting message :
this Apache version doesn't seem to be compatible with your actual PHP version
This message almost killed me... so i checked in httpd.conf, (i compared it to my old apache version) but nothing more happened...
If someone can help me find out the solution, or give me a tutorial for my case.. I'll be very greatfull.
I believe that you installed the 64bit version of WAMPServer. That means you installed a 64bit Apache/PHP/MySQL.
When you added php version to 5.5.10 did you check that it was a 64bit version? It will need to be!
Related
I am trying to experiment web sockets with cakephp ver 4. My server is WAMP 3.2.6 x64 running on Win 10 and PHP 8.1.0 set as preferred engine version. It turns out that zmq-extension has to be enabled in php.ini file.
And there lies my problem: I've searched many stackoverflow solutions, that seem to have been usuful for older php and OS versions, but none seems to work for my configuration.
Is it possible that php_zmq is not fixed for running on php 8? Or, maybe WAMP 3.2.6 is to blame?
Thanks in advance for your prompt replies!
Well, the solution for me was to downgrade php to version 7.2.34. All other attempted php versions, up to ver 8.0.1 at least, were futile.
I replaced my 2.1 version of WampServer with the 3.1.4 64 bit version. Everything worked after the installation. But I need to have php 5.4 and that doesn't come with this version of WS. So I downloaded that version, made the changes to the various files as mentioned here and other places. But when I switch to 5.4 it doesn't start.
I ran the "Check State of Services" tool and it said this
State of services:
The service 'wampapache64' is NOT started EXIT error code:1066 Help
message for error code 1066 is: The service has returned a
service-specific error code.
The service 'wampmysqld64' is started
The service 'wampmariadb64' is started
The service 'dnscache' is started
WampServer (Apache, PHP and MySQL) will not function properly if any
service 'wampapache64' 'wampmysqld64' 'wampmariadb64' 'dnscache' is
not started.
And the "Check http.conf" tool said
httpd.exe: Syntax error on line 195 of
C:/wamp64/bin/apache/apache2.4.35/conf/ht tpd.conf: Cannot load
c:/wamp64/bin/php/php-5.4.9/php5apache2_4.dll into server: %1 is not
a valid Win32 application.
And line 195 of that file is
LoadModule php5_module
"${INSTALL_DIR}/bin/php/php-5.4.9/php5apache2_4.dll"
Is it failing because the dll file is for the wrong version or do to something else? I've tried to locate a php5apache2_4.dll file for 32 bit but I couldn't find one.
I've spent most of the weekend on this and if I can't get it going I will need to go back to my previous version since I work on more sites using 5.4 than later versions. I hope I don't have to do that.
If you are using WAMPServer 3 or greater then there are a multitude of versions of PHP that can be downloaded as ADDONS. In other words installed into WAMPServer with a simple download and click to install.
I suggest you remove the manually installed version of PHP and use the provided downloads.
They are available from SourceForgce, but they are a LOT EASIER to find on the WAMPServer backup repo
It looks like you may need to use the 32bit WAMPServer 3.1.4 as there does not appear to be a 64bit PHP5.4 available in the ADDON list.
You may also find that you need to download an older version of Apache to get PHP5.4 to run as Apache and PHP have to be installed to versions that are compatibly compiled.
But with WAMPServer 3 there are 16 versions of Apache and 50 or so versions of PHP.
EDIT: In answer to your comment
If you uninstall the 64bit WAMPServer (after backing up site code and any databases) and install the 32bit WAMPServer V3.1.4.
The version of Apache i.e. V2.4.35 that comes with WAMPServer3.1.4 will run PHP5.4.45. So once you have WAMPServer 3.1.4 installed and working (check it works before continuing) you can download and install the ADDON for PHP5.4.45
Then using the wampmanager menu, switch to PHP5.4.45.
The version of MySQL is not directly link to Apache/PHP so the version that comes with WAMPServer V3.1.4 will work just fine.
It would also be a good idea to apply the WAMPServer 3.1.5 upgrade to WAMPServer 3.1.4 so you are totoally upto date with WAMPServer
I have upgraded from PHP 7.0, which worked perfectly on both my development Windows 7 machines, to PHP 7.2. On one machine Apache server 2.4.17 won't even start. On the other one Apache starts normally, but when I run my site I can't seem to get the openSSL to work. I get the error that openssl_random_pseudo_bytes is unknown function. I repeat, everything works fine on 7.0. I use the same php.ini file for both versions.
Also, the only difference between the machines is that the one on which Apache won't start has Visual Studio 2017 installed, while the other one does not.
I also need to mention that upgrade to 7.1 doesn't work either.
Any ideas?
Thanks,
Goran
Did you enable OpenSSL in php.ini?
Change:
;extension=php_openssl.dll
To:
extension=php_openssl.dll
I'm trying to upgrade the PHP on my WampServer installation (Apache 2.2.22, PHP 5.3.13, MySQL 5.5.24) from PHP v5.3.13 to v5.4.45. I only want to update PHP, not any of the other WampServer components. I've confirmed that my installed WampServer was compiled with the Microsoft VC9 compiler and that PHP 5.4.45 is also compiled with the same Microsoft VC9 compiler. I've used the instructions given at this link in the HOW TO MANUALLY INSTALL A NEW RELEASE OF PHP INTO THE WAMP ENVIRONMENT section (a little more than halfway down in the article) to install PHP 5.4.45:
http://forum.wampserver.com/read.php?2,60567,page=2
When I change my PHP version from 5.3.13 to 5.4.45 (using the WampServer menu that's displayed when I click on the WampServer Task Bar icon) the color of the WampServer icon changes from green (when PHP 5.3.13 is selected) to orange (when PHP 5.4.45 is selected). Does anyone have an easy-to-understand set of instructions for upgrading just the PHP component of WampServer? I'm really sketchy in my knowledge about how to upgrade individual WampServer components, so I am looking for something basic that covers every step in 'beginner detail.' I don't want to upgrade the entire WampServer environment because I'm using the current WampServer installation as my Website development platform and that would affect my already-developed Websites.
Thanks In Advance For Your Help -
I figured out that my installed WampServer is 64-bit and that the only available PHP 5.4.x download available from PHP.net is 32-bit. Both the compiler versions and the bit count must match in order to upgrade PHP successfully in a WampServer environment. This is because WampServer runs PHP as a "subroutine" of Apache. The compiler versions used to create my 64-bit Apache 2.2.22 and the 32-bit PHP 5.4.45 both match (VC9). However, the PHP 5.4.45 download available on PHP.net is 32-bit (there is no 64-bit option). The 32-bit version won't work with my 64-bit Wampserver (specifically the 64-bit Apache 2.2.22) and that's why my upgrade PHP failed.
download PHP 5.4.45
download other version http://windows.php.net/download#php-5.5
copy to:
c:\wamp\php\
Iam try to install (switch) PHP v5.1.6 with last version of Wamp, but a console message says: "This PHP version doesn't seem to be compatible with your actual Apache Version. Switch cancelled..."
How I can know the apache version compatible with the php version indicated (5.1.6)? What is the procedure to downgrade the version current version of apache?
THX
PHP5.1.anything will not run with Apache 2.4.anything.
If you look in the PHP5.1.6 folder you will NOT see a php5apache2_4.dll, which is PHP for that version compiled as a DLL with linkages to Apache 2.4, all you will see is a php5apache2_2.dll i.e. that version of PHP compiled with Apache 2.2 linkages. Its possible that version of PHP only has linkages for Apache 2.0, in which case it could be a real pain trying to get it working.
So you will also have to install a Apache2.2 or maybe Apache 2.0 that will run with it.
Both Apache and PHP will need to be compiled with the same compiler, probably VC6, as I think PHP5.1 was almost definitely compiled with VC6.
You may also find it useful to install another version of PHP like PHP5.3.29 maybe as this will run under Apache 2.2 and Apache 2.4, then when you are switching versions you can step backwards like so :-
While running Apache2.4 and PHP 5.4.16
Switch to PHP 5.3.29
Then switch to Apache 2.2.?
Then switch from PHP 5.3.29 to 5.1.6
This assumes PHP5.1.6 runs with Apache 2.2 and does not need the extra steps to ge back to Apache 2.0
You may also need other PHP's or Apache's I am not absolutely sure as its a long ways back from PHP5.4 to PHP5.1, but I hope this gives you a bit of an idea what might be involved.
Alternatively you could backup your current WAMPServer and uninstall it, and install an old version of WAMPServer 2.2a/b/c/d/e... You will have to try a few to see if they go back that far