Click to See Complete Forum and Search --> : PHP scripts / Apache


lone-nut
10-16-2000, 11:48 PM
I installed PHP 4.02 on my box at home so I can run pages with embedded php scripts in em... but when I try to view the *.php in a browser it prompts me to download it?

wtf

I checked the apache config file and I don't see anything that would cause this...
Why is this doing this? ... it isn't the browser... cuz lynx and netscape and IE all do the same thing.

any suggestions?

stiles
10-17-2000, 06:05 AM
Add this to your httpd.conf in your mime types (and then restart apache, BTW apachectl restart will not kill off the parent process and re-read the httpd.conf file, you must stop then start):

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

mangeli
10-17-2000, 09:40 AM
I would follow the instructions at
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless

They walk you through setting up apache, mysql, PHP, modssl, openssl, and the other security thing.... its a really good document.