wordpress 离线升级

aabite.com 不知道是被谁盯上了,被黑了。服务器懒得折腾,换到了virmach,结果,昨天收到邮件说,IO 超了,vps被shutdown。

今天去看了一下,重启vps,就又可以访问了,可是,刚起来Apache,就一大堆的访问,觉得是不是被当成中间代理了。

把aabite.com 下线,充Apache disable

然后下载了最新的wordpress 包,原wordpress里面,删除wp-admin和wp-includes,然后,从新的wordpress里面拷贝过来,

wordpress根目录下的文件,全部替换成最新的。

查看一下wp-config-sample.php,确认没什么更新的

重新启用aabite.com

访问时,发现wp-admin页面进不去

log 发现

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 3958207 bytes) in /var/www/aabite.com/wp-includes/wp-db.php on line 2066

解决办法:

参考 https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/

即 

define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

重新访问即可。

wordpress 数据库链接失败

今天访问网站,才发现直接提示数据库链接失败

查看mysql的

2019-01-21T03:23:15.998898Z 15638 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed
2019-01-21T03:23:15.999066Z 15638 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed
2019-01-21T03:23:22.791382Z 15639 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed
2019-01-21T03:23:22.791579Z 15639 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed
2019-01-21T03:23:22.791753Z 15639 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed

参考:https://stackoverflow.com/questions/8843776/mysql-table-is-marked-as-crashed-and-last-automatic-repair-failed

 

server上用mysql 连接server

repair table wp_options' <table_name>;

image

刷新网站,搞定。

upgraded to wordpress 3.0

WordPress 3.0 released recently and showed that all is well.

I use the automatic upgrade in the control panel, it used almost only 2 seconds to upgrade.

the new lookout of the control panel:

image

hehe, the mac style, I like it .

not found others changed too much,upgrade smooth.

WordPress “wp to twitter” plugin “error shortening your URL”

The WP-to-Twitter plugin posts a Twitter status update from your WordPress blog using either the Cli.gs or Bit.ly URL shortening services to provide a link back to your post from Twitter.

 

Now, I found that there’s a Error message:

There’s been an error shortening your URL! Visit your WP to Twitter settings page to get more information and to clear this error message.

when you enter the plugin options page:

image

other error reference :http://wordpress.org/support/topic/367742

even you change other url-shorten service,the error exists.

and now the new version 2.1.1 is released and error still exists.

no solution now,if you have know how ,post here. thanks.