| View previous topic :: View next topic |
| Author |
Message |
Crispy
Joined: Mon May 31, 2010 7:35 pm Posts: 43
|
Posted: Wed Jul 28, 2010 5:44 pm Post subject: PHP Coding Academy Project 2 |
|
|
Hi,
I am working my way through Project2 and I can't seem to get it to display the php file in Firefox. All I get is it asking where to save the .php file.
If I run http://localhost/, i get a message saying "It Works!" but that there are no files eventhough I have copied project2.php into /var/www
Do I need to tell Apache to accept php? I have installed all the packages given in the introduction so do not understand whats gone wrong?
Thanks,
Chris |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1552 Location: Guisborough
|
Posted: Wed Jul 28, 2010 6:35 pm Post subject: |
|
|
Try: | Code: | | http://localhost/project2.php |
as http://localhost/ will only load the default index file, hence the reason you see it works. _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
Crispy
Joined: Mon May 31, 2010 7:35 pm Posts: 43
|
|
| Back to top |
|
 |
Hudzilla Site admin

Joined: Mon Apr 04, 2005 12:52 pm Posts: 265 Location: LXF Towers
|
Posted: Thu Jul 29, 2010 8:26 pm Post subject: |
|
|
Hey!
Yes, restarting Apache is the correct solution. I think in the mini-book I just tell people to restart their whole computer, because it saves having to explain the various different ways of restarting services on Linux
Paul |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|