How To Create Multiple Dotclear Blogs on Your VPS

Here is a simpler method than that proposed in the Dotclear documentation

Do you need to host more than one blog using dotclear? The Dotclear documentation suggests several unofficial ways to do this: 2.0:admin:multiblog - Dotclear Documentation

The suggested methods involving hosting the blogs from a single dotclear installation and url. However, probably a far more common requirement is to want to host blogs from differently named virtual hosts sharing the same ip address. For example suppose you are a sports fan. You might want to run blogs with urls of the form: my_football_website/my_football_blog and my_cricket_website/my_cricket_blog.

So why not just run separate dotclear installations, hosted in different urls and each referring to a different database?

Using the url examples above, like this:

sudo mysql -u root -p

Enter your mysql password (Warning: you may be asked for your sudo password first)

CREATE DATABASE football;

CREATE DATABASE cricket;

exit;

Navigate to the directory where your top level index.html and other html files are for the football web site

Do: mkdir my_football_blog then cd my_football_blog

Download the dotclear installer with: sudo wget http://download.dotclear.org/latest.tar.gz

Then expand the archive with: sudo tar -xvzf latest.tar.gz

Move the dotclear files up one directory with: sudo mv dotclear/* .

Note that the closing "." above is not a punctuation mark. It is needed in the command to indicate the current directory as the destination of the moved files!

Now loosen some permissions with:

sudo chmod a+w cache/

sudo chmod a+w inc/

sudo chmod a+w public/

In any browser, you can now do the equivalent of: 

https://my_football_website_url/my_football_blog/admin/install/index.php

and you will see the first configuration screen. The hostname will be localhost and the database name football  You also need to enter your mysql username and password. On hitting Continue, you will be asked to create a user name and password for exclusive access to the dotclear configuration screens. After that, you will be taken to the multi-featured configuration options for your blog and can start to make posts. 

Access the configuration and blog editing screens with: https://my_football_website_url/my_football_blog/admin/index.php

Similarly for the cricket site:

Navigate to the directory where your top level index.html and other html files are for the cricket web site

Do: mkdir my_cricket_blog then cd my_cricket_blog

Copy in the dotclear latest.tar.gz from the football web site directories, or download it a second time with wget, as above.

Then expand the archive with: sudo tar -xvzf latest.tar.gz

Move the dotclear files up one directory with: sudo mv dotclear/* .

Note that the closing "." above is not a punctuation mark. It is needed in the command to indicate the current directory as the destination of the moved files!

Now loosen some permissions with:

sudo chmod a+w cache/

sudo chmod a+w inc/

sudo chmod a+w public/

In any browser, you can now do the equivalent of: 

https://my_cricket_website_url/my_cricket_blog/admin/install/index.php

and you will see the first configuration screen. The hostname will be localhost and the database name cricket  You also need to enter your mysql username and password. On hitting Continue, you will be asked to create a user name and password for exclusive access to the dotclear configuration screens. After that, you will be taken to the multi-featured configuration options for your blog and can start to make posts. 

Access the configuration and blog editing screens with: https://my_cricket_website_url/my_cricket_blog/admin/index.php

Thats it! Two blogs hosted on different virtual hosts and entirely independent of each other.

If you need advice in general on the configuration and management of virtual hosts sharing a single ip address on your VPS, I have written two manuals, which describe in step-by-step detail how to install a secure web server and secure mail server on Linux. The manuals can be purchased at my author website: Unusual Mysteries - Cookbook  They are not expensive and will repay your investment of a small amount of cash in both time and trouble saved.

   

Add ping

Trackback URL : https://www.businessassistant.biz/the_vps_blog/index.php?trackback/4

Page top