This is a discussion on install questions within the PHP General forums, part of the PHP Programming Forums category; i just installed php and when i try to load a php file into the browser through apache, the file ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
rogue wrote:
> i just installed php and when i try to load a php file into the browser > through apache, the file downloads instead of being displayed. > > is this an apache problem or a problem with my php install? This is a problem with your php install (you need to make sure you edit your httpd.conf with the information from the php install documentation). More information > http://www.php.net/installation You may also want to read the numerous install guides/tutorials that are on the web -- I have written my own at the site in my signature (mine discusses your problem and possible solutions). Lots of information out there if you google :) -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com |
|
|||
|
What is your platform? Not that it mattes a whole lot...
Make sure the httpd.conf file has #LoadModule php4_module modules/libphp4.so LoadModule php5_module modules/libphp5.so (whichever is the one you need, probably 4) AddType application/x-httpd-source .phps AddType application/x-httpd-php .php On Fri, 2003-10-24 at 17:00, rogue wrote: > i just installed php and when i try to load a php file into the browser > through apache, the file downloads instead of being displayed. > > is this an apache problem or a problem with my php install? > > thanks |