Deprecated : Constant E_STRICT is deprecated in /www/wwwroot/system/core/Exceptions.php on line 75
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 101
Backtrace:
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 127
Backtrace:
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$benchmark is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$hooks is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$config is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$log is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$utf8 is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$uri is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$exceptions is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$router is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$output is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$security is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$input is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$lang is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$load is deprecated
Filename: core/Controller.php
Line Number: 78
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$db is deprecated
Filename: core/Loader.php
Line Number: 390
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated
Filename: database/DB_driver.php
Line Number: 371
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 132
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 290
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 164
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 233
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 313
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 284
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 291
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 306
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 316
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 317
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 318
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 319
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 377
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: drivers/Session_files_driver.php
Line Number: 108
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_start(): Session cannot be started after headers have already been sent
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Detail::$session is deprecated
Filename: core/Loader.php
Line Number: 1279
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$benchmark is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$hooks is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$config is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$log is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$utf8 is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$uri is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$exceptions is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$router is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$output is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$security is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$input is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$lang is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$load is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$db is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$session is deprecated
Filename: core/Loader.php
Line Number: 925
Backtrace:
File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view
File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display
File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once
编译安装PHP7.1.6-文章详情-小白的笔记本
编译安装PHP7.1.6
作者:小白鱼鱼 来源:原创 发布:2019-05-30 阅读:1631
如需转载此文,请注明原文转载地址,以尊重原创人员!
标签:php,编译安装
首先下载PHP的安装包:
http://php.net/downloads.php
然后解压安装:
# tar zxvf php-7.1.29.tar.gz # cd php-7.1.29
编译参数:
./configure --prefix=/usr/local/php7 --with-apxs2=/usr/sbin/apxs --with-libiconv-prefix=/usr/local/lib --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-jpeg-dir --with-png-dir --with-xmlrpc --with-xsl --with-zlib --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --enable-zip
其中:--prefix=/usr/local/php7 是PHP的安装路径
--with-apxs2=/usr/local/apache/bin/apxs 是用来整合Apache
--with-libiconv-prefix=/usr/local/lib 是PHP的依赖库
在make之前需要改一下Makefile
#vim Makefile
找到:EXTRA_LIBS = -lcrypt -lz …… -lcrypt 这行,在这行末尾添加-liconv
然后在进行make && make install
可能出错:
Generating phar.phar
/usr/local/src/php-5.4.9/sapi/cli/php: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
解决的方法如下:
#vi /etc/ld.so.conf
在里面加上一行
/usr/local/lib
2.然后运行/sbin/ldconfig
#/sbin/ldconfig
编译make
#make ZEND_EXTRA_LIBS='-liconv'
抛错:
Generating phar.phar
chmod: cannot access `ext/phar/phar.phar': No such file or directory
make: [ext/phar/phar.phar] Error 1 (ignored)
Build complete.
Don't forget to run 'make test'.
此处可以忽略 不过解决办法如下
#cd ext/phar/
#cp ./phar.php ./phar.phar
在新版本安装完成以后需要更改apache的配置文件httpd.conf
#LoadModule php5_module modules/libphp5.so LoadModule php7_module modules/libphp7.so
在这需要把之前PHP5的模块注释掉,不然Apache会起不来。
最后重启Apache就可以了。
现在再使用php -v 查看PHP版本号时还是会显示之前老的版本号
这样就需要更改一下环境变量:
编辑profile文件
#vim /etc/profile
在文件最后添加:export PATH="/usr/local/php7/bin:$PATH"
重新加载文件就可以了
#source /etc/profile
这样再查看PHP版本号就没有问题了。可以将之前的老版本的PHP删掉。
↑