phpstudy(小皮面板)和phpstudy2018 配置php的区别

一、总结

一句话总结:

phpstudy(小皮面板) 和 phpstudy2018 只是引入的php的位置不同,但是核心代码还是一样的

1、apache中配置php的核心代码?

分别设置FcgidInitialEnv、AddHandler和FcgidWrapper

FcgidInitialEnv PHPRC "D:/software/coding/php/phpstudy_191125/phpstudy_pro/Extensions/php/php7.3.4nts"

AddHandler fcgid-script .php

FcgidWrapper "D:/software/coding/php/phpstudy_191125/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php

二、phpstudy2018中:apache配置文件中怎么配置php

这是在phpstudy2018中

LoadModule fcgid_module modules/mod_fcgid.so

Include conf/extra/httpd-fcgid.conf

FcgidInitialEnv PHPRC "D:/software/coding/php/phpstudy/PHPTutorial/php/php-7.2.1-nts/"

AddHandler fcgid-script .php

FcgidWrapper "D:/software/coding/php/phpstudy/PHPTutorial/php/php-7.2.1-nts/php-cgi.exe" .php

最后配置域名的时候:

DocumentRoot "D:\software\coding\php\phpstudy\PHPTutorial\WWW\ks"

ServerName ks.com

ServerAlias

Options FollowSymLinks ExecCGI

AllowOverride All

Order allow,deny

Allow from all

Require all granted

DirectoryIndex index.php index.html login.html

phpstudy2018 配置php核心代码:

FcgidInitialEnv PHPRC "D:/software/coding/php/phpstudy/PHPTutorial/php/php-7.2.1-nts/"

AddHandler fcgid-script .php

FcgidWrapper "D:/software/coding/php/phpstudy/PHPTutorial/php/php-7.2.1-nts/php-cgi.exe" .php

三、phpstudy小皮面板中:apache配置文件中怎么配置php

直接在配置域名的时候指定了php

1

2 DocumentRoot "D:/software/coding/php/phpstudy_191125/phpstudy_pro/WWW/ks"

3 ServerName ks.com

4 ServerAlias

5 FcgidInitialEnv PHPRC "D:/software/coding/php/phpstudy_191125/phpstudy_pro/Extensions/php/php7.3.4nts"

6 AddHandler fcgid-script .php

7 FcgidWrapper "D:/software/coding/php/phpstudy_191125/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php

8

9 Options FollowSymLinks ExecCGI

10 AllowOverride All

11 Order allow,deny

12 Allow from all

13 Require all granted

14 DirectoryIndex index.php index.html login.html

15

16 ErrorDocument 400 /error/400.html

17 ErrorDocument 403 /error/403.html

18 ErrorDocument 404 /error/404.html

19 ErrorDocument 500 /error/500.html

20 ErrorDocument 501 /error/501.html

21 ErrorDocument 502 /error/502.html

22 ErrorDocument 503 /error/503.html

23 ErrorDocument 504 /error/504.html

24 ErrorDocument 505 /error/505.html

25 ErrorDocument 506 /error/506.html

26 ErrorDocument 507 /error/507.html

27 ErrorDocument 510 /error/510.html

28

phpstudy(小皮面板) 配置php核心代码:

FcgidInitialEnv PHPRC "D:/software/coding/php/phpstudy_191125/phpstudy_pro/Extensions/php/php7.3.4nts"

AddHandler fcgid-script .php

FcgidWrapper "D:/software/coding/php/phpstudy_191125/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php

四、总结

phpstudy2018 配置php核心代码:

FcgidInitialEnv PHPRC "D:/software/coding/php/phpstudy/PHPTutorial/php/php-7.2.1-nts/"

AddHandler fcgid-script .php

FcgidWrapper "D:/software/coding/php/phpstudy/PHPTutorial/php/php-7.2.1-nts/php-cgi.exe" .php

phpstudy(小皮面板) 配置php核心代码:

FcgidInitialEnv PHPRC "D:/software/coding/php/phpstudy_191125/phpstudy_pro/Extensions/php/php7.3.4nts"

AddHandler fcgid-script .php

FcgidWrapper "D:/software/coding/php/phpstudy_191125/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php

phpstudy(小皮面板)和phpstudy2018只是引入的php的位置不同,但是核心代码还是一样的

五、参考资料

1、apache配置文件中怎么配置php

yum安装的话配置文件/etc/httpd/conf.d/php.conf

LoadModule php5_module modules/libphp5.so

LoadModule php5_module modules/libphp5-zts.so

来源:https://www.cnblogs.com/Renyi-Fan/p/12073961.html

phpstudy2018选择php7,phpstudy(小皮面板)和phpstudy2018 配置php的区别相关推荐

  1. 利用phpstudy(小皮面板)配置本地PHP开发环境的记录

    本文参考博文:https://blog.csdn.net/weixin_42503843/article/details/105537067 进入官网下载phpstudy(小皮面板)的Windows版 ...

  2. 小皮面板有php环境吗,体验phpStudy小皮面板创建LAMP/LNMP系统和建站图文

    在国庆节后老 左有看到原phpStudy面板新的Linux面板系统更新发布取名小皮面板(phpStudy Linux系统初次体验 – 一键安装phpStudy面板查看功能),初次体验这款面板之后我们肯 ...

  3. 小皮php面板mysql配置_体验phpStudy小皮面板创建LAMP/LNMP系统和建站图文

    在国庆节后老 左有看到原phpStudy面板新的Linux面板系统更新发布取名小皮面板(phpStudy Linux系统初次体验 - 一键安装phpStudy面板查看功能),初次体验这款面板之后我们肯 ...

  4. PHP小皮使用,Phpstudy(小皮面板) nginx 解析漏洞

    一.Phpstudy(小皮面板)简介: PhpStudy国内12年老牌公益软件,集安全,高效,功能与一体,已获得全球用户认可安装,运维也高效.支持一键LAMP,LNMP,集群,监控,网站,FTP,数据 ...

  5. phpstudy(小皮面板)Deepin安装脚本

    https://www.xp.cn/linux.html#install-showCentos安装脚本 yum install -y wget && wget -O install.s ...

  6. 【漏洞复现】phpStudy 小皮 Windows面板 RCE漏洞

    文章目录 前言 一.漏洞描述 二.漏洞复现 前言 本篇文章仅用于漏洞复现研究和学习,切勿从事非法攻击行为,切记! 一.漏洞描述 Phpstudy小皮面板存在RCE漏洞,通过分析和复现方式发现其实本质上 ...

  7. 小皮面板phpstudy的MYSQL服务无法启动_ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)

    小皮面板phpstudy的MYSQL服务无法启动_ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) 今天 ...

  8. php 开发 web面板,phpstudy linux web面板(小皮面板)V0.2版本正式发布

    小皮面板是什么? 小皮面板,是由phpStudy官方团队针对Linux服务器开发推出的一款服务器环境搭建以及管理工具. 可以通过Web端方便.快速的搭建和管理服务器环境,并加入了强大的安全防护功能,提 ...

  9. 小皮面板PhpStudy下的MySQL无法启动解决方法

    小皮面板PhpStudy下的MySQL无法启动解决方法 今天启动小皮面板后发现MySQL5.7.26无法启动,进入\MySQL5.7.26\bin目录下出现报错信息: # mysql -u root ...

最新文章

  1. 技术解析系列 阿里 PouchContainer 资源管理探秘
  2. linux挂载磁盘分区,Linux 新磁盘分区与挂载
  3. linux 编译opencv 慢,opencv4.0 cuda10 编译速度太慢
  4. Python--简单的端口扫描脚本
  5. 渗透测试小马(一句话)篇
  6. 实用小技巧(一):UIScrollView中上下左右滚动方向的判断
  7. python工作状态_[Python设计模式] 第16章 上班,干活,下班,加班——状态模式
  8. 动态规划 —— 线性 DP —— 序列问题
  9. vuejs 指令封装 button 加载效果_这些Vue自定义指令,让你的项目开发爽到爆
  10. python是什么意思啊-星号*在Python中是什么意思?
  11. 5分钟轻松学Python:4行代码写一个爬虫
  12. Python学习笔记020——数据库基本操作
  13. 应用系统架构设计[转]
  14. 无法定位程序输入点 except_python自制王者荣耀抽卡程序
  15. 新英格兰10机39节点matlab建模,ieee10机39节点系统数据
  16. 基于matlab的信源编码pcm,信源编码仿真实现
  17. Hexo+阿里云服务器搭建属于自己的博客
  18. 《平台战略:正在席卷全球的商业模式革命》有感
  19. 生产制造业如何谋求数字化转型?需要哪些信息化系统做支撑?
  20. 前端学习笔记01---HTML5、CSS3、移动端前端基础学习知识点合集

热门文章

  1. 数据恢复-SQL被注入攻击程序的应对策略(ORA-16703)
  2. 云图说|初识ModelArts开发者生态社区——AI Gallery
  3. 人少钱少需求多的新项目该怎么带?看到这篇我心里有底了!
  4. 华为云瑶光:打通云边端界限,为企业云上业务带来最优解
  5. 云图说|华为云数据复制服务 打造不一样的用户权限迁移
  6. #化鲲为鹏,我有话说# 鲲鹏云服务器的使用小技巧之SSH(一)
  7. ModelArts微认证零售客户分群知识点总结
  8. python 时间模块 time datetime calendar
  9. 【Python3网络爬虫开发实战】6.4-分析Ajax爬取今日头条街拍美图
  10. linux shell的组成,理解Linux中子shell的概念