Connecting Tech Pros Worldwide Forums | Help | Site Map

Apache php module docs?

Mark Space
Guest
 
Posts: n/a
#1: Mar 28 '08
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!

ajtrichards@googlemail.com
Guest
 
Posts: n/a
#2: Mar 28 '08

re: Apache php module docs?


On Mar 28, 10:18*pm, Mark Space <marksp...@sbc.global.netwrote:
Quote:
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?
Mark Space
Guest
 
Posts: n/a
#3: Mar 29 '08

re: Apache php module docs?


ajtrichards@googlemail.com wrote:
Quote:
On Mar 28, 10:18 pm, Mark Space <marksp...@sbc.global.netwrote:
Quote:
>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.
Mark Space
Guest
 
Posts: n/a
#4: Mar 29 '08

re: Apache php module docs?


ajtrichards@googlemail.com wrote:
Quote:
<?php
>
phpinfo();
>
?>
>
Yes, I have this for testing. It wasn't working before, but it is now.
Quote:
If this is processed correctly then PHP is working fine.
>
In my setup i'm running Apache 2.0.59 and I have
Quote:
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.
Mark Space
Guest
 
Posts: n/a
#5: Mar 29 '08

re: Apache php module docs?


ajtrichards@googlemail.com wrote:
Quote:
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...
Closed Thread