Thursday, August 12, 2010

Tera-WURFL PHP Mobile Phone Database

SkyHi @ Thursday, August 12, 2010
Fatal error: Class ‘ZipArchive’ not found in

這個問題是因無php沒有支援zip所造成,在網路上搜尋後,找到筆記:CentOS 5.2上php5如何安裝zipArchive extension (PECL) 以下轉載解決方法:


1.安裝yum的plugin: yum-priorities 


#yum install yum-priorities



2.編輯priorities.conf


#vi /etc/yum/pluginconf.d/priorities.conf


將以下內容


enabled = 1


修改成


enable = 1
check_obsoletes=1
priority=N


:wq



3.設定EPEL


#rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm



4.安裝zipArchive


#yum install php-pecl-zip



5.重新啟動httpd


#service httpd restart



REFERENCES

http://plus-now.com/?p=427