Page 1 of 1

Apache 2.4.16 x86 x64 failure windows 10 PHP 5 7 fix

Posted: Sun Oct 11, 2015 7:26 pm
by darknkreepy3#
So I spent almost 4 days figuring out why Apache Server 2.4.16 x86 or even x64 wouldn't install on Windows 10 x64 Pro with PHP 5.5.30 or 5.6.x x86 or x64.

I added the VC14 x86 and x64 modules for win *x64 all types, Win 7,8,8.1,10 etc in Win 10 x64.

Guess what? It spits out :can't load missing module" incorrectly as it is there. In the output you can see in event manager "incorrect function" hits. Wow, almost limitless builds, versions, fixes admitted by MS and then I thought, wait, forget PHP 5.x, try PHP 7.x

Son of a bitch, it wass a compile and module bug not listed.

Apache 2.4.16 x86 and PHP 5.3.0 x86 work perfectly fine with VC14 x86 x64 in Windows 10 x64!

Here is my process:

Download Apache 2.4.16 x86
Download PHP 5.3.0 x86
Download VC14 x86 x64 (both)

*I like to name the software I use and the version and x86 or x64 type to later know how and why it worked on all platforms and os systems, ergo a2416x86, apache 2.4.16 x86 version.
*notice all folder locations in httpd.conf are forward slashes, but in windows, they are backwards slashes. It is a convention in apache, just follow it.

Create folders

Code: Select all

C:\a2416x86
C:\a2416x86\p700rc4x86
C:\htdocs
copy the contents of apache into the first folder
copy the contents of php into the second folder

edit httpd.conf and make sure all folders for apache are the first folder and the first folder + bin

Code: Select all

C:\a2416x86\
C:\a2416x86\bin\
and then the htdocs I like to put in

Code: Select all

C:\htdocs\
run the CMD prompt as admin, and go to

Code: Select all

C:\a2416x86\bin\
run this

Code: Select all

httpd -k install
now, if it works, great, check your browser with:

Code: Select all

http://127.0.0.1/
next thing to do is add the php 5.5.30 and the proper module that works without bugs in windows 10 x64 in the apache httpd.conf file

add these lines at the end, making sure the path matches your locations if you change my example, change them too

Code: Select all

LoadModule php7_module "C:/a2416x86/p700rc4x86/php7apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "C:/a2416x86/p700rc4x86/"
restart the apache server

a great way to do that is to drop the apache monitor exe onto the bottom bar of your windows 10 interface.

Code: Select all

C:\a2416x86\bin\ApacheMonitor.exe
if it starts, you are all good, if not check the spelling and paths.

maybe even add the paths to the environment variables for windows. a cool GUI for that is

Rapid Environment Editor

always run as Administrator so you can save your changes in the PATH variable. you can even press F7 to find the paths you need for apache, apache bin, and php if you like.

Code: Select all

C:\a2416x86
C:\a2416x86\bin
C:\a2416x86\p700rc4x86