0

I'm running Ubuntu and have just installed PHP5, Apache2, and MySQL. I created a PHP Project in Netbeans and trying to echo "Hello World." When I run it, I just get a 404 Not Found error with this "The requested URL /PhpProject1/index.php was not found on this server." Any ideas on what to do?

2
Contributors
3
Replies
6
Views
6 Years
Discussion Span
Last Post by sfrider0
0

I'm running Ubuntu and have just installed PHP5, Apache2, and MySQL. I created a PHP Project in Netbeans and trying to echo "Hello World." When I run it, I just get a 404 Not Found error with this "The requested URL /PhpProject1/index.php was not found on this server." Any ideas on what to do?

Ok, I think I fixed that problem. Now when I try to open the PHP file, it just opens Firefox and asks me if I want to Open or Save the file. What do I do?

1

Is it running on localhost?
Have you stored the file under the localhost directory?
E.g. if you used XAMPP, your default localhost directory will be something like:

c:\xampp\htdocs\

Also check to see if Apache etc are running.

0

Thanks ardav, but I think I just figured it out. I just stored my PHP file in the /var/www folder and directed Firefox to there and it worked!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.