出错了

出错了

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
执行问令/usr/local/apache2/bin/apachectl start
修改httpd.conf这个文件
找到ServerName
写上你的服务器的IP地址和端口号
ServerName  12.34.56.78:80

不过根据启动的错误提示,你的APACHE事实上已经启动了
对,但php模块没加上
已添加了这句话了
AddType application/x-httpd-php .php .phtml
错误日志





[Sat May 20 17:03:21 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat May 20 17:03:23 2006] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apach
e run?
[Sat May 20 17:03:23 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
[Sat May 20 17:40:55 2006] [notice] caught SIGTERM, shutting down
[Sat May 20 17:41:03 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat May 20 17:41:04 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
[Sat May 20 17:59:50 2006] [notice] SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat May 20 17:59:50 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
[Sat May 20 18:00:05 2006] [notice] caught SIGTERM, shutting down
[Sat May 20 18:04:37 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat May 20 18:04:37 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
[Sat May 20 18:06:02 2006] [notice] caught SIGTERM, shutting down
[Sat May 20 18:15:18 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat May 20 18:15:18 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
[Sat May 20 18:24:38 2006] [notice] SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat May 20 18:24:38 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
[Sat May 20 18:24:41 2006] [notice] SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat May 20 18:24:42 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
[Sat May 20 18:24:42 2006] [notice] SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat May 20 18:24:43 2006] [notice] Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a configured -- resuming normal operations
[Sat May 20 18:24:49 2006] [notice] caught SIGTERM, shutting down


QUOTE:
原帖由 pclinuxhelp 于 2006-5-20 18:38 发表
对,但php模块没加上
已添加了这句话了
AddType application/x-httpd-php .php .phtml

还没有明白我在2楼说的话吗?
我的意思说是,已经在httpd.conf 里添加了AddType application/x-httpd-php .php .phtml
但没还是不支持PHP,以前运行没出错时是支持的
问题解决了,
修改httpd.conf这个文件
ServerName  127.0.01:80
php 呢不知是撒问题,重新装了一次就没有问题了
不明白
还有就是DNS找不到名称,可以修改/etc/hosts文件,对应127.0.0.1   localhost
FreeBSD6.0 如果安装php5-extensions中选择了record模块,也会导致Session Cache is not configured [hint: SSLSessionCache] 错误
最近一次安装时就碰到这问题,后来在/usr/local/etc/php/extensions.ini中将extension=record.so禁用就解决了