I am having a problem setting up PHP 5.5.1 on Windows 8 Pro under Apache 2.4.4. I have Apache 2.4.4 x86 and I downloaded PHP 5.5.1 x86 VC11 Thread Safe. When I try to load Apache It returns the error:
httpd.exe: Syntax error on line 531 of C:/Apache24/conf/httpd.conf: Cannot load
C:/php/php5apache2_4.dll into server: The specified module could not be found.
I am staring at the file C:\php\php5apache2_4.dll, so I am 100% positive it exists. Now here is the part I don't understand....
When I download PHP 5.4.17 VC9 Thread Safe and unzip, Apache loads and finds the .dll just fine.
Why does PHP 5.4 install perfectly fine, but PHP 5.5 throws the above error. I have tried to install several times and now I am here because I cannot figure it out on my own.
Thanks!
P.S. I originally asked this question on Server Fault, assuming this was a Server Setup related question, but was directed here, even though I've had questions closed over here that were of this nature. Original Server Fault Question: https://serverfault.com/questions/525029/apache-2-4-4-issue-with-php-5-5-1
Any chance you have a x64 version of Apache and a x86 version on PHP ? Or maybe the other way around ?
I think there's some compatibility issue with that dll file.. try some other version of php
Related
THe last time I installed PHP there was a great install program. Now I guess I have to do this version manually, So
I am trying to install PHP 5.5.15 on a Windows Server 2008 r2 64 bit and I am getting no where. I have followed the instruction multiple times and no dice.
If I try to check PHP by typing ...testphp.php into IE I get the following error:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Detailed Error Information
Module
FastCgiModule
Notification
ExecuteRequestHandler
Handler
PHPFast_CGI
Error Code
0xc0000135
IF I try to check using the Command Line I get error that says MSVCR110.dll is missing. I have installed MS Visual C++ 2010 x64 red... and also tried installing MS Visual C++ 2012 x64 red... and that did not fix the problem.
What am I doing wrong?
Steps used
Set up IIS
Download PHP (non thread safe), unzip to php folder
added Module Map...(FastCGIModule)
try to test php
also tried to modify the php.ini file before testing and no dice
Install the 32 bit version of VC11 or 9 from Microsoft. PHP is most likely 32 bit unless you selected the experimental version of PHP from their site - regardless of your OS type. I think that might solve your problem.
BUT...
I can't get php 5.5 to work on IIS 7.5 and Windows. I've tried for several days and I get 404.3 module handler or MIME type missing. No matter what the hell I do.
I've got a Macbook Pro 13" 64bit (early '11) with the latest XAMPP version. This version is shipped with PHP 5.4.*.
As I'm developing sites for a server that runs Debian with php 5.3.* it's pretty confusing when uploading sites, testing them and to redo stuff because of different php versions.
So now I'm looking for a way to downgrade php from 5.4 to 5.3 - would be cool if there is a version-switcher, but not necessary for now.
stackoverflow had the question already by now, but it mostly states the fact of using Windows. The structure isn't the same, so I can't use the tips for my mac.
Here is an answer that I already tried: https://stackoverflow.com/a/1422622
The problem is, that I can't start Apache after changing the file(s):
httpd: Syntax error on line 522 of /Applications/XAMPP/xamppfiles/etc/httpd.conf: Syntax error on line 10 of /Applications/XAMPP/xamppfiles/etc/extra/httpd-xampp.conf: Cannot load modules/libphp5.so into server: dlopen(/Applications/XAMPP/xamppfiles/modules/libphp5.so, 10): no suitable image found. Did find:\n\t/Applications/XAMPP/xamppfiles/modules/libphp5.so: no matching architecture in universal wrapper
httpd: Syntax error on line 522 of /Applications/XAMPP/xamppfiles/etc/httpd.conf: Syntax error on line 10 of /Applications/XAMPP/xamppfiles/etc/extra/httpd-xampp.conf: Cannot load modules/libphp5.so into server: dlopen(/Applications/XAMPP/xamppfiles/modules/libphp5.so, 10): no suitable image found. Did find:\n\t/Applications/XAMPP/xamppfiles/modules/libphp5.so: no matching architecture in universal wrapper
In an older version of XAMPP I found a phpswitcher-script and tried it with an older PHP version of XAMPP. The script tells me:
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
Is there any way I can downgrade PHP?
I am working on a Windows 7(x64) with Apache 2.4 x86, Php54 x86
and MySql 5.6 x64.
PHP is working well on my Apache Web Server.
When i run PHP from CommandLine : php dbTest.php it runs without problems
but when i try to load my page, i get the error Fatal error: Call to undefined function mysqli_connect() in <path to dbtest.php> on line 3
tried installing PHP 55 but nothin...
Tried putting libmysql.dll in (php dir, win/system32, apache bin)
installed VC71 runtimes (because i saw it in a troubleshooting guide)
Edit:
- also tried installing all x64 (Apache and PHP)
- tried to install Apache v2.2 and PHP v5.3,
Nothing works...
how come running the command-line works but through Apache, it isn't working?
i see mysqlnd listed, but not mysql/mysqli, as if mysqlnd was the module...
Thank you for your time.
and for saving me the last few hair i have!
PHP 5.4 comes with mysqlnd installed by default so you shouldn't need libmysqli.dll
Does phpinfo() list a mysqli block?
You need this file in ext directory php_mysqli.dll
Goal
Connect to a MSSQL 2008 R2 server using the FreeTDS (php_dblib.dll 0.82 + 20110906 patches) Drivers for PHP 5.4.16 (VC9).
I am unable to use any alternative to FreeTDS unless the client also decides to use an alternative. This is unlikely unless they also run into this issue when upgrading their current version of PHP (currently 5.3.x) tomorrow.
Issue
PHP is unable to load the FreeTDS extension.
The Apache error log displays this on server start:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.16/ext/php_dblib.dll' - The specified module could not be found.\r\n in Unknown on line 0
As far as I understand it, the extension is either unable to be found or is the wrong version?
The extension directory location in the php.ini has been checked and triple checked and is:
c:/wamp/bin/php/php5.4.16/ext/
That leads me to believe it is the wrong version of php_dblib.dll. I've also checked that multiple times and made sure to use the version for PHP 5.4.X Thread Safe.
Steps Taken
Clean install of WAMP 2.4 with PHP 5.4.16 and Apache 2.4.4
Thread Safe php_dblib.dll placed in PHP extension directory
extension=php_dblib.dll added to the correct php.ini
extension=php_mssql.dll and extension=php_pdo_mssql.dll disabled in php.ini
msvcr71.dll (DotNet framework 1.1) added to PHP root directory
freetds.conf added to server root directory (c:)
System Details
WAMP Server 2.4
Apache 2.4.4
PHP 5.4.16 (VC9)
Thread Safety: enabled
FreeTDS Thread Safe (php_dblib.dll) 0.82 + 20110906 patches
Microsoft SQL Server 2008 R2
msvcr71.dll (DotNet framework 1.1) only included in the PHP root directory
EDIT:
WAMP 2.4 32-bit
OS: Windows 7 Pro 64-bit
EDIT 3
Last update only applied to the 64-bit version of WAMP. I've installed the 32-bit version, again, and --without-dblib is no longer in the configure command section of the phpinfo().
Questions
With the information given, is there anything else you'd need to know about to give an accurate assessment of the situation?
I am unable to find any, but are there any known issues with FreeTDS 0.82 and PHP 5.4.16?
Temporary Defeat
I've rolled back to PHP 5.3.x for now, FreeTDS works fine on that version. I'm not sure that it will make a difference with the little bit of code I am actually delivering to the client. This was intended to be a "double" check to make sure it all works perfectly, but since I'll be on site during the install I can fix any issues if they come up.
I would like to find a solution eventually since more and more of the systems I work with every day are going to be upgraded to php 5.4 and beyond.
I tried both the files from here: https://github.com/nicolasff/phpredis/downloads. I am using 64bit wampserver on windows 7 professional. It looks like apache is trying to load the file but somehow could not recognize it properly. This is what I see in the error log:
PHP Startup: Unable to load dynamic library
'D:/wamp/bin/php/php5.3.13/ext/php_redis.dll' - %1 is not a valid
Win32 application.
Anyone faced similar issues? Do we have a working solution for this?
Just in case it can help someone, I managed to solve the error on PHP 7.1.12 installing the 32 bits DLL.
I was getting the error:
Warning: PHP Startup: Unable to load dynamic library '.../php_redis.dll'
not a valid Win32 application
But after installing the 32 bits version, the warning disappeared.
To know which architecture of XAMPP/WAMP are you using, visit the phpinfo() and look for the value "Architecture", it was for me on the fourth row, and as expected is had the value x86.
I had to check the Server API from phpinfo() to decide which version to use
If It's
Apache 2.0 Handler(mod_php) go with Thread Safe version
If It's CGI go with Non Thread Safe version
Unfortunately I do not run 64-bit version of PHP to test this, but for PHP 5.3 you can try this dll.
Dll from https://github.com/nicolasff/phpredis/downloads ( php_redis-2.1.3-5.2-vc6-ts-4350b2a.zip ), is working fine with PHP 5.2.17 (32-bit version).
I hope you will solve the problem.
I used XAMPP x86 / PHP 7.2.5 so I needed redis x86 and the directory is this: C:/xampp/php/ext/.
https://pecl.php.net/package/redis/4.1.0/windows
I'll add my ansewer to the table :
I used those dlls for my AMPPS server (WAMP should be the same) under windows 8 with PHP 5.5:
https://pecl.php.net/package/redis/2.2.7/windows
following this tutorial
https://www.linkedin.com/pulse/using-redis-windows-php-shekhar-joshi
I had same issue for 64 bit windows 7 wampserver with PHP5.5.12
and worked for me from below link dll binaries of Redis
http://windows.php.net/downloads/pecl/releases/redis/2.2.7/
I had the same case, I was installing wamp 32bit, but I imported the library in 64bit however I had to imorted the 32bit version.
Check in the task manager which version of wamp you are using!
For me the reason was version of Redis PHP extension that I've been used.
xampp architecture: x64
php version: 7.4
php type: ts (thread safe)
redis version installed on windows: 3.0.504
and finally the version of Redis PHP extension that worked for me was:
for php 7.4
latest stable version: php_redis-5.3.4-7.4-ts-vc15-x64
I downloaded it from this Link