2013-06-03 23 views
3

我有一個項目在我的本地主機,已經運行,修改後php.ini我的XAMPP服務器[在Windows 7上運行](添加:extension=php-intl.dll)。 但當我這個項目上傳到我的GoDaddy主機,它doesn't作品,並得到以下錯誤:ZF2致命錯誤:Class'Locale'找不到在/home/...../Zend/I18n/Translator/Translator.php在線228

Fatal error: Class 'Locale' not found in /home/content/41/9674641/html/library/zend.2.0.4/Zend/I18n/Translator/Translator.php on line 228 

GoDaddy的託管細節:

  1. PHP版本5.3
  2. 操作系統:Linux
  3. i386-redhat-linux-gnu

Zend框架的細節:

  1. Zend庫:2.0.4

從來就嘗試過,他們說以下鏈接的內容:

  1. http://support.godaddy.com/help/article/1085/can-i-add-a-php-initialization-file-to-my-hosting-account?locale=en
  2. http://support.godaddy.com/help/article/5647/why-isnt-my-phpini-file-taking-effect?locale=en&ci=46061

另外,我打電話給全天候goDaddy支持,他們建議我在根目錄中創建一個php5.ini文件,然後,他們告訴我停止所有的Web服務(cPanel/Stats & Monitors/System Processes/end web),但他們沒有告訴我需要在php5.ini文件中包含什麼內容。

我正在閱讀一些鏈接,因爲我的本地主機是一個窗口,添加extension = php-intl.dll到php.ini文件工作。所以我試圖包括在我的godaddy linux服務器中:extension = php-intl.so但是不起作用(兩個擴展名都不是php-intl.dll)。

goDaddy託管的問題始於我開始使用ZF2 FORM時。

更新:

1)從來就配齊了PHP5。INI GoDaddy的服務器(我已經對我的主機的根副本)使用油灰cp /web/conf/php5.ini /var/chroot/home/content/41/9674641/html

然後我讀它,我無法找到「國際」擴展,而不是這個,我唯一能找到的:

; Windows Extensions 
; Note that ODBC support is built in, so no dll is needed for it. 
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) 
; extension folders as well as the separate PECL DLL download (PHP 5). 
; Be sure to appropriately set the extension_dir directive. 

;extension=php_mbstring.dll 
;extension=php_bz2.dll 
;extension=php_curl.dll 
;extension=php_dba.dll 
;extension=php_dbase.dll 
;extension=php_exif.dll 
;extension=php_fdf.dll 
;extension=php_filepro.dll 
;extension=php_gd2.dll 
;extension=php_gettext.dll 
;extension=php_ifx.dll 
;extension=php_imap.dll 
;extension=php_interbase.dll 
;extension=php_ldap.dll 
;extension=php_mcrypt.dll 
;extension=php_mhash.dll 
;extension=php_mime_magic.dll 
;extension=php_ming.dll 
;extension=php_mssql.dll 
;extension=php_msql.dll 
;extension=php_mysql.dll 
;extension=php_oci8.dll 
;extension=php_openssl.dll 
;extension=php_oracle.dll 
;extension=php_pgsql.dll 
;extension=php_shmop.dll 
;extension=php_snmp.dll 
;extension=php_sockets.dll 
;extension=php_sqlite.dll 
;extension=php_sybase_ct.dll 
;extension=php_tidy.dll 
;extension=php_xmlrpc.dll 
;extension=php_xsl.dll 

2)GoDaddy的迴應我的正式支持請求(票):

Thank you for contacting Online Support

I understand you are wanting to get Internationalization extension on to your hosting account. At this time these are not supported in our systems at this time. We are going to review this with our developers to more information. You may receive an email us down the road with addition information about this.

Please let us know if we can assist you in any other way.

現在,我想,我有兩個問題:

A)包括行以啓用擴展(我不知道如何):

也許可能是:

extension_dir=/var/chroot/home/content/41/9674641/html/library/extensions/php-intl/usr/lib64/php/modules 
extension="intl.so" 

乙)包括在某些位置延伸我的主機內(但我不知道如何):

也許我可以把擴展名的文件中:/var/chroot/home/content/41/9674641/html/library/extensions/php-intl

而且,我不知道在哪裏獲得擴展文件

C)有沒有已知的ZF2(骨架,庫..)更新解決這個問題?

請儘快幫助我。

回答

相關問題