Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<6. CAMPSITE HOSTING        6.2. Installing Campsite on a Standard Fedora Server>

Print / Download:
Available languages: english Last update: 2005-10-28 18:09:56

6.1. Using the "create_instance" Command

Starting with Camspite 2.2 there is no need to install it every time you want to create a separate instance (separate database, separate user access etc.). Instead you can use a new utiliy: create_instance. This will set up almost everything that is needed to run a new instance, completely separated from the other ones. After running the script you'll have to update the Apache virtual host configuration file, include it in the main configuration and restart the Apache server.

The create_instance command takes the following arguments. There should be a space character between the command-line switch and its value.

--db_server_address
Database server address (e.g. 127.0.0.1)
--db_user
Database user (e.g. root)
--db_password
Database password
--db_server_port
Database port; 0 means it will use the system default port.
--db_name
Database name; this is also the instance name. (e.g. campsite)
--smtp_server_port
Mail server point. The default value is 25.
--smtp_server_address
Mail server address. The default value is localhost (127.0.0.1)
--parser_port
Template parser engine port. The template engine port is assigned automatically but you can override it. (e.g. 2100)
--parser_max_threads
Template parser maximum number of threads (e.g. 10). The campsite server will use the default number of threads if this parameter was 0.
--apache_user
Apache user (e.g. apache or www-data)
--apache_group
Apache group (e.g. apache or www-data)
--etc_dir
Forces the script to use the specified configuration directory, not the default one.
--no-database
This parameter instructs the script not to create the database. It will create only the configuration files and virtual host structure.

Examples:
1. Create the default instance:

create_instance

This is equivalent to:

create_instance --db_name campsite

2. Create my instance:

create_instance --db_name my_instance

3. Specify different database settings:

create_instance --db_name my_instance --db_user my_user --db_password password

4. Specify a different parser port:

create_instance --db_name my_instance --parser_port 3200

This will force the template parser to listen to the port 3200 instead of the port assigned by default. Please make sure the port you specify is free. You can check by typing:

netstat -ant


add a note add a note User Contributed Notes
6.1. Using the "create_instance" Command
There are no user contributed notes for this page.

<6. CAMPSITE HOSTING 6.2. Installing Campsite on a Standard Fedora Server>

  Last update: 2005-10-28 18:09:56
Website powered by Docmint Last update: 2005-10-28 18:09:56
Total page time: 0.676745176315