QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 619|回复: 1

RH起动web但是无法访问

[复制链接]
发表于 2004-3-12 20:27:38 | 显示全部楼层 |阅读模式
安装默认的http服务,
拷贝到/var/www/html  一个简单的index.php
浏览器输入http://192.168.0.1
显示 RH 的"test page"

This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the Apache HTTP server installed at this site is working properly.


If you are the website administrator:

You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.

You are free to use the images below on an Apache and Red Hat powered HTTP servers. Thanks for using Apache and Red Hat Enterprise Linux!


如果http://192.168.0.1/index.php,就会出错:
Forbidden

You don't have permission to access /index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.46 (Red Hat) Server at fanlix Port 80


我把那个/etc/httpd/conf.d/welcome.conf.文件都删除了, 还是这个页面
以前设置过一次, 什么问题都没有的,,,到底怎么了?
发表于 2004-3-13 10:49:13 | 显示全部楼层
注意index.php文件的权限,/var/www/html目录的权限,httpd.conf文件中有没有定义php?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-9 10:23 , Processed in 0.084037 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表