phpstudy(小皮面板)和phpstudy2018 配置php的区别
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
<IfModule fcgid_module>
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
</IfModule>
最后配置域名的时候:

<VirtualHost *:>
DocumentRoot "D:\software\coding\php\phpstudy\PHPTutorial\WWW\ks"
ServerName ks.com
ServerAlias
<Directory "D:\software\coding\php\phpstudy\PHPTutorial\WWW\ks">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
DirectoryIndex index.php index.html login.html
</Directory>
</VirtualHost>
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

<VirtualHost *:>
DocumentRoot "D:/software/coding/php/phpstudy_191125/phpstudy_pro/WWW/ks"
ServerName ks.com
ServerAlias
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
<Directory "D:/software/coding/php/phpstudy_191125/phpstudy_pro/WWW/ks">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
DirectoryIndex index.php index.html login.html
</Directory>
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
ErrorDocument /error/.html
</VirtualHost>
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
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
phpstudy(小皮面板)和phpstudy2018 配置php的区别的更多相关文章
- linuxWeb环境安装——小皮面板不错的面板
安装环境为最新的:CentOS8.1.1911 linux的web环境安装,说白了,弄明白了就不难.为此阅读了多部文献,最先的是linux教程,重理论轻实践:之后,看了鸟哥的私房菜,有2本,每本都8 ...
- 微信小程序--代码构成---JSON 配置
在上一章中,我们通过开发者工具快速创建了一个 QuickStart 项目.你可以留意到这个项目里边生成了不同类型的文件: .json 后缀的 JSON 配置文件 .wxml 后缀的 WXML 模板文件 ...
- 【微信小程序开发】页面配置
app下的app.json文件是全局配置. app下的每一个page中,也可以配置.json文件. page中配置的内容是对应app中window配置项下的内容. page中的配置将覆盖window中 ...
- 微信小程序--消息推送配置Token令牌错误校验失败如何解决
微信开放第三方API接口, 申请地址: https://mp.weixin.qq.com/advanced/advanced?action=interface&t=advanced/inter ...
- 微信小程序目录结构与配置介绍
一.小程序结构目录 小程序框架提供了自己的视图层描述语言 WXML 和 WXSS,以及 JavaScript,并在视图层与逻辑层间提供了数据传输和事件系统,让开发者能够专注于数据与逻辑. 官网 1.1 ...
- 小程序的目录结构/配置介绍/视图层wxml数据绑定/双线程模型/小程序的启动流程
安装好微信小程序开发软件,创建项目 小程序文件结构和传统web对比 结构 传统web 微信小程序 结构 HTML WXML 样式 CSS WXSS 逻辑 Javascript Javascript 配 ...
- 微信小程序结构目录、配置介绍、视图层(数据绑定,运算,列表渲染,条件渲染)
目录 一.小程序结构目录 1.1 小程序文件结构和传统web对比 1.2 基本的项目目录 二.配置介绍 2.1 配置介绍 2.2 全局配置app.json 2.3 page.json 三.视图层 3. ...
- Linux小知识:sudo su和su的区别
Linux小知识:sudo su和su的区别 本文是学习笔记,视频地址:https://www.bilibili.com/video/av62836363 su是申请切换root用户,需要申请root ...
- 警惕phpstudy等开发神器使用默认配置可能带来的危险
0x00 前言 其实这个点早在之前,我就已经想到了,当时也觉得没啥就记在了我的印象笔记里. 而今天重新把这个点拿出来讲,主要是因为今天早上在温习nmap的时候,一不小心利用这个点,拿下了一位同事的电脑 ...
随机推荐
- 含有动态未知字段的 JSON 反序列化
一般来说,正常的 json 长这个模样: { 'Name': 'Bad Boys', 'ReleaseDate': '1995-4-7T00:00:00', 'Genres': [ 'Action', ...
- Redis分布式锁原理
1. Redis分布式锁原理 1.1. Redisson 现在最流行的redis分布式锁就是Redisson了,来看看它的底层原理就了解redis是如何使用分布式锁的了 1.2. 原理分析 分布式锁要 ...
- Linux命令head
1.命令简介 head (head) 用来显示档案的开头至标准输出中.如果指定了多于一个文件,在每一段输出前会给出文件名作为文件头.如果不指定文件,或者文件为"-",则从标准输入读 ...
- 【Maven】Maven中排除依赖、归类依赖、优化依赖
参考博文:Maven中排除依赖.归类依赖.优化依赖
- Sql 语句中 IN 和 EXISTS 的区别
IN 语句:只执行一次 确定给定的值是否与子查询或列表中的值相匹配.in在查询的时候,首先查询子查询的表,然后将内表和外表做一个笛卡尔积,然后按照条件进行筛选.所以相对内表比较小的时候,in的速度较快 ...
- Odoo启动运行参数(script运行参数,不是运行配置文件)
转载请注明原文地址:https://www.cnblogs.com/ygj0930/p/10826315.html 一:启动选项用在哪里 如果你是用Pycharm进行odoo二次开发的话,可以通过 R ...
- zabbix--告警消息内容更改
zabbix 告警消息内容更改 自带的消息内容模板发送出来的消息着实有点丑陋,再加之是英文,这就让我有点尴尬了. 如下默认的消息内容: 更改过后的效果: 操作步骤 编辑默认的Report proble ...
- 卓越Code团队SCRUM呕心沥血实践总结
卓越Code团队SCRUM呕心沥血实践总结 序言 所属课程 https://edu.cnblogs.com/campus/xnsy/2019autumnsystemanalysisanddesign ...
- input事件在进行模糊搜索时,用到的即时监测input的值变化的方法(即时搜索的input和propertychange方法)
做搜索功能的时候,经常遇到输入框检查的需求,最常见的是即时搜索,今天好好小结一下. 即时搜索的方案: (1)change事件 触发事件必须满足两个条件: a)当前对象属性改变,并且是由键盘或鼠标 ...
- “IOS11不再信赖WOSIGN证书”公众号运营者如何应对
ptd->_thandle = (uintptr_t)(-1); {{}/*** 传入需要的参数,设置给*/{}给Fragment添加newInstance方法,将需要的参数传入,设置到bund ...