Jump to content

php5_module where do I get it?


doox00

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?
Link to comment
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.
Link to comment
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.
Link to comment
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!
Link to comment
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.
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.