apache question

由 Xiangbuilder 在 07-05-2003 09:08 发表:

apache question

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.


由 黄叶 在 07-05-2003 10:18 发表:


你的apache是怎么安装的。

你用的是什么发行版?

你安装在哪个目录?

看看你安装的apache是否在你的搜索路径?

等,请先把你的情况说清楚呀。


由 Xiangbuilder 在 07-05-2003 11:01 发表:


感谢黄叶的帮助.

抱歉,我在RH7.2下仍然无法输入中文,

很明显,我是一个初学者.

"你的apache是怎么安装的。

你用的是什么发行版?

你安装在哪个目录?"

在我安装Redhat7.2的过程中选择了完全安装,

所以,我并未进行关于APACHE的另外的安装.

我也不太清楚默认的安装会在什么目录.

也许我应该find apache, 或者locate apache,

待会儿, 我切换至LINUX下试一下.

谢谢.


由 sfatsdu 在 07-05-2003 11:10 发表:


rpm -ql apache


nObODy


由 ison 在 07-05-2003 15:43 发表:


你应该这样:

[root@xiangbuilder root]#./apachectl configtest

少了“./”,系统不认识该命令。


由 Xiangbuilder 在 07-05-2003 21:10 发表:


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

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus