Jump to content

Archived

This topic is now archived and is closed to further replies.

doox00

php5_module where do I get it?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[quote author=wildteen88 link=topic=104965.msg418981#msg418981 date=1156094484]
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.
[/quote]

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/get/php-5.1.5-Win32.zip/from/a/mirror

and

Apache 2.2.3 from apache.org

This is on a windows box btw.

Share this post


Link to post
Share on other sites
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:
[code]LoadModule php5_module "C:/php/php5apache2.dll[/code]
Now download the Apache2.2.x php5 module from from [url=http://www.apachelounge.com/download/mods/php5apache2.dll-php5.1.x.zip]ApacheLounge.com[/url]
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!

Share this post


Link to post
Share on other sites
[quote author=wildteen88 link=topic=104965.msg419297#msg419297 date=1156150043]
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:
[code]LoadModule php5_module "C:/php/php5apache2.dll[/code]
Now download the Apache2.2.x php5 module from from [url=http://www.apachelounge.com/download/mods/php5apache2.dll-php5.1.x.zip]ApacheLounge.com[/url]
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!
[/quote]

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.

Share this post


Link to post
Share on other sites
There is no file called php5_module that comes with PHP. The php5 module for apache is called [b]php5apache2.dll[/b]

This line:
[code]LoadModule php5_module "C:/php/php5apache2.dll"[/code]
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.