简体   繁体   English

在Centos for PHP 7上安装mod_php

[英]Install mod_php on Centos for PHP 7

I was using Chef to provision Apache with PHP module using the httpd cookbook . 我正在使用Chef使用httpd cookbook为Apache配置PHP模块。 However, installing mod_php with that cookbook would install the PHP 5 module , even though I had remi set up to install PHP 7 ( php -v outputs version 7.1). 但是,安装mod_php与该cookbook将安装PHP 5模块,即使我有remi设置安装PHP 7( php -v输出版本7.1)。

How do I manually install (using yum or something) Apache PHP 7 module ( php7_module ) on Centos 6.7 ? 如何在Centos 6.7上手动安装(使用yum或其他)Apache PHP 7模块( php7_module )?

It is installing PHP5 because that cookbook is suppose to support only upto that. 它正在安装PHP5,因为该烹饪书假设只支持它。 If you want a change, you can go and change/update/wrapper the module_helper.rb file for your environment and test it out. 如果您想要进行更改,可以为您的环境更改/更新/包装module_helper.rb文件并进行测试。

https://github.com/chef-cookbooks/httpd/blob/master/libraries/httpd_module.rb https://github.com/chef-cookbooks/httpd/blob/master/libraries/httpd_module.rb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM