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

    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

      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 🙂

        Write a Reply...