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).
cd
wget https://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:
[client]
socket=/home/oblaksft/mysql/data/mysqld.sock
[mysqld]
basedir=/home/oblaksft/mysql
datadir=/home/oblaksft/mysql/data
socket=/home/oblaksft/mysql/data/mysqld.sock
skip-networking
… 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 https://www.oblaksoft.com/downloads/ and upload it to the home directory.
Then deploy it using the following commands:
cd
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):
clouse_cloud_data_url=s3://s3.amazonaws.com/mybucket/db0
clouse_cloud_auth_key=MYACCESSKEYID:MySeCRetKeY
(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 https://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).