Home > Backend Development > PHP Tutorial > linux - php如何开启--disable-xxx的功能?

linux - php如何开启--disable-xxx的功能?

WBOY
Release: 2016-06-06 20:45:03
Original
1139 people have browsed it

php version: 5.4
因为是开发机,系统镜像(Centos)是运维那边给的,开发环境都是统一的,估计是他们编译时把phar给disable了,导致在安装laravel时提示 Class 'Phar' not found, phpinfo里也显示 '--disable-phar'!

能否在不重新编译安装php的情况下--enable-phar,求指点!

回复内容:

php version: 5.4
因为是开发机,系统镜像(Centos)是运维那边给的,开发环境都是统一的,估计是他们编译时把phar给disable了,导致在安装laravel时提示 Class 'Phar' not found, phpinfo里也显示 '--disable-phar'!

能否在不重新编译安装php的情况下--enable-phar,求指点!

为什么要不重新编译呢,就重新编译就好。如果自己没权限的话,就叫运维给你权限,不肯给你权限的话就让他帮你编译,选择收紧权限就必须满足相关人员正当的需求。

如果运维又不肯给你权限,又不帮你重新编译,就告诉老大运维影响你正常工作,让老大帮你解决。如果你自己是老大,那就骂运维一顿然后让他编译。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template