Hi guys, i set apache (1.3) up with php (latest), and when I try to execute a php file, it opens download prompt, and downloades the code!
anyone know what i have done wrong?
ooh i forgot to add. If i open root (ie http://localhost/) with a index.html file in root, it will execute the html file, but replacing index.html with index.php it will show the whole folder ie: Index of /
Parent Directory 06-Nov-2002 15:45 - admin.html 01-Jun-2001 02:21 1k index.php 26-Dec-2001 13:11 1k
nevermind, i reinstalled and got php working now!
just wondering how can i make php execute index.php when i request http://localhost/ ?
Open Apache config
Find: #
# <IfModule mod_dir.c> DirectoryIndex index.html </IfModule>
Change to index.php
I think that's all you need to change.