[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [raq2] PHP pages try to download instead of run
- Subject: Re: [cobalt-users] [raq2] PHP pages try to download instead of run
- From: Glen Scott <glen@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu Jul 26 16:57:15 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
How and where do I specify that the server should try and execute PHP
files instead of downloading them to the client.
When a PHP page is viewed via the web browser it tries to download it
instead of the server running the script.
Read the install file that comes with PHP. Very briefly:
Edit /etc/httpd/conf/httpd.conf and add;
LoadModule php3_module /usr/lib/apache/libphp3.so
AddModule mod_php3.c
and srm.conf;
AddType application/x-httpd-php3 .php3 .php
AddType application/x-httpd-php3-source .phps
If you have installed PHP4, then just replace all the 3's with 4's.
Make sure the LoadModule line is pointing to the correct file on your
system. You will have to restart Apache for the changes to take
effect:
/etc/rc.d/init.d/httpd.init restart
Regards,
Glen Scott
--
-----------------------------------------------------
Design Solution Limited
t: +44 (0)1502 513008
f: +44 (0)1502 588622
e: info@xxxxxxxxxxxxxxxxxxxx
w: http://www.designsolution.co.uk
Nouvotech House, Harbour Road,
Oulton Broad, Suffolk, NR32 3LZ, UK
-----------------------------------------------------
Graphic Design - Web development - Hosting
-----------------------------------------------------
We are currently offering free email advice on Cobalt RaQ2/3, PHP,
MySQL and general Linux questions- questions@xxxxxxxxxxxxxxxxxxxx