Skip to content

Instantly share code, notes, and snippets.

@fishnix
Created December 18, 2012 20:10
Show Gist options
  • Select an option

  • Save fishnix/4331502 to your computer and use it in GitHub Desktop.

Select an option

Save fishnix/4331502 to your computer and use it in GitHub Desktop.
scalr scratch
yum install httpd mysql mysql-server php net-snmp-utils bind
yum install php-pear-MDB2-Driver-mysqli php-pear-Net-Curl php-php-gettext php-mcrypt php-pecl-ssh2 php-pear-SOAP php-snmp php-pear-HTTP
Not found in YUM:
sockets
SimpleXML
mhash
pcntl
posix
dom
rrdtool. 1.3.x
cd /etc/httpd/conf
cp -p httpd.conf{,.20121218}
vi httpd.conf
[root@localhost conf]# diff httpd.conf{.20121218,}
990c990
< #NameVirtualHost *:80
---
> NameVirtualHost *:80
1003,1009c1003,1012
< #<VirtualHost *:80>
< # ServerAdmin webmaster@dummy-host.example.com
< # DocumentRoot /www/docs/dummy-host.example.com
< # ServerName dummy-host.example.com
< # ErrorLog logs/dummy-host.example.com-error_log
< # CustomLog logs/dummy-host.example.com-access_log common
< #</VirtualHost>
---
> <VirtualHost *:80>
> ServerAdmin webmaster@dummy-host.example.com
> DocumentRoot /usr/local/scalr/app/www
> ServerName scalr.fishnix.org
> <Directory /usr/local/scalr/app/www>
> AllowOverride All
> </Directory>
> ErrorLog logs/scalr-error_log
> CustomLog logs/scalr-access_log common
> </VirtualHost>
/etc/init.d/httpd restart
mysql> create database scalr;
mysql> grant all privileges on scalr.* to 'scalr' identified by 'scalr';
mysql> flush privileges;
cd /usr/local/scalr/sql
cp -p scalr.sql{,.20121218}
vi scalr.sql
# diff scalr.sql.20121218 scalr.sql
1281a1282,1286
> `architecture` varchar(25) DEFAULT NULL,
> `os_family` varchar(25) DEFAULT NULL,
> `os_name` varchar(25) DEFAULT NULL,
> `os_version` varchar(25) DEFAULT NULL,
> `agent_version` varchar(25) DEFAULT NULL,
mysql -u scalr -p scalr < /usr/local/scalr/sql/scalr.sql
cd /usr/local/scalr/app
chown -Rh apache:apache cache/
cd etc
cp -p config.ini-sample config.ini
diff config.ini-sample config.ini
6c6
< pass = ""
\ No newline at end of file
---
> pass = "scalr"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment