Install Wordpress blog on the dotcloud Platform

Source: Internet
Author: User
Tags install wordpress wordpress blog

Introduction: This is a detailed page for installing the Wordpress blog on the dotcloud platform. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 339593 'rolling = 'no'>
The dotcloud platform was still in the private beta phase some time ago and is now available for registration. You can open two free accounts

Services. A service is equivalent to a virtual machine and can be SSH, but there is no root limit. Even so, we can also

I am playing very well. If you want to build a blog, you can open a PHP service and a MySQL service. What

? Do I need to open another forum? Register another account! However, it is not easy to manage.

Next, let's talk about how to build a Wordpress blog under dotcloud. After all, WordPress is the most widely used in the blog,

The official team also provided relevant tutorials, but in English.

Step 1: Prepare

1. Apply for an account, this needless to say, you go to the http://wwww.dotcloud.com to apply for it.

2. Install dotcloud CLI (command line interface). This is used to create, release, and manage applications.

. Take Ubuntu 11.04 as an example.

First install easy_install:

$ Wget http://pypi.python.org/packages/source/s/setuptools/setuptools-

0.6c11.tar.gz

$ Tar-XF setuptools-0.6c11.tar.gz

$ Setuptools-0.6c11 CD

$ Sudo python2.6 setup. py install // replace python2.6

Python version (view with $ Python-V ).

Next, install dotcloud CLI:

$ Sudo easy_install Pip & sudo Pip install dotcloud // install Python-Pip to install

Dotcloud

3. Enter the API key

Enter a dotcloud command in the terminal. The simplest option is "dotcloud". the user name and password are displayed.

The API key. The user name and password are the email address and password used for registration. The API key can be used to log on to the dotcloud website

In setting.

Now, the preparation is complete. Create a service.

Step 2: Build a blog

1. Create an application "ramen", which is equivalent to a namespace and unique.

$ Dotcloud create ramen

2. Deploy a service named "ramen. www" for PHP.

$ Dotcloud deploy-t php ramen. www

 

After deployment, you can use dotcloud info ramen. www to view the PHP service information.

Http://www.ramen.dotcloud.com

3. Deploy a MySQL-type service named "ramen. DB"

$ Dotcloud deploy-T MySQL ramen. DB

After deployment, we can use dotcloud info ramen. dB to view MySQL service information.

The obtained information is similar to the following:

 

 
$ Dotcloud info ramen. DB cluster: Wolverine config: mysql_password: o1ijps9cbesp0mwoy0 mysql_serverid:-1 created_at: 1308697010.0839479 ports:-Name: ssh url: SSH: // dotcloud@db.dotcloud.com: 8744-Name: db url: mysql: // root: O1ijPs9cBeSp01mWOY0@db.dotcloud.com: 8745 state: running type: MySQL

Ports has two Database Host addresses. The first is for SSH and the second is for application installation,

The preceding example shows db.dotcloud.com: 8745. the user is root. For convenience, we need to create one on this host.

New users and databases.

The root password is randomly generated when the service is deployed. I have consulted the official website and the password cannot be specified by myself. The above Password

It's friendly, but the password we usually get contains "| () \ &" and other weird characters, which must be escaped when logging on to the database.

A moment.

$ Dotcloud run ramen. DB service -- mysql-u root-po1ijps9cbesp0mwoy0 // log on remotely

Database. Change the service name and password to your own

Mysql> create user 'myname' identified by 'mypassword'; // MySQL command. The password is

Myname user of mypassword

Mysql> Create Database WP; // create a database WP

Mysql> grant all on WP. * To 'myname' @ '%'; // grant all permissions to myname on the database WP.

Mysql> flush privileges; // refresh for effective





4. Download and install Wordpress, run the following command to SSH service ramen. WWW, and download and install the WordPress English version.

Same version method.

 

$ Dotcloud SSH ramen. www $ CD code $ wget http://wordpress.org/latest.tar.gz $ tar zxvf latest.tar.gz $ CD WordPress $ CP-r **.../$ CD ../$ Rm-RF ** WordPress

Because a folder is extracted, the preceding four commands copy all the folder files to the root directory and delete the original folder.

Since the dotcloud file system is writable, we do not need to manually create a wp-config.php, so the following installation directly,

Enter the http://www.ramen.dotcloud.com, then there will be WordPress installation interface, not to mention, phase

I believe that everyone is familiar with the database information. I will not repeat it here.

5. Rewrite the URL

The server software used by dotcloud's PHP service is not apache, but nginx 0.8.53. By default, there is no rewrite effect on fixed links of WordPress. Therefore, we need to build nginx URL rewriting rules.

Create nginx. conf in the root directory of the website and enter the following content:

 
Rewrite ^. */files/(. *) $/WP-nodes des/ms-files.php? File = $1 last; If (! -E $ request_filename) {rewrite ^. +? (/WP-. *) $1 last; rewrite ^. +? (/. *. Php) $1 last; rewrite ^/index. php last ;}

It is very convenient to complete this process using vi.

Restart the server: $ dotcloud restart ramen. www

In this way, fixed links such as/60.html,/Tag/WPF,/category/PHP can be used.

6. Bind a domain name

We bound our domain name www.yourdomain.com to ramen. www.

$ Dotlcoud alias add ramen. www www.yourdomain.com

Next, follow the prompts to modify the cname record.

All right, all done here.

Demo address: http://blog.kiccp.dotcloud.com

Rice binding Demo: http://blog.kiccp.com

Phpinfo: http://blog.kiccp.com/phpinfo.php

PS: I opened a dotcloud forum on my own forum. If you have any questions, let's discuss them here:

Http://bbs.kiccp.com/forum.php? MoD = Forumdisplay & FID = 72

This forum is also running on dotcloud.

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/339593.html pageno: 8.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.