Ubuntu 9.10 Desktop 執行symfony 時,出現警告訊息 PHP Warning: Cannot load module 'XCache' because conflicting module 'apc' is already loaded in Unknown on line 0

Ubuntu 9.10 Desktop 執行symfony 時,出現警告訊息
PHP Warning: Cannot load module ‘XCache’ because conflicting module ‘apc’ is already loaded in Unknown on line 0

解決辨法如下

1.修改此設定檔
vim /etc/php5/apache2/conf.d/apc.ini

2.在最前面加入冒號註解掉此行,存檔離開
;extension=apc.so

3.重新啟動apache2
/etc/init.d/apache2 restart

錯誤訊息不再出現了

在Browser用check_configuration.php檢查php的環境設定時有警告訊息
請在php.ini裏修改下面設定
short_open_tag = Off
magic_quotes_gpc = Off

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s