zoukankan      html  css  js  c++  java
  • Apache HTTP Server和PHP安装

    安装:

     由于目前不需要那么多功能,可以把httpd-ssl.conf内容全部注掉,等后期有需要再打开修改,因为要修改的东西规矩有点多,新手太难了。

    启动报错:

    [Sun May 03 10:22:29.285322 2020] [core:warn] [pid 10784:tid 696] AH00098: pid file F:/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

    PHP Warning:  'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0

    [Sun May 03 10:22:29.289315 2020] [:emerg] [pid 10784:tid 696] AH00020: Configuration Failed, exiting

    删除上述httpd.pid文件,然后

    卸载上面全部已安装的,并安装2017X64:

    重启电脑,重新启动...

     

     

     

    Starting the 'Apache2.4' service

    The 'Apache2.4' service is running.

    0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0

    [Sun May 03 10:24:54.932859 2020] [:emerg] [pid 19536:tid 740] AH00020: Configuration Failed, exiting。

    配置php:php.ini-development直接复制改名为php.ini。放开注释

    设置环境变量:将php目录加载path

     

     

    太坑了,要一个一个的写。幸亏有notepad++。

     

     

      多简单呢?把自己php项直接部署在apache的DocumentRoot目录下就可以了,就在httpd.conf配置文件中配置,然后开始按照自己项目的要求搭建目录,此时XAMPP打卡apache和mysql就可以了。可怜我在eclipse上找了半天的服务器配置。鉴于php作为一个服务器脚本语言还是服务html的,还包装的这么严,就是一个工具包给前端使用的,类似thymeleaf我就不继续了。散了吧,散了吧。

  • 相关阅读:
    notification(浏览器通知)
    面试的信心来源于过硬的基础
    碰撞检测
    使用自定义的鼠标图标 --- cursor url
    js中json字符串转成js对象
    【php学习】字符串操作
    Car的旅行路线(codevs 1041)
    Find them, Catch them(poj 1703)
    Period(poj 1961)
    Power Strings(poj 2406)
  • 原文地址:https://www.cnblogs.com/YsirSun/p/12821065.html
Copyright © 2011-2022 走看看