Second request - help with Apache Server Set-up issue for new user

Second request - help with Apache Server Set-up issue for new user

am 29.10.2009 18:37:30 von Daniel Gladstone

--_dc1d4d99-ab90-4c56-b0e0-b802d21e2a2e_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I just downloaded the software and when in and config by httpd.conf file=20

LoadModule php5_module "c:/PHP/php5apache2_2.dll"
AddType application /x-httpd-php .php
PHPIniDir "C:/PHP"

when I tried to restart=2C I get an error message:=20

Syntax error on line 489 of=20
C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf:
Only first PHPINIDir directive honored per configuration tree - subsequent =
ones
ignored

I can only find one what am I doing wrong=20

Daniel Gladstone=20
Email: dgeehot@hotmail.com=20

=

--_dc1d4d99-ab90-4c56-b0e0-b802d21e2a2e_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






I just downloaded the software and when in and config by httpd.conf file R>
LoadModule php5_module "c:/PHP/php5apache2_2.dll"
AddType applicat=
ion /x-httpd-php .php
PHPIniDir "C:/PHP"

when I tried to restart=
=2C I get an error message:

Syntax error on line 489 of
C:/Prog=
ram Files/Apache Software Foundation/Apache2.2/conf/httpd.conf:
Only fir=
st PHPINIDir directive honored per configuration tree - subsequent ones
=
ignored

I can only find one what am I doing wrong

Daniel Gla=
dstone
Email: dgeehot@hotmail.com


=

--_dc1d4d99-ab90-4c56-b0e0-b802d21e2a2e_--

Re: Second request - help with Apache Server Set-upissue for new user

am 29.10.2009 19:22:57 von Lester Caine

Daniel Gladstone wrote:
> I just downloaded the software and when in and config by httpd.conf file
>
> LoadModule php5_module "c:/PHP/php5apache2_2.dll"
> AddType application /x-httpd-php .php
> PHPIniDir "C:/PHP"
>
> when I tried to restart, I get an error message:
>
> Syntax error on line 489 of
> C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf:
> Only first PHPINIDir directive honored per configuration tree -
> subsequent ones
> ignored
>
> I can only find one what am I doing wrong

Was my previous reply no help?
You will only get that warning if there IS a second line, and it will
not prevent Apache/PHP starting

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Second request - help with Apache Server Set-upissue for new user

am 29.10.2009 20:15:20 von aw

Daniel Gladstone wrote:
> I just downloaded the software and when in and config by httpd.conf file
>
> LoadModule php5_module "c:/PHP/php5apache2_2.dll"
> AddType application /x-httpd-php .php
> PHPIniDir "C:/PHP"
>
> when I tried to restart, I get an error message:
>
> Syntax error on line 489 of
> C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf:
> Only first PHPINIDir directive honored per configuration tree - subsequent ones
> ignored
>
> I can only find one what am I doing wrong
>
Hi.
Have a look at this documentation page from the official Apache website :
http://httpd.apache.org/docs/2.2/mod/
That is the list of all the standard modules supplied with Apache.
As you can see, there is no PHP module in that list.
So, the PHP dll which you mention above is not a standard part of
Apache. It seems to be part of some distribution of Apache, but not of
the standard distribution.

So presumably, when you write "I just downloaded the software", it was
not from the Apache website, but from somewhere else.
(But you do not tell us from where).
And it was not just Apache, but a package that included Apache, but also
other things, like PHP evidently, but maybe also some application.
That package problably also includes its own configuration files, or
maybe modified Apache configuration files.

Then, if you look at this page :
http://httpd.apache.org/docs/2.2/mod/directives.html
you will see a list of all the configuration directives which Apache
knows. As you can also see, PHPIniDir is not one of them.

The explanation is : when Apache processes a configuration file and it
encounters a configuration directive which itself does not know, it
passes it to the additional loaded modules (like the PHP dll above), to
see if they recognise it and can handle it.
If a module recognises it, as in this case the PHP dll does for the
PHPIniDir directive, it is the module which analyses the configuration
line and returns maybe error messages. In this case, the error message
that you see in the log is not coming from Apache, but from
c:/PHP/php5apache2_2.dll.

The point of all the above is to tell you that the reason why you are
maybe not getting answers here, is maybe because nobody on this Apache
help forum knows the answer. Maybe there is an error in your
configuration, maybe not; maybe it is a bug of the PHP dll. We can only
guess however, because we do not know what your configuration files look
like, or what this module expects.

Maybe you should have a second look at the website from which you
downloaded the package that contains Apache, and see if they mention
some specific and more focused help forum for that add-on module.

As someone else already told you here, the error message is probably
correct, and seems to tell you that on line 489 of httpd.conf, it finds
a PHPIniDir directive, but it is not the first one that it finds. So
there must be another one, either in httpd.conf itself, or in another
file mentioned in httpd.conf, in a line like
Include filename
Those files also count.



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: Second request - help with Apache Server Set-upissue for new user

am 29.10.2009 23:20:19 von Daniel Gladstone

--_b96b94a4-dff9-41a5-a60a-e5ae26ac8a54_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I am sorry=2C did not get first message. I scanned for a second line to no =
avaal. And Apache does not startup=20

Daniel Gladstone Email: dgeehot@hotmail.com=20


=20
> Date: Thu=2C 29 Oct 2009 18:22:57 +0000
> From: lester@lsces.co.uk
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Second request - help with Apache Server Set-u=
p issue for new user
>=20
> Daniel Gladstone wrote:
> > I just downloaded the software and when in and config by httpd.conf fil=
e
> >=20
> > LoadModule php5_module "c:/PHP/php5apache2_2.dll"
> > AddType application /x-httpd-php .php
> > PHPIniDir "C:/PHP"
> >=20
> > when I tried to restart=2C I get an error message:
> >=20
> > Syntax error on line 489 of
> > C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf:
> > Only first PHPINIDir directive honored per configuration tree -=20
> > subsequent ones
> > ignored
> >=20
> > I can only find one what am I doing wrong
>=20
> Was my previous reply no help?
> You will only get that warning if there IS a second line=2C and it will=20
> not prevent Apache/PHP starting
>=20
> --=20
> Lester Caine - G8HFL
> -----------------------------
> Contact - http://lsces.co.uk/wiki/?page=3Dcontact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk//
> Firebird - http://www.firebirdsql.org/index.php
>=20
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe=2C e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands=2C e-mail: users-help@httpd.apache.org
>=20
=

--_b96b94a4-dff9-41a5-a60a-e5ae26ac8a54_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






I am sorry=2C did not get first message. I scanned for a second line to no =
avaal. And Apache does not startup

Daniel Gladstone Email: dgeehot@=
hotmail.com


 =3B
>=3B Date: Thu=2C 29 Oct 2009 18:22:5=
7 +0000
>=3B From: lester@lsces.co.uk
>=3B To: users@httpd.apache=
..org
>=3B Subject: Re: [users@httpd] Second request - help with Apache=
Server Set-up issue for new user
>=3B
>=3B Daniel Gladstone wro=
te:
>=3B >=3B I just downloaded the software and when in and config =
by httpd.conf file
>=3B >=3B
>=3B >=3B LoadModule php5_modul=
e "c:/PHP/php5apache2_2.dll"
>=3B >=3B AddType application /x-httpd-=
php .php
>=3B >=3B PHPIniDir "C:/PHP"
>=3B >=3B
>=3B &g=
t=3B when I tried to restart=2C I get an error message:
>=3B >=3B R>>=3B >=3B Syntax error on line 489 of
>=3B >=3B C:/Program Fil=
es/Apache Software Foundation/Apache2.2/conf/httpd.conf:
>=3B >=3B O=
nly first PHPINIDir directive honored per configuration tree -
>=3B &=
gt=3B subsequent ones
>=3B >=3B ignored
>=3B >=3B
>=3B =
>=3B I can only find one what am I doing wrong
>=3B
>=3B Was m=
y previous reply no help?
>=3B You will only get that warning if there=
IS a second line=2C and it will
>=3B not prevent Apache/PHP starting=

>=3B
>=3B --
>=3B Lester Caine - G8HFL
>=3B --------=
---------------------
>=3B Contact - http://lsces.co.uk/wiki/?page=3Dc=
ontact
>=3B L.S.Caine Electronic Services - http://lsces.co.uk
>=
=3B EnquirySolve - http://enquirysolve.com/
>=3B Model Engineers Digit=
al Workshop - http://medw.co.uk//
>=3B Firebird - http://www.firebirds=
ql.org/index.php
>=3B
>=3B -------------------------------------=
--------------------------------
>=3B The official User-To-User suppor=
t forum of the Apache HTTP Server Project.
>=3B See <=3BURL:http://h=
ttpd.apache.org/userslist.html>=3B for more info.
>=3B To unsubscrib=
e=2C e-mail: users-unsubscribe@httpd.apache.org
>=3B " from the digest=
: users-digest-unsubscribe@httpd.apache.org
>=3B For additional comman=
ds=2C e-mail: users-help@httpd.apache.org
>=3B

=

--_b96b94a4-dff9-41a5-a60a-e5ae26ac8a54_--