To use a separate Media Server (2 posts)

  1. voisin50
    Posted 3 years ago #

    "To use a Media Server, first install and configure a MySQL server with ClouSE."
    1) Where should I install and configure this MySQL server?
    2) If I do not have permissions to install the Cloud Storage Engine (ClouSE) on the MySQL server (i.e. shared hosting) then how do I achieve this?

    Could you please clarify this solution.


  2. Artem Livshits
    Plugin Author

    Posted 3 years ago #

    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).

    wget http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.30-linux2.6-x86_64.tar.gz
    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 http://www.oblaksoft.com/downloads/ 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 clouse.so ~/mysql/lib/plugin
    cp ha_clouse-5.5.30.so ~/mysql/lib/plugin
    cd ~/mysql/lib/plugin
    ln -s ha_clouse-5.5.30.so ha_clouse.so

    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:

    INSTALL PLUGIN ClouSE SONAME 'ha_clouse.so';
    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 http://www.oblaksoft.com/documentation/troubleshooting/.

    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).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP2Cloud
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.