ZendFramework運行環境配置

來源:互聯網
上載者:User

ZendFramework運行環境配置

2008-11-24 14:49:50

標籤:php
linux
zend
ZendFramework

原創作品,允許轉載,轉載時請務必以超連結形式標明文章 原始出處
、作者資訊和本聲明。否則將追究法律責任。http://kerry.blog.51cto.com/172631/114788 編譯PHP5.2.5
./configure --prefix=/usr/local/php              (注意使用續行符)
  --with-apxs2=/usr/local/apache/bin/apxs
  --with-mysql=/usr/local/mysql
  --with-mysqli=/usr/local/mysql/bin/mysql_config  --支援mysqli
  --with-libxml-dir=/usr/local/libxml2
  --with-png-dir=/usr/local/lib 
  --with-jpeg-dir=/usr/local/jpeg6 
  --with-zlib=/usr/local/zlib 
  --with-freetype-dir=/usr/local/freetype 
  --with-gd=/usr/local/gd2    
  --enable-mbstring=all
  --enable-ftp
  --enable-sockets    --支援mail
  --with-config-file-path=/usr/local/php
  --with-pdo-mysql=/usr/local/mysqlQ. The mysql driver is not currently installed
A. 解決是沒有安裝pdo-mysql這個擴充了,重新設定,加上--with-pdo-mysql=/usr/local/mysql/php.ini
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dllZendFrameworklinux下讓apache支援mod_rewrite模組
Posted Apr 23rd, 2008 by askie
如果你的伺服器apache還沒有安裝,那很簡單,在編譯apache時將 mod_rewrite模組編譯進去就可以,相關文檔可以在[url]http://man.chinaunix.net/newsoft[/url]
… ew/mod/mod_rewrite. html中找到。如果你的apache已經安裝好了,現在只想編譯出mod_rewrite.so模組,在apache中進行載入,下面我們就介紹這個方 法。1)首次安裝apache,在編譯時間增加–enable-rewrite選項。如./configure –prefix=/opt/apache –enable-so –enable-mods-shared=all –enable-rewrite –enable-cache2)增加mod_rewrite模組# find . -name mod_rewrite.c //在apache的源碼安裝目錄中尋找mod_rewrite.c檔案(2.2.8在目錄httpd-2.2.8/modules/mappers下)# cd PATH/to/mod_rewrite.c //進入包含mod_rewrite.c檔案的目錄# /opt/apache/bin/apxs -c mod_rewrite.c //apxs應指定絕對路徑,在你當前正在使用apache的bin目錄裡# /opt/apache/bin/apxs -i -a -n mod_rewrite mod_rewrite.la如果沒有什麼錯誤的話,應該在你的apache的modules目錄中編譯出一個mod_rewrite.so檔案。編輯httpd.conf檔案,確認httpd.conf中已經包含mod_rewrite.so的載入語句,如下:LoadModule rewrite_module modules/mod_rewrite.so
###################################################如果出現這個錯誤
Syntax error on line 329 of /usr/local/apache2/conf/httpd.conf:
Can`t loacte API module staructure `mod_rewrite_module` in file
/usr/local/apache2/modules/mod_rewrite.so:/usr/local/apache2/lib/libapr-
0.so.0:undefined symbol:mod_rewrite_module
修改http.conf
原來:httpd.conf裡面寫的mod_rewrite_module
改成 rewrite_module
 
如果重啟apache出現這個錯誤module rewrite_module is built-in and can`t be loaded
表示模組是內建的,不用再調入,注釋掉
#LoadModule rewrite_module modules/mod_rewrite.so
#####################################################檢查:[root@www httpd-2.2.8]# ../bin/apachectl configtest
Syntax OK這時,你的apache應該已經支援rewrite了。vicos註:完成之後,記得重啟伺服器apache。注意下一步,配置虛擬機器主機的時候要類似如下設定才可以生效:<VirtualHost *:80>
DocumentRoot /var/www/www/www.fastu.cn/
ServerName [url]www.fastu.cn[/url]

<Directory /var/www/www/www.fastu.cn/>
Options FollowSymLinks
AllowOverride All
order allow,deny
Allow from all
</Directory>
</VirtualHost>如果AllowOverride設定為none的話,apache會不讀取網站的.htaccess檔案!<VirtualHost 192.168.8.150:80>
    ServerAdmin services@3bsc.com

    DocumentRoot /var/www/xinma/
    ServerName [url]www.king.com[/url]

    ErrorLog logs/xinma-error_log
    CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/httpd/xinma/%y_%m_%d.access_log 86400" common
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
</VirtualHost>  

本文出自 “聆聽未來
” 部落格,請務必保留此出處http://kerry.blog.51cto.com/172631/114788

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.