Difference between revisions of "InstallingAboutUsOnLinux"

(PHP install)
(Commands)
 

(25 intermediate revisions by 3 users not shown)



Line 1: Line 1:
 
<noinclude><big>[[DevelopmentTeam]] < [[DevelopmentPriorities|Priorities]] <  
 
<noinclude><big>[[DevelopmentTeam]] < [[DevelopmentPriorities|Priorities]] <  
</noinclude>[[InstallingAboutUsOnLinux]] ('''1''') ([[Arif]], [[Brandon]]) <noinclude></big>
+
</noinclude>[[InstallingAboutUsOnLinux]] ('''1''') ([[Arif]], [[Brandon]] and [[AliAnwar|Ali Anwar]]) <noinclude></big>
  
 
See also [[InstallingAboutUsOnOSX]]
 
See also [[InstallingAboutUsOnOSX]]
 
== What (summary) ==
 
== What (summary) ==
 
Create instructions and mechanisms for interested people to install [[AboutUs]] on [[Linux]] machines.  
 
Create instructions and mechanisms for interested people to install [[AboutUs]] on [[Linux]] machines.  
 
  
 
== Why this is important ==
 
== Why this is important ==
Line 21: Line 20:
 
* Further develop our instructions.
 
* Further develop our instructions.
  
 +
==Instructions==
 +
<b>Installation through Script:</b>
 +
<pre>
 +
export ABOUTUS_USER=UserName
 +
wget http://images.aboutus.org/images/2/28/AuScripts.zip
 +
unzip AuScripts.zip
 +
cd auScripts/
 +
./auInstall.sh
 +
</pre>
  
==Instructions==
+
<b>Manual Installation:</b>
===Apache/PHP/MySQL===
+
# [[InstallingAboutUsOnLinux/InitSystem | Install Packages ]]
* Install Apache 2.0+
+
# [[InstallingAboutUsOnLinux/Git | Install and configure GIT]]
* Install PHP 5+
+
# [[InstallingAboutUsOnLinux/InstallDevtools | Install Dev Tools ]]
* Install MySQL 5.0.22 Ver 8.41
+
# [[InstallingAboutUsOnLinux/InstallRuby | Install Ruby and Gems ]]
* Install Ruby
+
# [[InstallingAboutUsOnLinux/InstallApache | Install and configure Apache]]
* Install gem
+
# [[InstallingAboutUsOnLinux/InstallMysql | Install and configure Mysql]]
 +
# [[InstallingAboutUsOnLinux/InstallPhp | Install and configure PHP]]
 +
# [[InstallingAboutUsOnLinux/ConfiureVim | Configure VIM]]
  
=== Apache Install ===
+
==Creating AboutUs Branch==
 
<pre>
 
<pre>
cd /www/source
+
export ABOUTUS_USER=UserName
wget http://apache.mirrors.tds.net/httpd/httpd-2.2.6.tar.bz2
+
branch create BranchName
tar jxvf httpd-2.2.6.tar.bz2
 
cd httpd-2.2.6/
 
./configure --prefix=/www \
 
  --enable-modules=most \
 
  --enable-mods-shared=all \
 
  --enable-info \
 
  --enable-rewrite \
 
  --enable-so \
 
  --with-program-name=apache2 \
 
  --enable-ssl \
 
  --enable-header \
 
  --enable-proxy \
 
  --enable-proxy-http
 
make
 
make install
 
sudo /www/bin/apache2 -k start
 
 
</pre>
 
</pre>
  
=== PHP install ===
+
==Staging AboutUs Branch==
 
<pre>
 
<pre>
cd /www/source
+
export ABOUTUS_USER=UserName
tar jxvf php-5.2.5.tar.bz2
+
stage_branch BranchName
cd php-5.2.5/
 
 
 
 
</pre>
 
</pre>
 
===OpenId Installation===
 
sudo pear install --alldeps --force http://www.openidenabled.com/resources/downloads/php-openid/pear/Auth_OpenID-1.2.2.tgz
 
sudo pear install gmp
 
sudo pear install http://www.openidenabled.com/resources/downloads/php-yadis/pear/Services_Yadis-1.0.2.tgz
 
 
 
===Gitting the AboutUs repository===
 
git clone nimbus.aboutus.com:/opt/git/aboutus $AboutUsPath/aboutus
 
 
===Create Database Users and Settings===
 
create user = wiki
 
password = wiki
 
database = wiki_dev, aboutusbot, wiki_test
 
cd $AboutUsPath/aboutus
 
mysql -u wiki -p wiki_dev <wiki_dev.sql
 
mysql -u wiki -p wiki_test <wiki_dev.sql
 
 
===Apache Configuration===
 
svn co https://nimbus.aboutus.com/svn/aboutus_config/trunk $AboutUsPath/aboutus-config
 
vim $AboutUsPath/aboutus-config/LocalSettings.php
 
# update $wgEmergencyContact, $wgPasswordSender, $wgDBserver, $wgDBname, $wgDBuser, $wgDBpassword, $wgDBprefix, $wgDBtype
 
cp $AboutUsPath/aboutus-config/LocalSettings.php $AboutUsPath/aboutus/wiki/
 
cd $AboutUsPath/aboutus-config/apache
 
vim mediawiki.conf
 
# update DocumentRoot and Directory, the value should be ... $AboutUsPath/aboutus/wiki/
 
cp mediawiki.conf /var/www/conf/sites/
 
cp mediawiki.conf /etc/apache2/sites-enabled
 
 
==Installing gems==
 
* sudo gem install rails
 
* sudo apt-get install ruby1.8-dev (installs some files required by rcov gem)
 
* sudo gem install rcov
 
* sudo gem install ruby-memcache
 
* sudo gem install json
 
* sudo gem install net-ssh
 
 
==Getting the AboutUs Dev Mediawiki running==
 
svn co https://nimbus.aboutus.com/svn/aboutus_config/trunk aboutus-config
 
  
 
==Commands==
 
==Commands==
===Mysql===
 
 
 
[[HowToUseSSHKeys]]
 
[[HowToUseSSHKeys]]
 
<pre>
 
<pre>
 
ssh-keygen -t rsa
 
ssh-keygen -t rsa
 
cd ~/.ssh/
 
cd ~/.ssh/
scp id_rsa nimbus:
+
scp id_rsa.pub nimbus:
  
 
ssh nimbus
 
ssh nimbus
cp id_rsa .ssh/authorized_keys
+
cp id_rsa.pub .ssh/authorized_keys
 
exit
 
exit
 
ssh-agent
 
ssh-agent
 
</pre>
 
</pre>
  
<pre>
+
</noinclude>
mysql -u root -p
 
create database compost_test
 
create database compost_dev
 
create database aboutusbot_test
 
create database wiki_dev
 
create database wiki_test
 
grant all on *.* to 'arif'@'localhost';
 
grant all on *.* to 'compost'@'localhost' identified by 'default';
 
 
 
grant all on *.* to 'compost'@'localhost';
 
create database aboutusbot;
 
</pre>
 
 
 
 
 
<pre>
 
cd compost
 
rake test
 
rake db:migrate
 
rake db:test:prepare
 
rake test
 
mysqldump aboutusbot > bot.sql
 
mysql aboutusbot_test < bot.sql
 
RAILS_ENV=test rake test
 
</pre>
 
 
 
 
 
 
[[Category:DevelopmentTeamProject]]
 
[[Category:DevelopmentTeamProject]]
</noinclude>
 

Latest revision as of 10:56, 6 January 2009

DevelopmentTeam

See also InstallingAboutUsOnOSX

What (summary)

Create instructions and mechanisms for interested people to install AboutUs on Linux machines.

Why this is important

  • We want to reach to the open source community so that more interested people can become part of the DevelopmentTeam
  • We want to on board new hires as seamlessly as possible. New hires often have problems getting their hands ready on the AboutUs version of MediaWiki

DoneDone

  • The git repository of the AboutUs version of MediaWiki is publicly available.
  • We have instructions set so that sophisticated new development team member can install AboutUs version of MediaWiki

Next

  • Figure out where the code is that connects to the database and make sure that we are succeeding.
  • Attach a GPL to our source
  • Expose our GIT repository
  • Further develop our instructions.

Instructions

Installation through Script:

export ABOUTUS_USER=UserName
wget http://images.aboutus.org/images/2/28/AuScripts.zip
unzip AuScripts.zip
cd auScripts/
./auInstall.sh 

Manual Installation:

  1. Install Packages
  2. Install and configure GIT
  3. Install Dev Tools
  4. Install Ruby and Gems
  5. Install and configure Apache
  6. Install and configure Mysql
  7. Install and configure PHP
  8. Configure VIM

Creating AboutUs Branch

export ABOUTUS_USER=UserName
branch create BranchName

Staging AboutUs Branch

export ABOUTUS_USER=UserName
stage_branch BranchName

Commands

HowToUseSSHKeys

ssh-keygen -t rsa
cd ~/.ssh/
scp id_rsa.pub nimbus:

ssh nimbus
cp id_rsa.pub .ssh/authorized_keys
exit
ssh-agent


Retrieved from "http://aboutus.com/index.php?title=InstallingAboutUsOnLinux&oldid=17302085"