How to upgrade WordPress via shell?

WP-linux

Step 1#

First make backup of the wordpress database and the wordpress blog installation directory :

mysqldump username_DBname > username_DBname.sql

tar -cvf public_html.tar public_html
OR
tar -cvf directoryname.tar directoryname

Step 2#

cd /directoryname (where wordpress installed)

Download latest wordpress CMS
wget http://wordpress.org/latest.tar.gz

follow all the steps as given below :

tar xfz latest.tar.gz
rm -rf ./wp-includes/
rm -rf ./wp-admin/
cd wordpress/
scp -rp * ../
cd ..
rm -rf ./wordpress/
rm -f latest.tar.gz

Step # 3: Change ownership to user now :

cd ..
chown user:user * -R

Step # 4: Run update Script :

Open a browser and run update script such as

http://domainname.com/wp-admin/upgrade.php

OR

http://domainname.com/directoryname/wp-admin/upgrade.php

That’s it !

PrewebHost Hosting Solutions.
Cheap & Affordable Hosting Service Provider Since 2010

Request exceeded the limit of 10 internal redirects?

Its really easy to resolve such issues by adding the below code under the .htaccess file of respective domain:

# .htaccess Fix for Infinite Loops
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} 400
RewriteRule .* – [L]

Thats it.

PrewebHost Hosting Solutions.
Cheap & Affordable Hosting Service Provider Since 2010

How to Reset Roundcube Password?

You can easily reset the RoundCube password using the below steps:

config file : /usr/local/cpanel/base/3rdparty/roundcube/config/db.inc.php
mysqladmin drop roundcube

mysqladmin create roundcube

mysql> delete from mysql.user where User = ’roundcube’;
Query OK, 0 rows affected (0.00 sec)

mysql> delete from mysql.db where User =’roundcube’;
Query OK, 1 row affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.05 sec)

mysql> CREATE USER ’roundcube’@’localhost’ IDENTIFIED BY ‘R4LTyq0M7jSkV1CL’;
Query OK, 0 rows affected (0.02 sec)

mysql>grant all privileges on roundcube.* to roundcube@localhost identified by ‘R4LTyq0M7jSkV1CL’;
Query OK, 0 rows affected (0.02 sec)

Thats it

PrewebHost Hosting Solutions.
Cheap & Affordable Hosting Service Provider Since 2010

1 33 34 35 36 37 38