Installing scalr

209 views
Skip to first unread message

Paul Rysevets

unread,
Aug 7, 2012, 8:58:26 AM8/7/12
to scalr-...@googlegroups.com
As i haven't found any preBuild AMI's Let's move here.

IMA: Zend PHP WebDev with 3+ years of Zend.. working with aFrogLeap.com Team. I'm a php-dev but i've been granted Admining job.. and Server strategist. 
my Beloved ServerPlatform is freeBSD, however it does not run well in Clouds(not yet).
i've got used to Debian, and i don't know "the biggest difference" between Ubuntu and Debian (as i know one is built on top of the other).
I'll be writing some questions here.. and, probably, answers.
and trying to install scalr on a "private" server.

in the end i want to get scalr running on: Debian Squeeze, nginx, php5-fpm(let's stick to 5.3.X.. but i can try 5.4.X.. there is still time)

teh Setup.
i've got an Amazon Instance m1.small (let's start from it) with Debian Squeeze 6.0.1.
As i'm in europe i've used ami-0f01367b from http://wiki.debian.org/Cloud/AmazonEC2Image

nginx + php5-fpm:
let's use latest backported and add php5-fpm:
echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list.d/squeeze-backports.list
echo "deb http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list.d/dotdeb.list
echo "deb-src http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list.d/dotdeb.list 
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
apt-get update

then
apt-get -t squeeze-backports install "nginx"
apt-get install php5-cli php5-common php5-suhosin php5-fpm

so far so good.. i'll be configuring everything at a later stage.

now. i've got into trouble.
rrdtool :) 
"vanilla" scalr 3.5 installation manual says it needs rrdtool 1.3.X(latest found 1.3.9), and a "special" build of php_rrdtool.
Now i'm stuck in compiling old rrdtool with some wierd dependencies that do not want to be linked to other sources.. so i want to drop that idea. and stick to KISS (Keep It Simple, S*)
Neighboring discussion states that "vanilla" could be patched to use latest php_rrdtool
so let's see.

so, Question IS: Can i use latest rrdtool + latest php_rrdtool + patched scalr? i.e. is it likely to break something "inside" scalr?
(i am able to read and manually patch/fix php code with no problem)

Donovan Bray

unread,
Aug 7, 2012, 11:17:37 AM8/7/12
to scalr-...@googlegroups.com
I suggest using the latest Ubuntu LTS instead of Debian. Missing or woefully out of date packages are the norm for Debian. I've supported FreeBSD, Debian and Ubuntu. I much prefer Ubuntu for fewest headaches and a big toolbox of options when something goes wrong. 
--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/MZQuqco6KvcJ.
To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.

Srinivasan S

unread,
Aug 7, 2012, 11:30:30 AM8/7/12
to scalr-...@googlegroups.com
If you are a Centos fan almost all RPMs needed are in the REMI repo.

Cheers
Srini
Sent on my BlackBerry® from Vodafone

From: Donovan Bray <donn...@gmail.com>
Date: Tue, 7 Aug 2012 08:17:37 -0700
Subject: Re: Installing scalr

Paul Rysevets

unread,
Aug 8, 2012, 10:43:59 AM8/8/12
to scalr-...@googlegroups.com
Okay, i'm back.

The setup is almost finished.. no bind and snmp daemon (which seems to be needed, but not listed in Installation guide)

i've been able to run manually all cron-jobs.. and got a question
cron.php --RotateLogs
shows only 1 log line.. and nothing happnes. i've waited for a few minutes. and terminated it.
Q: is it a "normal" behavior?

and as i've been able to login to scalr dashboard...
Have i just installed a multi-user scalr on my host??? Like, every account that i create with "admin" is a "separate" Scalr account. Is that so? 
or i'm seeing "enter your AWS Credentials" just at first user's first login, and later all users will be "sub-users" to 1 big AWS-Account.

as a side-note: i now have nginx rewrite-rules for scalr ;) i'll show them later

Sebastian Stadil

unread,
Aug 8, 2012, 2:45:50 PM8/8/12
to scalr-...@googlegroups.com
Correct, you now have about the same install as we have at scalr.net.

--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/eC8uQW_knHcJ.

To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.



--


Follow us: Twitter - Facebook - Blog

Paul Rysevets

unread,
Aug 9, 2012, 11:07:51 AM8/9/12
to scalr-...@googlegroups.com

Question: why BIND-paths are hardcoded in php code? (in few places)

Why are they not in CONFIG?

Okay, I can deal with /usr/sbin/rndc binary.. but client_zones?

 

If I move the setting(-s) to CONFIG.. will this somehow affect “satellites”?

 

 

From: scalr-...@googlegroups.com [mailto:scalr-...@googlegroups.com] On Behalf Of Sebastian Stadil
Sent: Wednesday, August 08, 2012 21:46
To: scalr-...@googlegroups.com
Subject: Re: Installing scalr

 

Correct, you now have about the same install as we have at scalr.net.

Igor Savchenko

unread,
Aug 9, 2012, 12:09:06 PM8/9/12
to scalr-...@googlegroups.com
This is a long story, and basically we had no time to refactor this
when we've released code to opensource. So not everything is in
configs.
In one of the future releases, of course this will be refactored.

Regards,
Igor
> --
> You received this message because you are subscribed to the Google Groups
> "scalr-discuss" group.

Paul Rysevets

unread,
Aug 13, 2012, 7:07:31 AM8/13/12
to scalr-...@googlegroups.com
I've modified.. ~3 files including core.js and it seems to be working.. with
BIND in CONFIG-Class

But.. if you create an EMPTY zones.include file...
The PHP check for FALSEness does not work.
In scalr/app/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php

So this
-----
$retval = @file_get_contents("{$this->zonesPath}/zones.include");
if (!$retval)
throw new Exception("Cannot load {$this->zonesPath}/zones.include file");
.....
-----
Should be this
-----
$retval = @file_get_contents("{$this->zonesPath}/zones.include");
if ($retval === false)
throw new Exception("Cannot load {$this->zonesPath}/zones.include file");
....
-----

Ppl,.. I'm considering ... Fixing your bugs for Premium support of me Barter
Program ;)

--
Best regards, Paul -Spawn- Rysevets
SpAwN_gUy.aka.WAREZMasta
Reply all
Reply to author
Forward
0 new messages