I'm trying to learn php/mysql by this excellent article by Kevin Yank (Building a Database-Driven Web Site Using PHP and MySQL). I installed the package from http://www.firepages.com.au/devindex.htm?from=oldphpdev and have already run into a problem. Where Kevin says to test the first php script that is supposed to return the date of my server, it just shows the html but there's no result of the php code. Apparently my browser still doesn't recognize the php. My apache server is running.
thanks for your help sean, but sorry to have to keep nagging
there's no htdocs in my apache folder. i tried to create one and did as you said but i get the same error in my brwoser (A problem occured on the origin server - HTTP error 500 - bad url)
I have not used firepages, but there should be a folder that you store your files in. In the file apache file httpd.conf there should be a setting called DocumentRoot which will look like "c:/apache/htdocs" This will tell you where you need to place your files.
when I installed firepages the default location for the root of the webserver was something like C:/phpdev3/www/ - where C:/phpdev3 was the directory I'd extracted everything to. So the root wasn't actually under the apache folder at all.
Have a look to see if there's a www folder at the same level as the apache folder - if so try the file in there, still using http://localhost/ to access it.
yes, that gives an error
i just found out:
i have to enter http://127.0.0.1. Someone told me windows doesn't recognize "localhost" by default. now it works.
thanks for everyone's input. I'll be back with more questions later, undoubtedly :-)
ok, that works
(had to config explorer not to use a proxy though)
Now i'm trying to get this myadmin to work. It says
Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line 255
Have you started MySQL ? This is a seperate program to Apache. You might have a program called MySQL Admin or WinMySQLAdmin, starting this program will start MySQL and then you can use it to shut it down.