Jump to content


Photo

php5_module where do I get it?


  • Please log in to reply
7 replies to this topic

#1 doox00

doox00
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 20 August 2006 - 04:25 PM

I was just looking, there is no php5_module in the apache2.2/modules directory.  where do I get this?

I imagine this is why apache won't start, it errors saying the specified module cannot be found.  Where do I get this module so I can use php with apache?


#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 20 August 2006 - 05:21 PM

You get it from from PHP.net. NOTE: PHP 4 or 5 currently doesnt support Apache2.2.x

You should get the Apache modules with the PHP distribution you download from php.net.

You'll have to download php4apache2_2.dll or php5apache2_2.dll from Apache Lounge in  order to get PHP to wokr with Apache2.2.x. Or downgrade to Apache2.0.x

NOTE if you are on a unix based system you'll want the .so files rather than .dll files.

#3 doox00

doox00
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 20 August 2006 - 11:51 PM

You get it from from PHP.net. NOTE: PHP 4 or 5 currently doesnt support Apache2.2.x

You should get the Apache modules with the PHP distribution you download from php.net.

You'll have to download php4apache2_2.dll or php5apache2_2.dll from Apache Lounge in  order to get PHP to wokr with Apache2.2.x. Or downgrade to Apache2.0.x

NOTE if you are on a unix based system you'll want the .so files rather than .dll files.


thanks for the help, but I am unable to find php5_module from php.net, or able to find apache lounge to get the php5apache2_2.dll

this is what I have downloaded

http://us2.php.net/g...p/from/a/mirror

and

Apache 2.2.3 from apache.org

This is on a windows box btw.


#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 August 2006 - 08:47 AM

The PHP module is in the root of the PHP zip file you ahve downloaded. Extract the contents of the zip to C:\PHP

Now open the httpd.conf file for Apache And add this:
LoadModule php5_module "C:/php/php5apache2.dll
Now download the Apache2.2.x php5 module from from ApacheLounge.com
Extract the contents of that zip to your My Documents area. Copy the php5apache2.dll file to C:\php overwritting the existing php5apache2.dll file.

Now read the readme.txt file encloded in the zip file for more installation instructions.

You're done!

#5 doox00

doox00
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 21 August 2006 - 02:29 PM

The PHP module is in the root of the PHP zip file you ahve downloaded. Extract the contents of the zip to C:\PHP

Now open the httpd.conf file for Apache And add this:

LoadModule php5_module "C:/php/php5apache2.dll
Now download the Apache2.2.x php5 module from from ApacheLounge.com
Extract the contents of that zip to your My Documents area. Copy the php5apache2.dll file to C:\php overwritting the existing php5apache2.dll file.

Now read the readme.txt file encloded in the zip file for more installation instructions.

You're done!


Again, thanks.. but I am missing something here, its seems sooo simple, but its just not working, you say the php5_module is in the root of php when you extract it, I have downloaded and extracted it 10 times now and there is no php5_module file in there.  What the hell am I doing wrong here, I feel pretty stupid right now lol... this is not that hard, but I am apparantly confused on this php5_module file.

#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 August 2006 - 02:40 PM

There is no file called php5_module that comes with PHP. The php5 module for apache is called php5apache2.dll

This line:
LoadModule php5_module "C:/php/php5apache2.dll"
Sets up the php5 module. It tells Apache Where the module is. In your case the path to the module is C:/php/ and the module is php5apache2.dll

#7 doox00

doox00
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 21 August 2006 - 02:46 PM

ok, that is where I was confused.. well I just totally nuked php and apache, reinstalled, did what you told me and now its working, so thank you very much


#8 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 August 2006 - 02:49 PM

No problem. Glad we got there in the end. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users