By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,320 Members | 2,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,320 IT Pros & Developers. It's quick & easy.

Apache php module docs?

P: n/a
Hi all, I'm looking for the docs on the php module. Ol' Apache says
that the docs for LoadModule come from that module (PHP in this case)
but unfortuanlely I can't find it.

Is php5apache2_2.dll what I should be loading into Apache?

I could really use a point to some docs. Thanks!
Mar 28 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Mar 28, 10:18*pm, Mark Space <marksp...@sbc.global.netwrote:
Hi all, I'm looking for the docs on the php module. *Ol' Apache says
that the docs for LoadModule come from that module (PHP in this case)
but unfortuanlely I can't find it.

Is php5apache2_2.dll what I should be loading into Apache?

I could really use a point to some docs. Thanks!
php5apache2_2.dll is for use with apache v.2.2.

The dll that you use depends on the version of apache your running.
What is your version?
Mar 28 '08 #2

P: n/a
aj*********@googlemail.com wrote:
On Mar 28, 10:18 pm, Mark Space <marksp...@sbc.global.netwrote:
>Hi all, I'm looking for the docs on the php module. Ol' Apache says
that the docs for LoadModule come from that module (PHP in this case)
but unfortuanlely I can't find it.

Is php5apache2_2.dll what I should be loading into Apache?

I could really use a point to some docs. Thanks!

php5apache2_2.dll is for use with apache v.2.2.

The dll that you use depends on the version of apache your running.
What is your version?
Apache 2.2.6

My config is:
LoadModule php5_module php5apache2_2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

But I'd like to find some docs, I have no idea really what these do,
even if I can guess.
Mar 28 '08 #3

P: n/a
aj*********@googlemail.com wrote:
<?php

phpinfo();

?>
Yes, I have this for testing. It wasn't working before, but it is now.
If this is processed correctly then PHP is working fine.

In my setup i'm running Apache 2.0.59 and I have
LoadModule php5_module "C:/php/php5apache2.dll"
Yes, the quotes and the absolute path seem to be necessary.

Before, I had copied my php .dll to the Apache modules directory, and
the .dll (and executable) for PHP are in the path. Why wouldn't all
that work? That's why I need the docs. The info on LoadModule on the
Apache website is really pathetic.

Thanks for your help, it appears to be working now.
Mar 29 '08 #4

P: n/a
aj*********@googlemail.com wrote:
In my setup i'm running Apache 2.0.59 and I have

PHPIniDir "C:/php/"
LoadModule php5_module "C:/php/php5apache2.dll"
Just FYI, I re-installed PHP just now (well, actually I added the
mysql.dll for PHP) and PHP stopped working for some reason in Apache.

After poking around a bit, I noticed that the installer had added the
PHPIniDir in my httpd.conf file, where I didn't have it before. So I
commented that line out, restarted, and suddenly PHP is working again.

Any ideas why?

But in general, yeah watch out for PHPIniDir, it might cause problems. I
have everything on my PATH already, maybe that's why it worked before.
I can't figure out why that line would stop PHP from working if it
worked before though...
Mar 29 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.