1. 下載原始碼
<code>$ mkdir /usr/downloads $ wget -c http://cn2.php.net/distributions/php-5.6.20.tar.gz $ tar -xvf php-5.6.20.tar.gz $ mv php-5.6.20 /usr/local/src $ cd !$ & cd php-5.6.20 </code>
2. 閱讀安裝指導
<code>$ ls -also $ less README $ less INSTALL </code>
3. 安裝依賴套件
<code>$ yum install apr apr-util apr-devel apr-util-devel prce lynx </code>
4. 安裝httpd
<code>$ wget -c http://apache.fayea.com//httpd/httpd-2.4.20.tar.gz $ tar -xvf httpd-2.4.20.tar.gz $ cd httpd-2.4.20 $ ./configure \ --prefix=/usr/local/programs/apache2 \ --enable-rewrite \ --enable-so \ --enable-headers \ --enable-expires \ --with-mpm=worker \ --enable-modules=most \ --enable-deflate \ --enable-module=shared $ make $ make install $ cd /usr/local/programs/apache2 $ cp bin/apachectl /etc/init.d/httpd ## 复制启动脚本 $ /etc/init.d/httpd start ## 启动apache服务器,访问http://localhost/ $ egrep -v '^[ ]*#|^$' /usr/local/apache2/conf/httpd.conf | nl ## 查看apache服务器的配置 ## 将apache加入系统服务 vi /etc/rc.d/rc.local ``` /usr/local/programs/apache2/bin/apachectl start ``` $ cat /etc/rc.local </code>
4. 安裝postgreegre
事*
1. 啟動時,不需要手動指定設定檔* 2. php初始化www目錄設定
* 3. php 使用者、權限管理等
'prep' -numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i