作者 主題: Linux下建構zend framework的環境問題  (閱讀 3692 次)

0 會員 與 1 訪客 正在閱讀本文。

juangyh

  • 可愛的小學生
  • *
  • 文章數: 24
    • 檢視個人資料
Linux下建構zend framework的環境問題
« 於: 2009-02-13 23:06 »
參考http://phpeye.com/zf/requirements.extensions.html 所安裝的模組

這是PHP 5.2.8有安裝的模組

/usr/local/php/bin/php -m                 
[PHP Modules]
apc
bcmath
ctype
curl
date
dom
filter
gd
hash
iconv
json
libxml
magickwand
mbstring
mcrypt
memcache
mhash
mime_magic
mysql
mysqli
pcre
PDO
pdo_mysql
pdo_sqlite
posix
Reflection
session
SimpleXML
soap
sockets
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
Zend Optimizer
zlib

[Zend Modules]
Zend Extension Manager
Zend Optimizer

==========================
apache 2.2.11所裝的模組
[root@localhost htdocs]# /usr/local/apache2/bin/apachectl -l
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_deflate.c
  mod_log_config.c
  mod_env.c
  mod_expires.c
  mod_setenvif.c
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgid.c
  mod_vhost_alias.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_speling.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

httpd.conf也有啟用
AllowOverride All
.htaccess

只要是application/
        controllers/  下面都都顯示404 error

之前是用Xampp在linux下測試網頁的都沒問題
自己要配置環境(tarball安裝)就出錯了
不知道有無前輩有這方面經驗可分享的...感謝

fillano

  • 鑽研的研究生
  • *****
  • 文章數: 526
    • 檢視個人資料
回覆: Linux下建構zend framework的環境問題
« 回覆 #1 於: 2009-02-13 23:27 »
我記得有一些rewrite規則要設定吧?
Sapere aude! Habe Mut, dich deines eigenen Verstandes zu bedienen! ist also der Wahlspruch der Aufklärung.

juangyh

  • 可愛的小學生
  • *
  • 文章數: 24
    • 檢視個人資料
回覆: Linux下建構zend framework的環境問題
« 回覆 #2 於: 2009-02-14 00:13 »
目前有做下列設定

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

micmic3

  • 俺是博士!
  • *****
  • 文章數: 1693
    • 檢視個人資料
回覆: Linux下建構zend framework的環境問題
« 回覆 #3 於: 2009-02-18 16:58 »
是用 fedora 嗎?如果是 SELINUX 先關掉