How to enable curl in php 7.3+ in uwamp server - php

I'm running Uwamp server under windows7 and it works perfectly with php versions from 5.5 to 7.0.3 and with curl enabled.
When I switch to php 7.2, 7.3 or latest 7.4.3 uwamp server still working - but without curl.
php_curl.dll file is enabled under extensions (ext) but phpinfo() confirms that curl extension is missing / not enabled. I compared php.ini with previous php versions, modified it but it still doesn't work.
cURL is NOT installed on this server
I have testet xampp and this server has no problem with curl and php 7.3/7.4. I compared php.ini etc. but curl extension still not working under Uwamp.
It seems that the author of the project has abandoned it, because there have been no updates or activities since many years. Maybe someone using it and can help me to solve it.
Any idea would be greatly appreciated!

finally got a working solution for this problem of uwamp and running an up to date version of php and getting curl working.
I have sat here for a couple of days trying to work why you couldn't get a later version of php 7.0.3 without breaking uwamp and curl. So I learnt how to integrate and test php apache as standalones and then working on updating uwamp. Lots of head scratching of working out how uwamp uses its on the fly configuration setup.
I will list all the steps to update your version of uwamp (to apache 4.2 and php 7.4.4 as of Mar 2020)
Download uwamp (portable or installer)
Download c++ runtime https://aka.ms/vs/16/release/VC_redist.x86.exe (taken from the windows php page)
Install the runtime above
Install uwamp to a directory (in this example will just use c:\ making it install to c:\uwamp after expanding)
Before running uwamp
Goto to apache lounge website and download the latest 32 build of apache (4.2)
https://www.apachelounge.com/download/VS16/binaries/httpd-2.4.41-win32-VS16.zip
Expand this archive, it should create a folder called apache2.4
Step in to this directory and copy all the files and paste them here in your uwamp folder (c:\uwamp\bin\apache). This should overwrite all the apache files and add the latest apachephp dll
TIP. Just make sure you havent expanded the apache2.4 zip in the uwamp apache folder, easy to tell as you will see a apache24 appear
Goto to php.net and download the latest THREAD SAFE version of php (7.4.4)
https://windows.php.net/downloads/releases/php-7.4.4-Win32-vc15-x86.zip
Extract the php zip this folder in to the c:\uwamp\bin\php in to a new folder with name of php-7.4.4 (so the files should be in c:\uwamp\bin\php\php-7.4.4)
There you are, you have completed your manual upgrade of uwamp , run uwamp and if no errors appear with in the GUI, everything should be working. Test by opening a browser and use http://localhost/uwamp/phpinfo or http://127.0.0.1/uwamp/phpinfo or click the "phpinfo button" in the uwamp GUI
This way seems to allowed an upgrade of uwamp (except sql) but resolve a common problem of php and curl not working / breaking.
This works for x86 version installed on a 32/64 bit system.
Still trying to work out the kinks for uwamp to be running 64 bit apache and php but should be possible.

Try and delete the version of PHP that is affected by the missing Curl extension and then re-download the version from inside the AWamp interface. I have had similar problems with other extensions and have solved it this way.

Related

Issue with Wamp on Win7 - PHP 7.2.10

I'm trying to use newest version of Wamp and I also need php7 version.
My problem is:
When start WAMP show me 0xc000007b error
Orange icon - start 2 of 3 service
SHow me the error on PHP path
When try to install 'wampapache' show me again 0xc000007b error
I have Win7 and Service Pack 1 and also all necessary Visual C++ libraries.
WAMPServer runs all its internal scripts using PHP5.6.38 as that is what they have been tested on. It has nothing to do with the version of PHP that will run with your Web Server.
You should never put any version of PHP onto your Windows PATH. WAMPServer is to flexible as it can have any number of versions of PHP installed which you can switch to with a simple menu click. V3 comes with 3 versions of PHP installed out of the box. See this answer for an explanation
If you are getting an 0xc000007b error, then most likely you dont have all the required MSVC RUntime libraries installed OR you didnt when you installed WAMPServer. If you installed them AFTER you installed WAMPServer, then uninstall WAMPServer, delete the wamp folder, and then reinstall WAMPServer AFTER you are sure ALL the MSVC Runtimes are installed. (without them the install can fail to complete all its processes.
You can find a handy utility on the WAMPServer Backup Repo called Checks VC++ packages installed It is down nearly at the bottom of the page.
You can also find a Downloadable ZIP file containing ALL the necessary MSVC Runtimes on the bottom of that page. If the Checker reports any missing MSVC Runtimes, download that too, unzip it and run EACH of the MSVC RUntime Installs in Version order (one by one). If you see a dialog saying this version is already installed, us the REPAIR button and this will ensure it is properly installed and the correct version.

Wampserver gibin not a valid Win32 application with php 5.4

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

PHP CURL not loading in WAMP after upgrading PHP from 5.3.4 to 5.3.22

I have the exact same issue as PHP cURL not working - WAMP on Windows 7 64 bit
CURL doesn't load at Apache restart, with message: "PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.22/ext/php_curl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0"
Except that I am not installing 5.3.13 as in the other thread but I am attempting to upgrade PHP in an existing WAMP installation from 5.3.4 to 5.3.22, both x64 VC9 TS on a Win 2008R2 64 bits, running Apache 2.2.4 x64.
I did the following steps:
stopped Apache
unzip php5.3.22 in /wamp/bin/php5.3.22;
updated php.ini, httpd.conf and the 2 Wamp config files to point to the new PHP version;
updated php5ts.dll and php5isapi.dll in Apache\bin with the new ones
updated Windows PATH to point to php5.3.22 folder instead of php5.3.4
restarted Apache -> CURL load error message
I could try most of the answers provided in other threads except the one from Matthieu:
Go to http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ and download the curl version that corresponds to your php version under "Fixed curl extensions:".
...as there is no "Fixed curl extension" for 5.3.22 in Anindya's site.
Does anyone know if there is need or not for a "fixed curl lib" after 5.3.13? and where I can find it?
Either there are some typos in your question or you have done a few things wrong.
The new PHP should have gone into \wamp\bin\php\php5.3.22
updated php5ts.dll and php5isapi.dll in Apache\bin with the new ones This is done by Switching versions in WAMP, you dont do it manually
updated Windows PATH to point to php5.3.22 folder instead of php5.3.4 There is no need to put PHP on the PATH, in fact it reduces the ability of WAMPServer to switch between various versions of PHP.
Have a look at this it may help How to install a version of PHP into an existing WAMP install

php_curl does not work when I try and install Magento

I have Apache version 2.2.22 and PHP 5.3.13. When I try to install Magento it just keeps telling me that curl must be loaded. I have tried to troubleshoot the problem but nothing has solved it. I've done the following:
uncomment php_curl.dll in php.ini file (both in php/ext and the apache/bin folders)
When that didn't work I downloaded two versions of php_ curl fix files (5.3.13 and 5.4.3) and used each to replace the original php_curl.dll file in php/ext.
With 5.4.3 I got the error message that "curl failed to start because the side-by-side configuration is incorrect". Now the 5.3.13 version is in the folder but I get two error messages "Program can't start because php5.dll is missing from your computer" and "ext/php_curl.dll - the specified module could not be found'.
Could someone give me further advice, because at this point I'm clueless on what to do next? I am using wampserver 2.2 and Windows 7.
It seems that more people are having this problem - php_curl.dll is badly compiled and doesn't work under Win7/8 64-bit versions.
I found this topic in official Wamp Server forums and it looks like people provided some answers there:
Wamp Server 2.2 Windows 7 64-bit and curl not working side-by-side configuration incorrect
Update your PHP version to 7.0 or higher.
They have fix the php-curl in >7.0 version see the artical php Chang log

program cant start because php5.dll is missing

I installed XAMPP , phpinfo: PHP Version 5.3.5
Downloaded PHPPDT, installed
downloaded webserver debug extension, copied dummy.php
added zend_extension="c:\edward\xampp\php\ext\5_3_x_nts_comp\ZendDebugger.dll"
stop, restart apache, get:
"the program cant start because php5.dll is missing from your computer"
(while php5nts.dll is included)
is installing zend studio ce the alternative or can i make it work with XAMPP? (using Zend Studio CE works)
if your php version is Non-Thread-Safe (nts)
you must use php extension with format example: extension=php_cl_dbg_5_2_nts.dll
else if your php version is Thread-Safe (ts)
you must use php extension with format example: extension=php_cl_dbg_5_2_ts.dll
(notice bolded words)
So if get error like above. Firstly, check your PHP version is nts or ts, if is nts.
Then check in php.ini whether has any line like zend_extension_ts="C:\xammp\php\ext\php_dbg.dll-5.2.x" choose right version of php_dbg.dll-5.2.x from it homepage (google for it).
Change from zend_extension_ts to zend_extension_nts.
Hope this help.
Download php5.dll (http://windows.php.net/download/) and copy it to apache/bin folder. That solved it for me (Win 7 64 bit apache 32 bit)
EDIT:
Start with the non-thread safe version.
For Wamp x86+Phalcon users (with same error):
Take care of download the right version of Phalcon:
Phalcon 1.3.2 - Windows x86 for PHP 5.5.0 (VC11)
I had the same problem I switched from wamp to xampp and yes PHP was working because my path was still pointing to my old installation. I had forgotten to change it to point to my new php installation which version of php didn't match the rest at all.
In case this might help someone, after installing the thread safe version of PHP 5.5.1, everything was working under apache for my dev sites, but I ran into the same "php5.dll is missing" problem installing Composer using the Composer-Setup.exe - or, as I soon discovered, just running something as simple as php -v from the command line. I made a copy of php5ts.dll and named it php5.dll and everything worked. I assume the Composer installer was specifically looking for "php5.dll" and I knew that the thread safe code would be run by the renamed .dll. I also assume something is wrong with my setup to screw up the command line functionality, but with everything working, I have more important issues to deal with than to try and find the problem.
I just now faced this issue while trying to restart XAMPP Apache.
What you can do to solve this is:
download PHP5.dll from http://originaldll.com/file/php5.dll/30704.html
Copy the downloaded php5.dll to C:\xampp\php
Start APACHE and MySql from XAMPP control panel
Hope my solution solves your problem.
Thank You!
I needed to change environment variable PATH and PHPRC. Also open new cmd.
I already had PHP installed and added EasyPHP when the problem came up. After I changed both variables to C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\binaries\php\php_runningversion it worked fine.
When you open phpinfo()
see if the thread safety is enable or not enable
also see the version of php
and see MSVC-- what is the number in place of --
and see the architecture
these all things help u to get the suitable php driver
here a url help u to get a php driver
https://s3.amazonaws.com/drivers.mongodb.org/php/index.html
What you can do to solve this is:
Download PHP5.dll or PHP7.dll from: http://windows.php.net/download/.
Copy the downloaded php5.dll or php7.dll to C:\xampp\php.
Start Apache and MySQL from XAMPP Control Panel.

Categories