logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Syntax error cannot load php5apache2_2.dll into server
Author
zacherytaylorsmith



Joined: 25 Oct 2011
Posts: 2

PostPosted: Tue 25 Oct '11 22:09    Post subject: Syntax error cannot load php5apache2_2.dll into server Reply with quote

Hello
I need help please with php running on Vista Sad .
I receive the following error when starting or reloading Apache:
Syntax error on line 969 of C:/Dev/Progs/Apache/Apache2/config/httpd.conf:
Cannot load C:/Dev/Progs/php/php5apache2_2.dll into server: The specified module could not be found.

I installed the latest version of Apache and it worked fine before installing PHP VC9x86 Thread Safe.

My httpd.config has following lines:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Dev/Progs/php/"
LoadModule php5_module "C:/Dev/Progs/php/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

and the php5apache2_2.dll file is located in the correct folder, C:/Dev/Progs/php.

Attempted fixes with no success Confused :
1. uninstalled and reinstalled VC9x86 Thread Safe
2. uninstalled VC9x86 Thread Save and installed VC6x86 Thread Safe
3. uninstalled VC6x86 Thread Save and installed VC9x86 Thread Safe removing Curl, OpenSSL and PostgreSQL extensions.
4. Extracted php5apache2_2.dll from zip file and replaced file in php folder.
5. Reran the installer and selected the option to repair.

What do I need to do to get Apache working with php module?
Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 27 Oct '11 16:37    Post subject: Reply with quote

where did you download your apache?
AFAIK there is no VC6 version from PHP 5.3 or do you still use 5.2?
Back to top
zacherytaylorsmith



Joined: 25 Oct 2011
Posts: 2

PostPosted: Thu 27 Oct '11 21:35    Post subject: Reply with quote

Hello James Blond.
I downloaded apache from the official site:
http://httpd.apache.org/download.cgi version •2.2.21 (released 2011-09-13).
Php was downloaded from the official site also:
http://windows.php.net/download/ and you are right VC9 is 5.3 and VC6 is 5.2. I tried using both and had the exact same error with each.
I currently have 5.3 VC9x86 Thread Safe installed.
P.S. what does AFAIK mean?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Thu 27 Oct '11 21:39    Post subject: Reply with quote

AFAIK is a Web abbreviation commonly found on blogs, forums, microblogging services, etc.

AFAIK stands for As Far As I Know
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 27 Oct '11 21:47    Post subject: Reply with quote

Yepp AFAIK stands for As far as I know.

apache from apache.org is build with VC6 (Visual Studio 6 or Visual C++ 6).
PHP from 5.3 on is build with VC9 (Visual C++9 as known as Visual Studio 2008). Binaries compiled with VC9 do not load into VC6 compiled binaries.

So you might try apache from this site with PHP 5.3 (that is also recommend on http://windows.php.net/download/ on the very left column).

There is also a almost complete how to http://www.apachelounge.com/viewtopic.php?t=2394

if you still have a question please ask again.

@Steffen I wonder why you didn't answer this
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Thu 27 Oct '11 22:03    Post subject: Reply with quote

I was preparing the answer, and you were just earlier/faster Smile


Steffen
Back to top


Reply to topic   Topic: Syntax error cannot load php5apache2_2.dll into server View previous topic :: View next topic
Post new topic   Forum Index -> Other Software