You are here: Re: Syntax error on line 173 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Invalid command 'php5_module', perhaps mis-spelled or defined by a module not included in the server configuration « All PHP « IT news, forums, messages
Re: Syntax error on line 173 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Invalid command 'php5_module', perhaps mis-spelled or defined by a module not included in the server configuration

Posted by Johnny on 10/15/06 08:04

"Nospam" <nospam@home.com> wrote in message
news:J3hYg.27126$6C2.2069@newsfe6-gui.ntli.net...
>
> "Johnny" <removethis.huuanito@hotmail.com> wrote in message
> news:pZeYg.1283$UJ2.883@fed1read07...
> >
> > "Nospam" <nospam@home.com> wrote in message
> > news:i2cYg.21812$Fx4.963@newsfe1-gui.ntli.net...
> > > I am getting this error:
> > >
> > > Syntax error on line 173 of C:/Program Files/Apache
> > > Group/Apache2/conf/httpd.con
> > > f:
> > > Invalid command 'php5_module', perhaps mis-spelled or defined by a
> module
> > > not in
> > > cluded in the server configuration
> > >
> > > when I try this in ms-dos apache -k start
> > >
> > > I have included this line to httpd.conf LoadModule php5_module
> > > "c:/php/phpapache.dll"
> > >
> > > I also tried it with LoadModule php5_module "c:/php/phpapache2.dll"
> still
> > > get the same error msg
> > >
> > > and AddType application/x-httpd-php .php
> > > AddType application/x-httpd-php- source .phps
> > >
> > > I have moved php.ini-dist to the c:/windows file and renamed it to
> php.ini
> > > as well as move phpapache2.ll and phpapache.dll to the c:/windows
> > directory.
> > > I am using apache 2.0.59 and php 5.1.6 I am on win98se and my apache
> > monitor
> > > is still on the red traingle, I have restarted several times after
> > amending
> > > the httpconf file but still no luck, I am at a loss on what to do next
> > >
> > >
> > >
> > >
> >
> > how come it don't say what version of php you are using in that
> directiev??
> >
> > here's what php.nert has to say:
> >
> > ______________
> > Example 6-6. PHP and Apache 2.0 as Module
> >
> >
> >
> > # For PHP 5 do something like this:
> > LoadModule php5_module "c:/php/php5apache2.dll"
> > AddType application/x-httpd-php .php
> >
> > # configure the path to php.ini
> > PHPIniDir "C:/php"
> >
> >
> > ______________
> >
> > see how it says
> > LoadModule php5_module "c:/php/php5apache2.dll"
> > ^
> >
> > ??
> says the same error msg with php5apache2.dll, phpapache.dll, phpapache.dll
> or php5apache.dll, rebooting after changing the httpd.conf each time
>
Oh well. How frustrating.
I tried to repro the error on my apache1.3 but it didn't give any similar
error message when I messed up the load module path
Sorry I couldn't help. good luck. :-)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация