[SOLVED] getting PHP 5 to work with Apache2

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

davidklonski
Forum Contributor
Posts: 128
Joined: Mon Mar 22, 2004 4:55 pm

Post by davidklonski »

that last tip helped me solved the problem!

when I ran 'apache -start' it showed syntax ok

when I went to http://localhost/ it showed me the content of the directory:
- index.php.txt
The file was saved with a .txt extension and that is why PHP wasn't run!
and indeed when I told Windows to not hide known extension, the hidden .txt extension showed up!

needless to say that when I renamed the file without the .txt extension it worked fine.

thanks again for the help.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

doh! ;)
Glad you got it sorted.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

lemme guess, you wrote the php file in notepad? It has an annoying feature that always adds .txt unless you put the name you want it quotes..
davidklonski
Forum Contributor
Posts: 128
Joined: Mon Mar 22, 2004 4:55 pm

Post by davidklonski »

good guess

stupid Microsoft :cry:
Post Reply