•    当运行程序的时候发现出现这样的字符:httpd: Could not reliably determine the server's fully qualified domain name, using www.shifanyong.cn for ServerName  但是服务还是可以启动、重启、停止的情况

          因为/etc/local/httpd/conf/httpd.conf(安装目录,不一定是这个)中,ServerName这个项是注释项,可以选择去掉#号,修改后面的域名,也可以在下面添加一行ServerName www.shifanyong.cn:80这里当然是要填写你的域名






  • 搭建简单的LAMP中出现的小问题_mysql

出现该问题是因为同时需要安装依赖包yum -y install ncurses-*  cmake安装时出错,cmake编译安装并不是makemake install ,而是gmakegmake install



  • 搭建简单的LAMP中出现的小问题_mysql_02

  • 这个是测试php是否安装成功的代码,当该页面出现这个问题的时候,直接去/usr/local/httpd/conf/httpd.conf

  • à查找AddType application 字符,然后在下面添加AddType application/x-httpd-php .php

  • à查找 DirectoryIndex这一项,把index.php添加在后面

  • à重启Apache服务

    搭建简单的LAMP中出现的小问题_mysql_03