Installing shapado on CentOS 5.5
I took notes during my shapado install at work and thought I'd post them since there's not a lot of documentation for installing this thing--especially on CentOS. Also, I substituted "xxx" for my company's name, so don't think I set this up for some pr0n site. :)
Shapado 3.10.7 only runs on 1.8.x. Install Ruby 1.8.7-p330
tar xf ruby-1.8.7-p330.tar.gz
wget http://production.cf.rubygems.org/rubygems/rubygems-1.4.1.tgz
tar xf rubygems-1.4.1.tgz
Set up Apache w/Passenger: http://www.modrails.com/install.html
sudo gem install passenger
sudo passenger-install-apache2-module
Passenger prompted to install deps: (help: /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/doc/Users guide Apache.html)
sudo yum install curl-devel
sudo yum install zlib-devel
sudo yum install httpd-devel
sudo yum install apr-devel
sudo yum install apr-util-devel
re-run sudo passenger-install-apache2-module
sudo vi /etc/httpd/conf/httpd.conf
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2
PassengerRuby /usr/local/bin/ruby
ServerName tribal-test.xxx.org
sudo /etc/init.d/httpd restart. Still not working
sudo /sbin/chkconfig ntpd on
sudo /usr/sbin/ntpdate pool.ntp.org
sudo /etc/init.d/ntpd start
httpd is failing to start because of permissions error on /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/agents/PassengerWatchdog
chown root:wheel -R /usr/local/lib/ruby
sudo usermod -a -G wheel apache
sudo vi /etc/selinux/config
Follow Shapado install instructions: http://gitorious.org/shapado/shapado/blobs/master/README
sudo gem install -v=2.3.10 rails
sudo yum install mongodb (See mongo install below)
no git >=1.6 installed & not in yum repos. Install: http://superuser.com/questions/184228/installing-git-on-centos
yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel
wget http://kernel.org/pub/software/scm/git/git-1.7.3.tar.gz
tar xzfv git-1.7.3.tar.gz
sudo cp -R git-1.7.3 /usr/local/src
cd /usr/local/src/git-1.7.3
sudo make prefix=/usr/local all
sudo make prefix=/usr/local install
mogodb needs to be setup http://www.if-not-true-then-false.com/2010/install-mongodb-on-fedora-centos-red-hat-rhel/
sudo vi /etc/yum.repos.d/10gen-mongodb.repo
[10gen]name=10gen Repository
baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/i386/
remove yum's mongodb: sudo yum erase mongodb
sudo yum install mongo-stable mongo-stable-server (only if previously installed via yum)
sudo chown -R mongod:mongod /var/lib/mongo/
sudo service mongod start
sudo /sbin/chkconfig --levels 235 mongod on
sudo vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport27017-j ACCEPT
sudo service iptables restart
/usr/local/bin/git clone git://gitorious.org/shapado/shapado.git
sudo chown -R apache:wheel /var/www/html/shapado
cp config/shapado.sample.yml config/shapado.yml
cp config/database.yml.sample config/database.yml
Set up admin list for tribalexchange
site: http://tribal-test.xxx.org
application_name: TribalExchange
default_timezone: "Los_Angeles"
domain: tribal-test.xxx.org
domain: tribal-test.xxx.org
googlean_domain: .tribal-test.xxx.org
PATH=$PATH:/usr/local/bin
nokogiri install failed. need libxml2
yum install libxml2-devel
yum install libxslt-devel
gem install sanitize --version "= 1.2.1"
rake bootstrap RAILS_ENV=development
mogodb needs to be setup http://www.if-not-true-then-false.com/2010/install-mongodb-on-fedora-centos-red-hat-rhel/
sudo vi /etc/yum.repos.d/10gen-mongodb.repo
remove yum's mongodb: sudo yum erase mongodb
sudo yum install mongo-stable mongo-stable-server
sudo chown -R mongod:mongod /var/lib/mongo/
sudo service mongod start
sudo chkconfig --levels 235 mongod on
sudo vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport27017-j ACCEPT
sudo service iptables restart (Moved to previous section)
rake bootstrap RAILS_ENV=development
[sudo hostname tribal-test.xxx.org]
0.0.0.0 tribal-test.xxx.org tribal-test
sudo gem install bson_ext
[script/server -e development]
Setup httpd.conf:Suppose you have a Rails application in /somewhere. Add a virtual host to your
Apache configuration file and set its DocumentRoot to /somewhere/public:
# Shapado ServerName http://tribal-test.pelco.org DocumentRoot /var/www/html/public Allow from all Options -MultiViews
Run on Apache.
rake bootstrap RAILS_ENV=production
[sudo vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
sudo cp -R shapado/* /var/www/html
sudo chown -R apache:wheel /var/www/html]
user: admin; pass = admins
Upload company gif (142x60)
Admin > Widgets > Top Users
Admin > Widgets > Tag Cloud
Admin > Members > Role = owner, sloveless
Admin > General > uncheck Facebook
Admin > General > change default tags