PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Apache php module docs?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Apache php module docs?

Réponse
 
LinkBack Outils de la discussion
Vieux 28/03/2008, 23h18   #1
Mark Space
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache php module docs?

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!
  Réponse avec citation
Vieux 28/03/2008, 23h38   #2
ajtrichards@googlemail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache php module docs?

On Mar 28, 10:18pm, Mark Space <marksp...@sbc.global.net> wrote:
> 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?
  Réponse avec citation
Vieux 29/03/2008, 00h14   #3
Mark Space
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache php module docs?

ajtrichards@googlemail.com wrote:
> On Mar 28, 10:18 pm, Mark Space <marksp...@sbc.global.net> wrote:
>> 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.
  Réponse avec citation
Vieux 29/03/2008, 00h39   #4
ajtrichards@googlemail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache php module docs?

On Mar 28, 11:14pm, Mark Space <marksp...@sbc.global.net> wrote:
> ajtricha...@googlemail.com wrote:
> > On Mar 28, 10:18 pm, Mark Space <marksp...@sbc.global.net> wrote:
> >> 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.


Can you view a php document? For example:

Create a document called index.php

Within this document write

<?php

phpinfo();

?>

If this is processed correctly then PHP is working fine.

In my setup i'm running Apache 2.0.59 and I have

PHPIniDir "C:/php/"
LoadModule php5_module "C:/php/php5apache2.dll"

contained in my httpd.conf file.
  Réponse avec citation
Vieux 29/03/2008, 01h31   #5
Mark Space
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache php module docs?

ajtrichards@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 , it appears to be working now.
  Réponse avec citation
Vieux 29/03/2008, 03h22   #6
Mark Space
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache php module docs?

ajtrichards@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...
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h47.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12596 seconds with 14 queries