Skip to main content

Amazon EC2 Bitnami Wordpress on Ubuntu Server installation Tips

1. How to access your WordPress Blog:


After you successfully lauched the instance, use the public DNS or IP address to connect your website:

The WordPress default user name is "user"

Password is generated randomly, and stored in the system log. You access the log at Actions > Instance Settings > Get system log.

After you login to WordPress dashboard, you may change your admin password, or add another user as administrator.

2. Connect to the Ubuntu server.


You should note that a public key is required to connect the server, so you'd better generate a new key when you start launching an instance, and download the the .pem file.

Putty need a private key to login, you need PuttyGen to generate a private key.

Login user name is "bitnami" with the private key.

3. Access to database using phpmyadmin from a browser.


The database can only be accessed from localhost, 127.0.0.1, so you need a open a tunnel to do that. Open a putty new session when you use Windows, fill in the host DNS and authorisation as described above, then, use connection > Tunnels command to add source port and destination, and click add.

While the tunnel is open, you could access the database from your browser, http://127.0.0.1:8888/phpmyadmin/. And the password is the same as WordPress admin password that is used to access to the control panel.

4. Add a domain name to your WordPress website.


Go to your domain registrar, and add a new A (adress), after couple of minutes (almost instantly), it become alive online. The good thing is WordPress can update the URL automatically, when you visit by custom url.

5. Upload files with SFTP


You also use the private key to connect your EC2 Ubuntu server, and upload your files. In my case, I use FileZilla, use "Edit > Settings" command to bring up the Configuration Settings, and within the "Connect > SFTP" use add keyfile command to select the private key file for the server. Please note that user name is "Bitnami", and logon type, choose "Ask for password", then when it asks for password, just confirm without a password.

6. Sendmail

At first, I tried phpmail() function to send email without success, the problem is that sendmail installed under the /usr/sbin/, I created a symlink to /usr/bin/, then it works:

$ sudo apt-get update
$ sudo apt-get install sendmail
$ sudo ln -s /usr/sbin/sendmail /usr/bin/sendmail

Some say that Amazon only allows 25 emails per month, but I am not sure about this number.

Comments

Blogger said…
You could be qualified to get a $1,000 Amazon Gift Card.
Blogger said…
BlueHost is ultimately one of the best web-hosting provider with plans for any hosting requirements.

Popular posts from this blog

How to Input Phonetic Symbols (IPA) in Google Docs

You can insert special characters by clicking "Insert" on the menu, then click the "Ω Special Characters", the choose "Latin" category from the drop-down menu, and then Phonetics (IPA) sub-category. Insert Special Characters in Google Docs There is a short-cut for inputting some IPA symbols which you use them frequently. Automatic Substitution in Google Docs similar to Auto Correct in MS Word. You can replace common acronyms, misspellings and other symbols. So you can set auto-replace for your IPA symbols, for example, "e<" for "ɛ", "o/" for "ø", "o>" for "ɔ" etc. Automatic Substitutions in Google Docs

Vodafone Router Configuration for Incoming Connection and other Services

This post is about specific Vodafone Home Broadband Router configuration for Incoming Connection and other service on your home computer. This is not a tutorial, and will not be going into details of the services and router configuaration, I just want to point out couple of points you need to pay attention to. 1. Port Forwarding. Vadafone Router has its own name for Port Forwarding, it's called Port Mapping under Port Management category.The picture below shows that I set up web server on my desktop, I map my local address on port 80; and I set up PPTP incoming connection by mapping local address on port 1723. Port Forwarding 2. Exposed Host. If you have set up Port Mapping, you still can't get what you want, then you have to put your device outside the Firewall, i.e. bypass Vodafone Connects (means Router) firewall, in a Demilitarised Zone (DMZ), using it's Exposted Host Function. Static NAT (Network Address Translation) means the Router will translate publi...

Pricing information is missing or not applicable

One of Google Play Books "Needs Action" issues is "Pricing information is missing or not applicable",  this is caused by the payment settings, you have to set up "Payment Profile", "Sale Territories", and "Currency Conversion" if you sell your book to the "WORLD". Some authors or publishers spend hours to tweak the Prices setting when they add new books, and feel very confused and frustrated, this happened to me too. Then I realized that you have to set up your Payment Method first, adding bank account for your payment profile. After that you wait for Google to deposit some cents to verify the bank account. You have to add sales territories as well, if the territory is WORLD, you have to TURN ON currency conversion, too. You have also to specify the On-Sale Date, although its help tips (when hover mouse on the question mark ? ) says "Leave this field blank if the book can be made available for sale on Google Play ...