WordPress Migration to VPS – 2

I recently moved my wordpress blog from a shared hosting to linode VPS. Migration was smooth except few tiny problems. One of them is doing updates to wordpress, plugins or themes.

I started getting this error:

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed

To solve this problem first I had to configure an ftp server. Refer to this for more details:
Installing FTP Server in Ubuntu 12.04

Then I added the following to wp-config.php file

define('FTP_USER', 'user');
define('FTP_PASS', 'user-password');
define('FTP_HOST', 'localhost');

And it started working fine. No need restart the nginx or any other processes.

Replace OpenJDK with Oracle JDK

Replace OpenJDK with Oracle JDK. Here carefully replace the JDK path according to your installation

sudo apt-get purge openjdk-\*

sudo update-alternatives --install "/usr/bin/java" "java" "/home/ramanan/dev/sdk/jdk1.6.0_26/jre/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/home/ramanan/dev/sdk/jdk1.6.0_26/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/home/ramanan/dev/sdk/jdk1.6.0_26/bin/javaws" 1

sudo update-alternatives --set java /home/ramanan/dev/sdk/jdk1.6.0_26/jre/bin/java
sudo update-alternatives --set javac /home/ramanan/dev/sdk/jdk1.6.0_26/bin/javac
sudo update-alternatives --set javaws /home/ramanan/dev/sdk/jdk1.6.0_26/bin/javaws

Installing PostgreSQL in Ubuntu

sudo apt-get install postgresql
sudo apt-get install pgadmin3

Now basic postgres server and gui client tool is installed

Let’s login to default user ‘postgres’ and add a password, Enter this command –

sudo -u postgres psql postgres

You get the psql command prompt and enter this command to add password for user ‘postgres’

postgres=# \password postgres

Then Ctrl + D to exit the postgres console

 

For additional contrib package

sudo apt-get install postgresql-contrib-9.1