i am running the earlier version of Scalr.  After login as admin, if i click on 
the admin icon i get a profile option.  This could be a bug.

Srini

On 30-Dec-2012, at 7:56 PM, Fabiano Breves <fabiano.bre...@gmail.com> wrote:

> Hi guys,
> 
> I realize that this is an old topic but I followed the steps in this thread 
> to install scalr on an Amazon EC2 (within a VPC). I can sign in as admin, 
> create a new user and have this new user setup with Amazon credentials. I 
> also tested the TESTENVIRONMENT.PHP and it passed. My problem is that I can't 
> find a way to change the admin's password. There is no Profile menu option 
> showing at the right upper corner, when you click on the admin icon, there is 
> only the logout option in that menu. But for my regular user id I have a the 
> Profile option and can reset its password whenever I want. Is this a bug or a 
> misconfiguration anywhere ?
> 
> anyone has any clues ?
> 
> I also tried to change the password directly to the account_user table but it 
> did not work, still have the default password working.
> 
> by the way the the version is listed as 3.6.0.
> 
> If this is not the right place to ask this I apologize.
> 
> Regards,
> Fabiano Breves
> 
> On Sunday, August 26, 2012 12:05:00 PM UTC-3, Arya A. wrote:
> I'm fairly certain this is a work in progress (ie, nowhere near complete and 
> definitely not polished), but it may help someone else out there.
> 
> 
> 
> Install prerequisites 
> 
> apt-get -y install apache2-mpm-prefork php5 php5-mysql php5-curl php5-mcrypt 
> php5-snmp
> apt-get -y install libssh2-php apparmor-utils mailutils bind9 phpmyadmin
> apt-get -y install php-pear rrdtool librrd-dev libcurl4-openssl-dev 
> mysql-server snmp
> # refer http://wiki.scalr.net/pages/viewpage.action?pageId=327743
> 
> echo '$cfg["AllowArbitraryServer"] = TRUE;' >> /etc/phpmyadmin/config.inc.php
> 
> Install SCALR
> 
> export SCALR_BASE=/usr/local/scalr
> export SCALR_HOME=$SCALR_BASE/scalr-home
> export SCALR_FILES=$SCALR_BASE/scalr-files
> export CURRENT=$SCALR_BASE/current
> export PASSWORD=yourpassword
> 
> useradd -d $SCALR_BASE -m -r -G www-data,bind scalr
> usermod -G scalr www-data
> mkdir -p $SCALR_HOME
> mkdir -p $SCALR_FILES
> cd $SCALR_FILES
> 
> curl -L https://github.com/Scalr/scalr/tarball/master > scalr-master-$(date 
> '+%Y%m%d').tar.gz
> cd $SCALR_BASE
> tar -zxvf $SCALR_FILES/scalr-master-$(date '+%Y%m%d').tar.gz
> ln -sf $(ls -rtd1 Scalr* | tail -1)/app current
> 
> 
> mkdir -p $SCALR_HOME/etc
> touch $SCALR_HOME/etc/.cryptokey
> mkdir -p $SCALR_HOME/cache/smarty_bin
> chmod 2755 $SCALR_BASE
> chmod -R 2775 $SCALR_HOME/cache
> cd $CURRENT ; rmdir cache ; ln -sf $SCALR_HOME/cache ; cd $SCALR_BASE
> chmod 2775 $SCALR_HOME/etc/.cryptokey
> cd $CURRENT/etc ; ln -sf $SCALR_HOME/etc/.cryptokey ; cd $SCALR_BASE
> mkdir -p $SCALR_HOME/graphics
> mkdir -p $SCALR_HOME/rrddata
> mkdir -p $SCALR_HOME/log
> chown -R scalr:scalr $SCALR_BASE
> 
> cp -rp $CURRENT/templates/en_US $SCALR_HOME/cache/smarty_bin/
> 
> mysql -uroot -e 'create database scalr; grant all on scalr.* to 
> scalr@localhost identified by "'$PASSWORD'";flush privileges;'
> mysql -uroot -e 'grant all on *.* to admin@localhost identified by 
> "'$PASSWORD'" with grant option;flush privileges;'
> mysql -uscalr -p${PASSWORD} scalr < $CURRENT/../sql/scalr.sql
> 
> echo 'INSERT INTO `scaling_metrics` (`id`, `client_id`, `env_id`, `name`, 
> `file_path`, `retrieve_method`, `calc_function`, `algorithm`, `alias`) VALUES
> (1, 0, 0, "LoadAverages", NULL, NULL, "avg", "Sensor", "la"),
> (2, 0, 0, "FreeRam", NULL, NULL, "avg", "Sensor", "ram"),
> (3, 0, 0, "URLResponseTime", NULL, NULL, NULL, "Sensor", "http"),
> (4, 0, 0, "SQSQueueSize", NULL, NULL, NULL, "Sensor", "sqs"),
> (5, 0, 0, "DateAndTime", NULL, NULL, NULL, "DateTime", "time"),
> (6, 0, 0, "BandWidth", NULL, NULL, NULL, "Sensor", "bw");' | mysql -u root 
> scalr
> 
> perl -i -pe "s/ns1.scalr.net/scalr.example.org/g" 
> $CURRENT/src/class.DBDNSZone.php
> 
> cp -p $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php 
> $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php-dist
> perl -i -pe 's/\(!\$retval\)/(\$retval === false)/g' 
> $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php
> 
> cp -p $CURRENT/src/structs/struct.CONFIG.php 
> $CURRENT/src/structs/struct.CONFIG.php-dist
> ip=$(ifconfig eth0 | grep inet | head -1 | awk ' { print $2 } ' | cut -f2 -d:)
> perl -i -pe "s/^(.*PMA_INSTANCE_IP_ADDRESS = ).*/\$1 '$ip';/g" 
> $CURRENT/src/structs/struct.CONFIG.php
> 
> for i in CPU LA MEM NET; do
> mv $CURRENT/cron/watchers/class.${i}SNMPWatcher.php 
> $CURRENT/cron/watchers/class.${i}SNMPWatcher.php-dist
> curl 
> https://raw.github.com/ssrini/scalr/master/cron/watchers/class.${i}SNMPWatcher.php
>  > $CURRENT/cron/watchers/class.${i}SNMPWatcher.php
> chown scalr:scalr $CURRENT/cron/watchers/class.${i}SNMPWatcher.php
> done
> 
> for i in RRD RRDGraph; do
> mv $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php 
> $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php-dist
> curl 
> https://raw.github.com/ssrini/scalr/master/src/LibWebta/library/Data/RRD/class.${i}.php
>  > $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php
> chown scalr:scalr $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php
> done
> 
> <span 
> style="font-size:15px;font-family:Arial;color:#000000;background-color:...
> Show original
> 
> -- 
>  
>  

-- 


Reply via email to