# aptitude install apache2 php5-cli libapache2-mod-php5 php5-mysql php5-mcrypt php5-mhash libssh2-php php5-snmp php-pear php5-dev php5-curl make libcurl4-openssl-dev snmp
# /etc/init.d/apache2 restart
# cd /root
# mkdir scalr
# cd scalr/
# wget http://scalr.googlecode.com/files/scalr-2.2.1.tar.gz
# tar xvzf scalr-2.2.1.tar.gz
# cp -r scalr-2.2.1 /var/scalr
# cd /var
# chown -R www-data:www-data /var/scalr/app/cache /var/scalr/app/cron/cron.pid /var/scalr/app/etc/.passwd
# chmod 700 -R /var/scalr/app/cache /var/scalr/app/cron/cron.pid /var/scalr/app/etc/.passwd
# mv www www_old
# ln -s /var/scalr/app/www /var/www
# chmod a+rX -R /var/www
# cd /var/www
# find . -exec chown www-data.www-data {} \;
# cd /var/scalr/sql
# mysqladmin -p create scalr
# mysql -u root -p -D scalr < /var/scalr/sql/scalr-2.2-structure.sql
# mysql -u root -p -D scalr < /var/scalr/sql/scalr-2.2-init-data.sql
# mysql -u root -p
mysql> grant all privileges on scalr.* to 'scalr'@'%' identified by 'scalr';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
# cd /var/scalr/app/etc
# nano config.ini
# mkdir /var/scalr/app/cache/smarty_bin/en_US
# chmod 777 /var/scalr/app/cache/smarty_bin/en_US
# chmod 0777 /var/scalr/app/etc/.passwd
# chmod 0777 /var/scalr/app/etc/.cryptokey
# /etc/init.d/apache2 restart
Comprobamos a través: http://nuestraip/testenvironment.php:
Errors:
• Cannot find PECL_HTTP functions. Make sure that PECL_HTTP Functions enabled.
# pecl install pecl_http
Añadimos "extension=http.so" a php.ini:
# cd /etc/php5/apache2/conf.d
# echo "extension=http.so" > http.ini
# /etc/init.d/apache2 restart
Hasta llegar a:
Congratulations, your environment settings match Scalr requirements!
# nano /etc/crontab
#Scalr
*/4 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --UsageStatsPoller
*/2 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --Scheduler
*/15 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --MySQLMaintenance
* * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --DNSManagerPoll
*/4 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --RolesQueue
17 5 * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --RotateLogs
*/5 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --DBQueueEvent
*/4 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --RDSMaintenance
*/2 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --BundleTasksManager
*/2 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --MessagingQueue
*/2 * * * * /usr/bin/php -q /var/scalr/app/cron/cron.php --EBSManager
* * * * * /usr/bin/php -q /var/scalr/app/cron-ng/cron.php --ScalarizrMessaging
* * * * * /usr/bin/php -q /var/scalr/app/cron-ng/cron.php --Poller
* * * * * /usr/bin/php -q /var/scalr/app/cron-ng/cron.php --Scaling
# /etc/init.d/cron restart
Referencias:
http://wiki.scalr.net/Installing_Scalr/OS_Specific_Installation_Guides/Ubuntu_10.04_Lucid
http://wiki.scalr.net/Installing_Scalr
http://aws.amazon.com/articles/1603
http://code.google.com/p/scalr/
Continuará...
No hay comentarios:
Publicar un comentario