php7安装----

WBOY
Libérer: 2016-06-23 13:08:21
original
790 Les gens l'ont consulté

php7安装,

从php.net下载最新php-7.0.5

解压,进入到解压目录


./configure --prefix=/usr/local/php-7.0.5 - --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-gd --with-iconv --with-zlib --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-fpm --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-session --with-mcrypt --with-curl --with-jpeg-dir --with-freetype-dir  --with-bz2 --with-config-file-path=/usr/local/php-7.0.5 --with-apxs2


解释 : --prefix=/usr/local/php-7.0.5 是将php安装目录,--with-config-file-path配置php.ini文件位置,-with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd 开启mysql 支持,一定不能忘记了。--with-apxs2加上这句将生成libphp7.so这个文件,将这个文件移动到 /usr/libexec/apache2/libphp7.so,然后在apache的配置文件httpd.conf里加入这样一句 

LoadModule php7_module /usr/libexec/apache2/libphp7.so
Copier après la connexion

如果在./configure的时候不知道怎么写参数噢,使用./configure --help查看

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!