D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] PHP AND APACHE 1.3



On Saturday 03 Jan 2004 6:17 pm, paul sutton wrote:
Hi

I have just set up apache and php on my laptopm and editied my httpd.conf
file according to instructions in my book,  I even told it to include .html
as part of the files it can parse, (as this was not set by default),
(application section of httpd.conf

Have you installed the mod_php4 package? Which distro are you using?

Make sure these lines are uncommented - don't add them blindly, find where 
they appear and uncomment them.
AddType  application/x-httpd-php         .php .php4 .php3 .phtml
AddType  application/x-httpd-php-source  .phps

If I create a very simple page, i.e call up phpinfo nothing happens, it
just seems to ignore the section of php code in my html page, which has
sections of php code.

Do the files need any special permissions, they don't seem executable.  I

NO. PHP files need no special permissions - not ever. You never need to set 
more than chmod 644.

have also tried various methods of calling up the script including <script
language="php" </script> as this is mentioned in the book.

You haven't finalised installation of PHP?

-- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3

Attachment: pgp00054.pgp
Description: signature


Lynx friendly