LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 647|回复: 6

apache question

[复制链接]
发表于 2003-7-5 09:08:51 | 显示全部楼层 |阅读模式
In home folder, there is no "httpd" folder,
so I add it, and add a simple *.html file in it.
I have applied the web address: xiangbuilder.dns0755.net
but when I type "xiangbuilder.dns0755.net" in http address box,
"The page not find" appears.
What is wrong?
And what should I do?
Here is the detail:

I have select "everything" during installing Redhat 7.2.
[root@xiangbuilder root]# /etc/init.d/httpd start
Starting httpd: [Fri Jul 4 22:51:55 2003]
[alert] httpd: Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName
[ OK ]
So I open the file: /etc/httpd/conf/httpd.conf
modify the "servername localhost" to "servername 127.0.0.1"
[root@xiangbuilder root]# /etc/init.d/httpd start
Starting httpd:
[root@xiangbuilder root]#

Seems well this time, but
[root@xiangbuilder root]# apachectl configtest
bash: apachectl: command not found

Thank you.
发表于 2003-7-5 10:18:41 | 显示全部楼层
你的apache是怎么安装的。
你用的是什么发行版?
你安装在哪个目录?
看看你安装的apache是否在你的搜索路径?
等,请先把你的情况说清楚呀。
 楼主| 发表于 2003-7-5 11:01:08 | 显示全部楼层
感谢黄叶的帮助.
抱歉,我在RH7.2下仍然无法输入中文,
很明显,我是一个初学者.

"你的apache是怎么安装的。
你用的是什么发行版?
你安装在哪个目录?"
在我安装Redhat7.2的过程中选择了完全安装,
所以,我并未进行关于APACHE的另外的安装.
我也不太清楚默认的安装会在什么目录.
也许我应该find apache, 或者locate apache,
待会儿, 我切换至LINUX下试一下.
谢谢.
发表于 2003-7-5 11:10:27 | 显示全部楼层
rpm -ql apache
发表于 2003-7-5 15:43:16 | 显示全部楼层
你应该这样:
[root@xiangbuilder root]#./apachectl configtest
少了“./”,系统不认识该命令。
 楼主| 发表于 2003-7-5 21:10:04 | 显示全部楼层
Thank you.

[root@xiangbuilder root]# find / -name 'apache' -print
/var/cache/alchemist/apache
/etc/logrotate.d/apache
/etc/alchemist/namespace/apache
/usr/lib/apache
/usr/lib/linuxconf/descriptions/eng/apache
/usr/lib/linuxconf/descriptions/es/apache
/usr/lib/linuxconf/descriptions/fr/apache
/usr/lib/linuxconf/descriptions/hu/apache
/usr/lib/linuxconf/descriptions/ko/apache
/usr/lib/linuxconf/descriptions/pt/apache
/usr/lib/linuxconf/descriptions/se/apache
/usr/lib/linuxconf/descriptions/sk/apache
/usr/lib/linuxconf/help.de/apache
/usr/lib/linuxconf/help.eng/apache
/usr/lib/linuxconf/help.es/apache
/usr/lib/linuxconf/help.fi/apache
/usr/lib/linuxconf/help.fr/apache
/usr/lib/linuxconf/help.it/apache
/usr/lib/linuxconf/help.ko/apache
/usr/lib/linuxconf/help.no/apache
/usr/lib/linuxconf/help.pt/apache
/usr/lib/linuxconf/help.ro/apache
/usr/lib/linuxconf/help.se/apache
/usr/lib/linuxconf/help.sk/apache
/usr/include/apache

[root@xiangbuilder root]# rpm -ql apache
......

[root@xiangbuilder root]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Sat Jul  5 21:07:25 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]
But I have already used 127.0.0.1 for Servername in  /etc/httpd/conf/httpd.conf as I said above.
[root@xiangbuilder root]# ./apachectl configtest
bash: ./apachectl: No such file or directory
Does this mean apache has been installed successfully in my OS?
发表于 2003-7-6 13:35:36 | 显示全部楼层
如果是用RPMS包安装的话。
apachectl
这个命令应该在这个目录里:/usr/sbin里。
如果你直接用root用户进入,这个路径应该是在搜索犯围内。
如果你是以普通用户进入然后su为root,则这个命令不在在范围内。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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