Page 1 of 1

Total Novice, installed Apache, MySQL and PHP need HELP!

Posted: Fri Feb 20, 2004 6:48 am
by aljan
I'm a total novice to php but I have 4 years background in using html.

I've installed Apache on Windows and think I have correctly configured it to recognise PHP. I've also installed MySQL.
I've now worked out how to save a file in notepad with the .php file extension just to display my first "hello world" but can't get it to work.
What could I be doing wrong? Where should I save the php file in the first place or doesn't that matter?

I've been following the book "php for dummies" and I really feel like the biggest dummy of all right now. HELP. :cry:

Posted: Fri Feb 20, 2004 7:46 am
by markl999
If you look in c:\Program File\Apache2\Apache\conf (or wherever yours is) you'll see a file called httpd.conf, in there is a line starting with DocumentRoot.
Create a test file called test.php with just <?php phpinfo() ?> in it then goto http://localhost/test.php and see what happens. Do you see the php code, get a blank page, get a download prompt .. or does it work ok? ;)

Posted: Fri Feb 20, 2004 11:08 am
by aljan
I've found the line which say's
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"

No do I change this or do I save my test file into the htdocs?

Posted: Fri Feb 20, 2004 11:18 am
by ol4pr0
Where did you put youre test.php ?

Posted: Sat Feb 21, 2004 2:01 am
by aljan
I put the test.php in the DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs" and opened it in explorer but it didn't work

Posted: Sat Feb 21, 2004 2:09 am
by aljan
I created a test file called test.php with just <?php phpinfo() ?> in it and it came up with a blank page