我在地址栏输入http://localhost/index.php 浏览器如下显示:Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster Error 404 192.168.189.132 2010��11��19�� ������ 05ʱ32��09�� Apache/2.0.40 (Red Hat Linux)
根目录 /usr/local/apache/htdocs 有测试的文件 如果输入http://localhost/ 如下显示 Test Page This page is used to test the proper operation of the Apache Web server after it has been installed. If you can read this page, it means that the Apache Web server installed at this site is working properly. ..... The Apache documentation has been included with this distribution. For documentation and information on Red Hat Linux, please visit the Red Hat, Inc. website. The manual for Red Hat Linux is available here. You are free to use the image below on an Apache-powered Web server. Thanks for using Apache! You are free to use the image below on a Red Hat Linux-powered Web server. Thanks for using Red Hat Linux!
一个是要配置APACHE支持PHP,一个是配置默认首页为index.php或其他.php
要不你建一个内容为
<?php
phpinfo();
?>
名字为info.php的文件在浏览器里看看能否执行
浏览器如下显示:Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster
Error 404
192.168.189.132
2010��11��19�� ������ 05ʱ32��09��
Apache/2.0.40 (Red Hat Linux)
如果输入http://localhost/ 如下显示
Test Page
This page is used to test the proper operation of the Apache Web server after it has been installed. If you can read this page, it means that the Apache Web server installed at this site is working properly.
.....
The Apache documentation has been included with this distribution. For documentation and information on Red Hat Linux, please visit the Red Hat, Inc. website. The manual for Red Hat Linux is available here. You are free to use the image below on an Apache-powered Web server. Thanks for using Apache! You are free to use the image below on a Red Hat Linux-powered Web server. Thanks for using Red Hat Linux!
你按照我在1楼说的新建那个info.php文件测试下
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>确认你/usr/local/apache/htdocs 有index.php的文件。
是<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
的问题 再次感谢