The first try, however failed
Moderator: General Moderators
The first try, however failed
I just setup apache2.0,mysql 5.0 and php 5.
My Apache is installed at c:\Programs Files\Apache Group\Apache2
My MySql is installed at c:\MySQL
My Php is installed at c:\php
I save a php file named as a.php at c:\Programs Files\Apache Group\Apache2\htdocs
My web is http://127.0.0.1
We I input http://127.0.0.1/a.php
"The request URL is not on the server"
What is wrong?
My Apache is installed at c:\Programs Files\Apache Group\Apache2
My MySql is installed at c:\MySQL
My Php is installed at c:\php
I save a php file named as a.php at c:\Programs Files\Apache Group\Apache2\htdocs
My web is http://127.0.0.1
We I input http://127.0.0.1/a.php
"The request URL is not on the server"
What is wrong?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Test a few things. First, on your machine, in your browser address bar, enter http://localhost/.
If you have not installed any files in the C:\Program Files\Apache Group\Apache2\htdocs folder you should get the generic Apache index page telling you the server is set up correctly. If that works, then...
Create a "hello world" HTML page and save it as C:\Program Files\Apache Group\Apache2\htdocs\hello.html. Call it using localhost:
http://localhost/hello.html
If that works then...
Open up your httpd.conf file located in C:\Program Files\Apache Group\Apache2\conf folder and make sure there is a LoadModule and AddHandler that tells apache to actually parse PHP though the PHP engine. If they are there then make a phpinfo page and save it as C:\Program Files\Apache Group\Apache2\htdocs\php-info.php.
Call it like this...
http://localhost/php-info.php
If that doesn't work, post back and let us know what is happening.
If you have not installed any files in the C:\Program Files\Apache Group\Apache2\htdocs folder you should get the generic Apache index page telling you the server is set up correctly. If that works, then...
Create a "hello world" HTML page and save it as C:\Program Files\Apache Group\Apache2\htdocs\hello.html. Call it using localhost:
Code: Select all
<html><head><title>Test HTML Page</title></head><body>Hello World!</body></html>If that works then...
Open up your httpd.conf file located in C:\Program Files\Apache Group\Apache2\conf folder and make sure there is a LoadModule and AddHandler that tells apache to actually parse PHP though the PHP engine. If they are there then make a phpinfo page and save it as C:\Program Files\Apache Group\Apache2\htdocs\php-info.php.
Code: Select all
<?php
phpinfo();
?>http://localhost/php-info.php
If that doesn't work, post back and let us know what is happening.
http://localhost/. doesn't work.
I set
UserDir "My Documents/My Website"
is different the DocumentRoot C:\Program Files\Apache Group\Apache2\htdocs
Is it a problem?
I set
UserDir "My Documents/My Website"
is different the DocumentRoot C:\Program Files\Apache Group\Apache2\htdocs
Is it a problem?
- tasteslikepurple
- Forum Commoner
- Posts: 46
- Joined: Thu Jan 26, 2006 3:38 am
- Location: Bath, UK
there's a good apache/php/mysql/just about everything else you need on a webserver package out there called xampp. it's an easy install and it works straight away
http://www.apachefriends.org/en/xampp.html
p.s. uninstall all apache and php stuff first
http://www.apachefriends.org/en/xampp.html
p.s. uninstall all apache and php stuff first