Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

php7apache2_4.dll file not found nor available anywhere I can file

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to update from PHP 5.2 to PHP 7.

I've upgraded my Apache Web Server from 2.2 to 2.4, and to get PHP7 to work, http.conf needs to reference php7apache2_4.dll, but this file is nowhere to be found in the PHP7 download. I also cannot find a (non-shady) place to download it from (Apache Lounge for example has nothing); i.e., a Google search comes up with nothing at all useful, leading me to think I'm simply doing something wrong.

Here are the instructions for the httpd.conf file (taken from https://danielarancibia.wordpress.com/2015/09/27/installing-apache-2-4-and-php-7-for-development-on-windows/):
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php .html
LoadModule php7_module "c:/php7/php7apache2_4.dll"
PHPIniDir "c:/php7"

I though others would also have this problem, but apparently not so at least here on CodeRanch.

Am I missing something? Does someone know where I can get this file php7apache2_4.dll?

Thanks in advance.
 
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a bug with PHP 7.0.0 alpha1 reported in below link. Using a later build should fix the problem.

https://bugs.php.net/bug.php?id=69801
 
Dave Anderson
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had downloaded the nonThreadSafe, but on your advice downloaded the ThreadSafe version, and yes the php7apache2_4.dll file was there!!!

Thank you!
 
Dave Anderson
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm. Now I get the following error message:

Cannot load c:/php7/php7apache2_4.dll into server: %1 is not a valid Win32 application.

I believe I used compatible V14 versions.
 
Dave Anderson
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I remember the good old days when PHP was a part of the Apache Web Server distribution. This is really, really, really really frustrating.

I am sure I have both Apache and PHP as: 64 bit, compiled with V14, thread safe. So, I don't see how there could be a compatibility issue, but what else is there?

 
Dave Anderson
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have "Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.2306" installed. I thought that might be an issue, but no.
 
K. Tsang
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dave Anderson wrote:Hmm. Now I get the following error message:

Cannot load c:/php7/php7apache2_4.dll into server: %1 is not a valid Win32 application.

I believe I used compatible V14 versions.



First is your Apache server 32 or 64 bit? PHP I think need to match your Apache bit version. 32 bit Apache goes with 32 bit PHP.
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic