Author |
|
zacherytaylorsmith
Joined: 25 Oct 2011 Posts: 2
|
Posted: Tue 25 Oct '11 22:09 Post subject: Syntax error cannot load php5apache2_2.dll into server |
|
|
Hello
I need help please with php running on Vista .
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 :
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
|
Posted: Thu 27 Oct '11 16:37 Post subject: |
|
|
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
|
Posted: Thu 27 Oct '11 21:35 Post subject: |
|
|
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
|
Posted: Thu 27 Oct '11 21:39 Post subject: |
|
|
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
|
Posted: Thu 27 Oct '11 21:47 Post subject: |
|
|
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
|
Posted: Thu 27 Oct '11 22:03 Post subject: |
|
|
I was preparing the answer, and you were just earlier/faster
Steffen |
|
Back to top |
|