In Apache 2.x php configuration is now in /etc/httpd/conf.d/php.conf

This file should contain the following:

#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php


And your /etc/httpd/conf/httpd.conf file should contain the following:
#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf


This way it includes the correct configurations.  As you can see you now
only use LoadModule.  By any chance, did you upgrade your box from a
previous version?  If so, you will see in /etc/httpd/conf that there is
a new httpd.conf file which is the new Apache 2.x file, just move that
guy over and add your specific configurations to make it work.

Hope this helps...

JC

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Evren
Yurtesen
Sent: Friday, July 25, 2003 1:07 PM
To: [EMAIL PROTECTED]
Subject: RE: dialup_admin

You should really ask this to an Apache or PHP mailing list.

Also I use apache 1.3.x version. That must be the difference.
Make a search from google and use keywords
     how to configure php apache 2


Do you have these also in some of your conf files?
The important thing is that you should have .php3 otherwise you cant run
dialup admin

AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps


On Fri, 25 Jul 2003, Alex Chen wrote:

> Evren,
>   My system is Linux 8.0 running Apache httpd-2.0.40-8.  It is in
stock
> setting.
> I have not touched anything in it.
>
> If I have the following lines in /etc/httpd/conf.d/php.conf
>
> LoadModule php4_module modules/libphp4.so
> AddModule mod_php4.c
>
> I got the following errors when I stop and restart the httpd:
>
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd stop
> Stopping httpd:                                            [  OK  ]
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd start
> Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
> Invalid command 'AddModule', perhaps mis-spelled or defined by a
module not
> included in the server configuration
>                                                            [FAILED]
>
>
> If I change 'AddModule' to 'AddModuleInfo', I got the following error:
>
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd start
> Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
> AddModuleInfo takes two arguments, a module name and additional
information
> on that module
>                                                            [FAILED]
>
> The file /etc/httpd/conf/httpd.conf does not have any 'AddModule'
> directives.
>
> What is your setting?
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Evren
> > Yurtesen
> > Sent: Friday, July 25, 2003 1:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: dialup_admin
> >
> >
> > look pal, I am using FreeBSD and it can install php
> > automatically and make
> > it work! So I dont know also waht that does. I have searched
> > in my WORKING
> > httpd.conf file for php and found those, and concluded that for php
to
> > work, those must be set also! If you didnt of course set some
> > stuff about
> > your php after install
> >
> > Evren
> >
> > On Thu, 24 Jul 2003, Alex Chen wrote:
> >
> > > The LoadModule directive is already there.
> > >
> > > The AddModuleInfo needs two parameters.
> > > There is no 'AddModule' directive.  I do not see how this
> > > affects the web server.
> > >
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] Behalf Of
Evren
> > > > Yurtesen
> > > > Sent: Thursday, July 24, 2003 3:12 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: dialup_admin
> > > >
> > > >
> > > > I had similar problem.
> > > > You should also have
> > > >
> > > > LoadModule php4_module libexec/apache/libphp4.so
> > > >
> > > > AddModule mod_php4.c
> > > >
> > > > My problem was that these were under a IfDefine SSL clause
> > > > and I have started server without ssl (doh!)
> > > >
> > > > Evren
> > > >
>
>
> -
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
>

- 
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to