[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] PHP4 question
- Subject: RE: [cobalt-users] PHP4 question
- From: "Bryan - Utopian Web Productions" <bryan@xxxxxxxxxxx>
- Date: Tue Jan 9 10:35:00 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hello everyone,
I think this is a stupid question, considering I have performed it many
times in the past on other machines. I just got a new machine up and running
and for the life of me can't seem to get the thing to parse the different
PHP extensions (i.e. .phtml).
I referenced the message below for the proper directives and can not seem
to get the server to react to the changes. I did perform a httpd restart.
Any suggestions?
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Steve Bassi
> Sent: December 29, 2000 8:35 AM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] PHP4 question
>
>
> This worked for me, assuming you have mysql installed first.
>
> Logged in as 'root' perform the following commands
>
> pico -w /etc/httpd/conf/httpd.conf
> (Change the line:
> LoadModule php4_module lib/apache/libphp4.so
> to
> LoadModule php4_module /usr/lib/apache/libphp4.so)
>
> pico -w /etc/httpd/conf/srm.conf
>
>
> Find the following line in srm.conf
> #AddType application/x-httpd-php .phtml
> After this line, add the line
> AddType application/x-httpd-php .php .php4 .phtml
> This associates the .php file extension with PHP4
>
> (If you want index.php to be served by default you need also to
> add this as
> well in the section UserDir web of the same file)
>
> # DirectoryIndex: Name of the file or files to use as a pre-written HTML
> # directory index. Separate multiple entries with spaces.
>
> DirectoryIndex index.html index.htm index.shtml home.html
> home.htm index.php
> index.php4 index.p$
>
>
> Still logged in as 'root' perform the following commands to stop
> and restart
> the HTTP server
> /etc/rc.d/init.d/httpd stop
> /etc/rc.d/init.d/httpd start