You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Gladstone <dg...@hotmail.com> on 2009/10/28 04:29:39 UTC

[users@httpd] New User trying to install Apache server on Windows XP

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 

Daniel Gladstone 
Email: dgeehot@hotmail.com 


 		 	   		  

Re: [users@httpd] New User trying to install Apache server on Windows XP

Posted by Lester Caine <le...@lsces.co.uk>.
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

Check to see if httpd.conf is 'including' a php configuration file. I 
suspect that you have had the php bits added via a second file.
In any case is should not stop apache/php running, so checking you setup 
with a 'phpinfo();' will probably work.

-- 
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 <URL:http://httpd.apache.org/userslist.html> 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