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: PHP Install Error
Author
anaracaix



Joined: 31 Jul 2006
Posts: 2

PostPosted: Mon 31 Jul '06 23:12    Post subject: PHP Install Error Reply with quote

Ok, I am trying to get Apache working with PHP & MySQL on my Win. XP Pro PC. I have MySQL and Apache installed and working, and am working on getting PHP to work with Apache.

Ok, I downloaded PHP5 and extracted it to c:\php
I then moved the php.ini (the php.ini-recommended file, renamed to php.ini) file to c:\windows
I then opened php.ini and changed doc_root = to doc_root = C:\Program Files\WebServer\home\Apache2.2\htdocs and extension_dir = "./" to extension_dir = "C:\php\ext" and uncommented extension=php_mysqli.dll so I could use MySQL 5.
I opened C:\Program Files\WebServer\home\Apache2.2\conf\httpd.conf and added to the end

# add PHP5 as an apache module
AddType application/x-httpd-php .php
LoadModule php5_module "c:/php/php5apache2.dll"
# configure the path to php.ini
PHPIniDir "C:/php"

I try to run Apache (which did work with its default settings after the install) and I get an error

httpd.exe: Syntax error on line 488 of C:/Program Files/WebServer/home/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2.dll into server: The specified module could not be found.
Note the errors or messages above, and press the <ESC> key to exit. (Counter)...

I tried moving the libmysql.dll file to the c:\windows\system32 folder like some tutorials say, but the problem persists.

What am I doing wrong?
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Mon 31 Jul '06 23:27    Post subject: Reply with quote

Do you use the php5apache2.dll from the download page here ?

You should use it, because the one shipped with php is not compatible with Apache 2.2.x
Back to top
anaracaix



Joined: 31 Jul 2006
Posts: 2

PostPosted: Mon 31 Jul '06 23:39    Post subject: Reply with quote

admin wrote:
Do you use the php5apache2.dll from the download page here ?

You should use it, because the one shipped with php is not compatible with Apache 2.2.x


First, sorry I posted in the wrong place. I was a bit distraught and not thinking clearly.

Secondly, thanks for the suggestion. I just downloaded the file here and installed it, and my Apache server runs again! Thanks so much! I had been trying to get rid of this error since 10 AM this morning (it is 4:30 PM right now).
Back to top


Reply to topic   Topic: PHP Install Error View previous topic :: View next topic
Post new topic   Forum Index -> Other Software