Click to See Complete Forum and Search --> : PHP4 Apache


Anon
02-07-2001, 01:30 PM
hiya

PHP/Apache Newbie here..

I just installed Apache 1.3.17 and Apache works great NP there..

I followed the directions from here..
http://www.php.net/manual/en/install.apache.php

on installing PHP as a Apache Mod.

The problem I am having is when I go to a PHP page it does not compile the actual code it just prints it in the browser..

I am wondering if I placed the
AddType application/x-httpd-php .php
in the wrong spot.. I put it in srm.conf..

is there a certain place in that file it needs to go??

Any help here would be great


regards,

Zack Harling
zharling@teletron.com

carlosa69
02-07-2001, 09:11 PM
there is a specific place to put it (htdocs) but if it is being read then you know the file is in the right location. My guess is you might have saved the file as a text file and your file file.php is accually saved to file.php.txt. Also make sure you are going to your localhost adress and not the direct file path. for example go to http://localhost/file.php and not ../file/path/htdocs/file.php
-carlos aguilar

PS there is no wrong spot to put "AddType application/x-httpd-php .php" because it is read as the same command line no matter wher it is in the configuration file

Anon
02-07-2001, 11:14 PM
It would help if we were to know which instructions you were following, since the page does contain instructions for both Linux and Windows, each system has it's own little querks :)

Anon
02-08-2001, 06:10 AM
I am using Red Hat 6.2. The file is saved corectly as file.php.

The address I am going to us http://localhost/file.php.