Installation

From $1

    installation.png

    Evaluating Scalr? Try hosted Scalr for free before installing!

    Got questions? Join the open source discussion list!

    System Requirements


    Disclaimer

    It is extremely difficult (read: costly) to move from self-hosted to hosted Scalr, because of the continuously changing codebase. If you are considering self-hosting Scalr, be aware that you will in all likelihood not be able to move to hosted Scalr should you later prefer not having to manage updates and upgrades.

    Minimum Server requirements

    To self host Scalr, you will need servers of the following minimum specs:
    • 1x m1.large for mysql
    • 1x m1.large for app
    • 1x c1.medium for cron jobs

    In later versions planned for Q2 2012, you will need an extra:
    • 1x m1.large for redis
    • 1x m1.small for rabbitmq

    Packages

    Package names and installation methods vary. Consult the OS Specific Installation Guides first.

    Scalr requires a web server capable of

    We create cheap resumes written by educated writers online!

    Read this guideline and investigate how to do research online!

    Delivered online book report/s is original - we communicate with the best writers only!

    • URL rewriting (like mod_rewrite)
    • Running on a POSIX-compatible (Linux, BSD) OS
    • PHP 5.3.5 or higher 5.3.X branch.
    • MySQL 5.1.X

    You may need to install dependencies as well, such as

    • libssh2
    • OpenSSL
    • net-snmp-utils
    • bind9

    Required PHP configuration options

    • safe_mode must be set to Off
    • register_globals must be Off

    Required PHP extensions

    Also, apache mod_rewrite is required. Make sure that "AllowOverride All" is set for the scalr virtualhost.

    Installation

    Download the most recent code release from http://scalr.net/features/open-source/. Unzip this archive.

    Copy the contents of the app/ folder to your webserver. Only the app/www folder must be readable by the webserver; all other folders must be underneath the web root. Scalr WILL NOT work from a subfolder of the document root (i.e. domain.com/something). Please create a subdomain and point its document root to the Scalr app/www folder. In the notes that follow, /scalr_home_dir/ refers to the app/ folder location on the webserver.

    Set AllowOverride (Apache) or other directives as appropriate for the Scalr domain to implement the rewrite rules found in /scalr_home_dir/etc/.htaccess. If you are using webserver software other than Apache (say lighttpd) you will need to convert the .htaccess rules into a form suitable for your server.

    Set permissions

    The following folders (and subfolders) and files must be writable by the webserver. Change ownership to the webserver user and set permissions to 700, or else (less secure) set permissions to 777 (world-writable):

    • cache

    Create and configure database

    1. Create new MySQL database and database user for Scalr.
    2. Import database structure from sql/scalr-structure.sql file.
    3. Fill this structure with data from sql/scalr-data.sql file.
    4. Edit database connection details in /scalr_home_dir/etc/config.ini file on the webserver.

    Set cron jobs

    For system to work properly, it needs to run a few tasks periodicaly. Scalr has a single cron/cron.php file that must be executed with various command-line switches. The following tasks must be scheduled:

     

    */2 * * * * /usr/bin/php -q /scalr_home_dir/cron-ng/cron.php --Poller
    * * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --Scheduler
    */10 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --MySQLMaintenance
    * * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --DNSManagerPoll
    17 5 * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --RotateLogs
    */2 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --EBSManager
    */20 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --RolesQueue
    */5 * * * * /usr/bin/php -q /scalr_home_dir/cron-ng/cron.php --DbMsrMaintenance
    */2 * * * * /usr/bin/php -q /scalr_home_dir/cron-ng/cron.php --Scaling
    */5 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --DBQueueEvent
    */2 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --SzrMessaging
    */4 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --RDSMaintenance
    */2 * * * * /usr/bin/php -q /scalr_home_dir/cron/cron.php --BundleTasksManager
    * * * * * /usr/bin/php -q /scalr_home_dir/cron-ng/cron.php --ScalarizrMessaging
    * * * * * /usr/bin/php -q /scalr_home_dir/cron-ng/cron.php --MessagingQueue
    */2 * * * * /usr/bin/php -q /scalr_home_dir/cron-ng/cron.php --DeployManager

    A few additional cron tasks need to be scheduled in order to configure statistics. See Configuring Load Statistics for details.

    Configuration

    To check whether your server meets (most) Scalr system requirements, run the testenvironment.php script in the app/www folder. Assuming you have completed the steps above, this can be accessed as http://your.scalr.domain/testenvironment.php from your web browser. This will find most major issues, although some (missing rewrite rules, missing cron tasks) go undetected.

    BIND

    You'll need to configure BIND on your servers as well.

    Congratulations! You may now proceed to configuration. Log in as admin / admin, go to Settings->Core settings and edit settings.

    Tags: (Edit tags)
    • No tags
     
    Comments (6)
    Viewing 6 of 6 comments: view all
    Errors:
    • Insuficient permissions on file . Please chmod 0777
    • Insuficient permissions on file . Please chmod 0777
    • Insuficient permissions on file . Please chmod 0777
    • Cannot parse etc/config.ini file.

    I'm not sure where should I put my folders.

    Apache default dir is /var/www

    I drop all contends of /www to /var/www

    and other folder under /var/www

    did I wrong?
    Posted 11:57, 7 Dec 2010
    there are two database in sql

    scalr-2.1-init-data.sql scalr-2.1-structure.sql

    which one need to be dumped into mysql?
    Posted 12:37, 7 Dec 2010
    both of them. First one contains initial data. second one is database structure.
    Posted 12:29, 9 Dec 2010
    I finished installation; ran testenviroment.php
    everything is fine..

    but seem like i can't find the menu settings -> manage environments
    Posted 04:53, 16 Dec 2010
    I think you first create a farm & then check this option.
    Posted 15:00, 1 Feb 2011
    This seems to be vanishing. Scalr release 2.2.0 db schema for the clients table is faulty. Here's the correct Schema:

    CREATE TABLE `clients` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `email` varchar(255) DEFAULT NULL,
    `password` varchar(64) DEFAULT NULL,
    `aws_accesskeyid` varchar(255) DEFAULT NULL,
    `aws_accountid` varchar(50) DEFAULT NULL,
    `aws_accesskey` varchar(255) DEFAULT NULL,
    `farms_limit` int(2) DEFAULT '2',
    `isbilled` tinyint(1) DEFAULT '0',
    `dtdue` datetime DEFAULT NULL,
    `isactive` tinyint(1) DEFAULT '0',
    `fullname` varchar(60) DEFAULT NULL,
    `org` varchar(60) DEFAULT NULL,
    `country` varchar(60) DEFAULT NULL,
    `state` varchar(60) DEFAULT NULL,
    `city` varchar(60) DEFAULT NULL,
    `zipcode` varchar(60) DEFAULT NULL,
    `address1` varchar(60) DEFAULT NULL,
    `address2` varchar(60) DEFAULT NULL,
    `phone` varchar(60) DEFAULT NULL,
    `fax` varchar(60) DEFAULT NULL,
    `aws_private_key_enc` text,
    `aws_certificate_enc` text,
    `dtadded` datetime DEFAULT NULL,
    `iswelcomemailsent` tinyint(1) DEFAULT '0',
    `login_attempts` int(2) DEFAULT '0',
    `dtlastloginattempt` datetime DEFAULT NULL,
    `scalr_api_keyid` varchar(16) DEFAULT NULL,
    `scalr_api_key` varchar(250) DEFAULT NULL,
    `comments` text,
    PRIMARY KEY (`id`)
    ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
    Posted 03:25, 24 Mar 2011
    Viewing 6 of 6 comments: view all
    You must login to post a comment.

     
    Powered by MindTouch Core