[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Apache Doesn't Process php Files



The AddModule statements were originally commented out in httpd.conf. I
noticed that they were active in another working configuration I have, so I
removed the comment character. It doesn't work either way. The AddModule
statements *are* present in my srm.conf file.

I noticed the following in my Apache errors file upon restarting the server:

[Thu May 23 04:03:44 2002] [notice] Apache/1.3.20 Sun Cobalt (Unix)
mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.1.2 mod_auth_pam_external/0.1
FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming normal operations

This seems to indicate that PHP is being loaded, but why is it not
processing php files?

--Bruce

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Gerald Waugh
Sent: Thursday, May 23, 2002 5:01 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Apache Doesn't Process php Files


On Wednesday 22 May 2002 11:47 pm, Bruce Vander Werf wrote:
> I am having trouble getting Apache to process php files through the PHP
> interpreter. When I view a *.php file in a browser, I see my PHP source.
>
> I am running Apache 1.3.20 on a RAQ4. The web server was installed before
I
> became involved in this project.
>
> I have successfully installed PHP 4.1.2 using the package from
> Pkgmaster.com through the Install Software applet on the admin control
> panel. I can run PHP interactively from the command line. The php.ini file
> is in /etc/httpd.
>
> I have the following lines in my httpd.conf file:
>
> # Extra Modules
> #LoadModule php_module modules/mod_php.so
> #LoadModule php3_module modules/libphp3.so
> LoadModule php4_module modules/libphp4.so
>
> # Extra Modules
> #AddModule mod_php.c
> #AddModule mod_php3.c
> AddModule mod_php4.c
> AddModule mod_perl.c
> #AddModule mod_casp2.c

On my system none of these Extra Modules are loaded, all commented out.

> AddType application/x-httpd-php .php4
> AddType application/x-httpd-php .php
>
> The last two lines are actually in both the main configuration section and
> the VirtualHost section for the site that I am trying to use.
>
> I have restarted the web server several times.

My srm.conf has these entriees
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
#AddType application/x-httpd-php4 .php3
#AddType application/x-httpd-php4 .php4
#AddType application/x-httpd-php4 .php
#AddType application/x-httpd-php4-source .php4s
#AddType application/x-httpd-php4-source .php3s
#AddType application/x-httpd-php4-source .phps

And also a DirectoryIndex with index.php default.php added

HTH
--
Gerald Waugh
http://www.frontstreetnetworks.com :: Phone. [011] 203.785.0699
Front Street Networks LLC | SOHO Networks & Web Site Hosting
229 Front Street, Ste. #C, New Haven, CT, 06513-3203 United States

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users