Step 1 : Create a WordPress site that runs on Oracle cloud IaaS –
Here are we are considering running the word press blog on Oracle cloud. login to http://oracle.bitnami.com , setup a Multi Site from a Bitnami image , this would need REST URL of Compute Service from Cloud Service provider , this is wizard driven and must be easiest to do
Then the wordpress site will be running as http://some-ip-address example http://129.144.182.XX/
Step 2 :Buy a Domain Name from Hosting Service Provider
Buy a Domain name from service providers like godaddy or hostindia.net or any other company
Create A Record Entry in DNS Panel example my domain name is cloud-blogs.com that maps to an ip adddress like 129.144.1XX.XX A Record will be cloud-blogs.com DNS Records cloud-blogs.com. A 129.144.1XX.XX www.cloud-blogs.com.
Create CNAME Entry my CNAME will be cloud-blogs.com.
Step 3 :SSH to Bitnami Console
SSH to Bitnami and edit .htaccess and wp-config.php
chmod 700 bitnami-opc-youridmdomain.pem ssh -i bitnami-opc-youridmdomain.pem [email protected]
vi .htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{HTTP_HOST} ^cloud-blogs.com$ [NC]
RewriteRule ^(.*)$ http://cloud-blogs.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
Now we would need to edit wp-config.php in same directory
most important lines are below
define(‘WP_DEBUG’, false);
#define(‘WP_HOME’,’cloud-blogs.com‘);
#define(‘WP_SITEURL’,’cloud-blogs.com‘);
#define(‘NOBLOGREDIRECT’,”);
/* That’s all, stop editing! Happy blogging. */
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘cloud-blogs.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
Finally you would need to configure domain
cd /opt/bitnami/apps/wordpress
sudo ./bnconfig –machine_hostname cloud-blogs.com
if you FTP wp-config.php you will have challenges with File Permissions so to fix this , SSH to WordPress Instance and do the following
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs
Now welcome to my wordpress blog cloud-blogs.com for more how to videos and blog contents