CentOS 6.5 php原始碼安裝1.0版
groupadd www
useradd -g www -s /sbin/nologin -M www
yum install -y freetype-devel libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg libjpeg-devel libpng libpng-devel
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-opcache --enable-sockets --enable-xml --enable-mbstring --enable-soap --enable-zip --enable-bcmath --with-gettext --with-openssl --with-zlib --with-curl --with-gd --with-freetype-dir=/usr/include/freetype2/ --with-zlib-dir=/usr/lib --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-mhash --with-apxs2=/usr/local/apache/bin/apxs
make
make install
cp php.ini-development /usr/local/php/etc/php.ini
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm
chkconfig --add php-fpm
service php-fpm start
service php-fpm restart
vim ~/.bash_profile
PATH=$PATH:$HOME/bin:/usr/local/php/bin
~/.bash_profile
php -v
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/2001/viewspace-2801823/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Mysql5.6 for Centos6.5原始碼編譯安裝MySqlCentOS原始碼編譯
- CentOS6.5安裝pipCentOS
- CentOS6.5 安裝opensslCentOS
- CentOS6.5安裝ScrapyCentOS
- CentOS 6.5-安裝Python 2.7.11CentOSPython
- centos7.4原始碼安裝php,swoole,nginx,redis,mariadbCentOS原始碼PHPNginxRedis
- 3.1-centos6.5下安裝dockerCentOSDocker
- CentOS6.5安裝python3.7CentOSPython
- CentOS6.5安裝sqlite3CentOSSQLite
- CentOS 6.5下快速安裝MySQL 5.7.17CentOSMySql
- centos6.5上安裝mysql 5.7.20CentOSMySql
- CentOS6.5安裝ElasticSearch6.2.3CentOSElasticsearch
- 原始碼安裝Nginx和PHP原始碼NginxPHP
- CentOS7原始碼安裝NginxCentOS原始碼Nginx
- CentOS 7 原始碼安裝 Zabbix 6.0CentOS原始碼
- CentOS 原始碼安裝 PHP7.2.4 並新增 swoole 2.1.1 擴充套件CentOS原始碼PHP套件
- CentOS6.5安裝zookeeper-3.4.5(單機)CentOS
- Linux安裝rabbitmq簡單教程(Centos6.5)LinuxMQCentOS
- CentOS7安裝php、安裝MySqlCentOSPHPMySql
- CentOS6.9原始碼編譯安裝nginx+php7+mysql環境CentOS原始碼編譯NginxPHPMySql
- CentOS原始碼安裝、配置Nagios(core)+PluginsCentOS原始碼iOSPlugin
- CentOS6.5安裝kafka-2.10-0.8.2(單機)CentOSKafka
- CentOS 7 安裝 PHP 7.2CentOSPHP
- centos PHP 編譯安裝CentOSPHP編譯
- CentOS 7 安裝PHP 5.4.16CentOSPHP
- centos7.2原始碼安裝Apache2.4CentOS原始碼Apache
- Centos8.2原始碼安裝ffmpeg4.3.1CentOS原始碼
- CentOS 6.5中安裝使用dstat資源統計工具CentOS
- CentOS 7 完全解除安裝PHPCentOSPHP
- centos7下安裝phpCentOSPHP
- PHP7 原始碼安裝 swoole 全流程PHP原始碼
- CentOS7.X原始碼安裝MySQL-5.7.18CentOS原始碼MySql
- Centos7下原始碼編譯安裝apacheCentOS原始碼編譯Apache
- Centos7安裝(四)抓包工具wireshark原始碼編譯安裝CentOS原始碼編譯
- CentOS 7 yum 安裝 PHP7.3CentOSPHP
- centos7.6安裝php7.3CentOSPHP
- CentOS6.10安裝PHP7.3CentOSPHP
- Centos 編譯安裝 PHP7.4.7CentOS編譯PHP