•    当运行程序的时候发现出现这样的字符: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中出现的小问题

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



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

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

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

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

  • à重启Apache服务

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

转载于:https://blog.51cto.com/13565940/2089551

相关文章:

  • 2021-12-20
  • 2021-06-29
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-05-28
  • 2022-03-06
猜你喜欢
  • 2021-08-19
  • 2021-09-29
  • 2021-10-20
  • 2021-10-09
  • 2022-01-09
  • 2021-07-23
相关资源
相似解决方案