PHP 編譯安裝

來源:互聯網
上載者:User

標籤:free   math   cal   evel   openldap   注意   ini   cli   pre   

PHP的安裝 ===============安裝PHP> wget http://cn2.php.net/get/php-7.1.6.tar.gz> tar zxvf php-7.1.6.tar.gz> ./configure --help|grep --with // 查看相關模組// 串連 :http://www.cnblogs.com/HKUI/p/5137115.html> ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --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-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// 串連:http://www.jb51.net/article/55709.htm注意:如果報錯、請安裝如下的PHP依賴包、然後再次執行上面的安裝PHP> yum install gcc gcc-c++  make zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers libxslt libxslt-devel出現以下、PHP測試存在特性;Thank you for using PHP.然後編譯、安裝PHP> make && make install> cp /usr/local/src/php-7.1.6/php.ini-production /usr/local/php/etc> cd /usr/local/php/etc/> cp php.ini-production php.ini> cp php-fpm.conf.default php-fpm.conf然後修改設定檔> vim php.ini// 修改內容如下:// date.timezone = PRC// short_open_tag = On> vim php-fpm.conf// 修改內容如下:// pid = run/php-fpm.pid// error.log = log/php-fpm.log> cd /usr/local/php/sbin/> ./php-fpm// 不報錯、就說明啟動成功了

PHP 編譯安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.