2013-08-20 71 views
0

當試圖安裝apc時,我的服務器崩潰了。/var/log/syslog sais:服務器版本不兼容性安裝apc

Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23765]: Upgrading MySQL tables if necessary. 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: Looking for 'mysql' as: /usr/bin/mysql 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: Error: Server version (5.5.31-0ubuntu0.12.04.2) does not match with the version of 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: the server (5.5.32) with which this program was built/distributed. You can 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: use --skip-version-check to skip this check. 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: FATAL ERROR: Upgrade failed 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23793]: Checking for insecure root accounts. 
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23798]: Triggering myisam-recover for all MyISAM tables 

你能幫我嗎? 這已刊登於serverfault.com,但沒有人看後...

回答

0

重新安裝VPS對我來說是唯一解決問題的方法。

0

APC不是建立您的機器上,似乎你正在使用的二進制文件不兼容的存儲庫。你可以自己建立APC(從http://pecl.php.net/package/APC下載源代碼並編譯下面的http://svn.php.net/viewvc/pecl/apc/trunk/INSTALL?view=markup),或者使用PECL爲你做這件事,如果你已經安裝了它。

sudo pecl install apc 
+0

安裝php-pear和php5-dev後,我做pecl安裝apc,然後拋出下一條消息:http://pastebin.com/A6RnSfCR – Manolo

+0

參見http://cogo.wordpress.com/2010/07/19/pcre -h-no-such-file-or-directory-when-installing-apc-php-extension /針對該問題 –

+0

現在,在執行apt-get install libpcre3-dev和pecl install apc後引發下一個錯誤:http://pastebin.com/rJgCmeJm – Manolo