<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # 安裝php程序環境 >[info] **注意:**安裝php之前,需要保證apache和mysql的安裝 [TOC] ## 檢查apache及MySQL的安裝情況 **檢查安裝路徑** `ls -ld /usr/local/mysql` `ls -ld /usr/local/apache` **檢查端口占用** `netstat -tunpl|grep '3306|80'` **測試訪問情況** `/usr/loca/apache/bin/apachectl -v` `wget 127.0.0.1` `curl -I localhost` ## 檢查安裝php所需lib庫文件   php程序在開發時會調用一些諸如GD等函數庫,因此需要確認下面的lib庫是否已經安裝。 `rpm -qa libxml libjpeg freetype gd curl libiconv zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel gd-devel curl-devel` 也可以執行`rpm -qa zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel`安裝所需依賴庫文件頭信息。 ## 安裝libiconv庫 ~~~ mkdir -p /application/tools cd /usr/local/src && wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz tar xf libiconv-1.14.tar.gz && cd libiconv-1.14 ./configure --prefix=/application/tools/libiconv-1.14 make && make install ~~~ **創建軟連接(編譯php時會使用到該路徑)** `ln -s /application/tools/libiconv-1.14 /usr/local/libiconv` ## 開始安裝php ### 獲取穩定版本php ~~~ cd /usr/local/src && wget -O php-5.6.16.tar.gz http://cn2.php.net/get/php-5.6.16.tar.gz/from/this/mirror tar xf php-5.6.16.tar.gz && cd php-5.6.16 ./configure \ --prefix=/application/tools/php5.6.16 \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-xmlrpc \ --with-openssl \ --with-zlib \ --with-freetype-dir \ --with-gd \ --with-jpeg-dir \ --with-png-dir \ --with-iconv=/usr/local/libiconv \ --enable-short-tags \ --enable-sockets \ --enable-soap \ --enable-mbstring \ --enable-static \ --enable-gd-native-ttf \ --with-curl \ --with-xsl \ --enable-ftp \ --with-libxml-dir make && make install ~~~ >[info] 特別說明,加入以下三個參數為了使用`nagios`的PHP環境。 他們分別是 `--enable-sigchild --enable-pcntl --enable-bcmath` ## 配置php ~~~ ln -s /application/tools/php5.6.16 /usr/local/php ls -l /usr/local/php ~~~ ### 拷貝適合的php.ini配置文件 `cd /usr/loca/src/php-5.6.16/php.ini-production /application/tools/php5.6.16/lib/php.ini` ## apache支持php ### 修改apahce配置文件 ~~~ cd /usr/local/apache/conf && cp httpd.conf httpd.conf.$(date +%Y%m%d) vim http.conf # 加入如下代碼 AddType application/x-httpd-php .php .phtml ~~~ ### 檢查并重載apache配置 ~~~ apachectl -t apachectl graceful netstat -tunpl|grep 80 ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看