Support » Plugin: WP2Cloud » To use a separate Media Server

Viewing 1 replies (of 1 total)
  • Plugin Author Artem Livshits


    Hi Daniel,

    To get a Media Server running on your host, you need to be able to run cron jobs and make sure that running background jobs is compatible with the terms of service.

    Install MySQL

    Log into the server (use SSH or PuTTY – your hoster can help you with that). Then run the following commands (I’m going to use oblaksft as the user name and 5.5.30 as MySQL version, substitute it correspondingly).

    tar xzf mysql-5.5.30-linux2.6-x86_64.tar.gz
    ln -s mysql-5.5.30-linux2.6-x86_64/ mysql
    cd ~/mysql/data
    nano my.cnf

    Put the following content into my.cnf:


    … continue installation

    cd ~/mysql
    scripts/mysql_install_db --defaults-file=data/my.cnf
    bin/mysqld_safe --defaults-file=data/my.cnf &

    If everything is ok, you’ve got your MySQL server running.

    Now, to make it start on server reboot, run crontab -e and add the following line:

    @reboot /home/oblaksft/mysql/bin/mysqld_safe --defaults-file=/home/oblaksft/mysql/data/my.cnf &

    Deploy ClouSE

    Get ClouSE from and upload it to the home directory.

    Then deploy it using the following commands:

    tar xzf clouse-1.0b.1.7-linux-x64.tar.gz
    cd clouse-1.0b.1.7-linux-x64
    cp ~/mysql/lib/plugin
    cp ~/mysql/lib/plugin
    cd ~/mysql/lib/plugin
    ln -s

    Configure ClouSE

    Append the following lines to ~/mysql/data/my.cnf (you can use nano ~/mysql/data/my.cnf to edit it):


    (substitute mybucket with your bucket name and the Access and Secret Key information with the real keys separated with colon).

    Connect to Media Server using the following command:

    mysql --defaults-file=~/mysql/data/my.cnf -u root

    and run the following statements:

    CREATE DATABASE wordpress_clouse;

    If everything is successful, you’ve got your Media Server up and running! If you run into any issues, check out

    Point WordPress to the Media Server

    Edit wp-config.php and add the following lines:

    // ** MySQL media server settings ** //
    /** The name of the database for WordPress media files */
    define('MEDIA_DB_NAME', 'wordpress_clouse');
    /** MySQL database username */
    define('MEDIA_DB_USER', 'root');
    /** MySQL database password */
    define('MEDIA_DB_PASSWORD', '');
    /** MySQL hostname */
    define('MEDIA_DB_HOST', 'localhost:/home/oblaksft/mysql/data/mysqld.sock');

    (substitute oblaksft with your user name).

Viewing 1 replies (of 1 total)
  • The topic ‘To use a separate Media Server’ is closed to new replies.