fengxiao_hh 发表于 2006-12-23 01:08:46

新手提问:apache的配置问题

我用的ubunt6。10
按照wiki上的方法配置lamp
http://wiki.ubuntu.org.cn/LAMP%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E9%85%8D%E7%BD%AE
但是在启动的时候出现下面的问题。

Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

请高人指点,谢谢。

KDF2003 发表于 2006-12-24 01:21:42

很正常,因为你没有指定服务器名称,所以服务器使用127.0.0.1作为服务器名称。

找到那行 "#ServerName XXXXX(X代表某词,忘记了)“,改为”ServerName 127.0.0.1(名称或服务器IP)

fengxiao_hh 发表于 2006-12-24 23:53:58

谢谢 ,我是新手。
请问#ServerName 在哪个配置文件里面?

还有
很多说在讲 Apache的基本配置时都要复制一些文件:
httpd.conf.dist复制为httpd.conf
srm.conf.dist复制为srm.conf
access.conf.dist复制为access.conf

不知道以上是什么意思,往哪个地方复制?

我用的是Ubuntu6。10,用APT安装的Apache。要学LAMP。
谢谢

q615 发表于 2006-12-25 15:24:53

哪个复制应该是说自己安装的话,安完后就要在指定的目录下复制出来.而你使用ATP来安装就应该已经解决了这个问题,你可以试下在/etc里面找找有没有httpd.conf就知啦!

fengxiao_hh 发表于 2006-12-25 17:29:32

在/etc/apache2/目录下有一个httpd.conf,但是没有srm.conf和access.conf,还有一个ports.conf和apache2.conf。
httpd.conf文件是空的,只有短短几行注释:
# This is here for backwards compatability reasons and to support
#installing 3rd party modules directly via apxs2, rather than
#through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so

是不是完全要自己配置?
页: [1]
查看完整版本: 新手提问:apache的配置问题