step list to configure my server
Posted December 20th, 2007 by admin- install the base ubuntu server without LAMP server or another component
- update system
- sudo aptitude update
- sudo aptitude upgrade
- sudo aptitude dist-upgrade
- install the openssh server - sudo aptitude install openssh-server openssh-client
- install subversion to host source code - sudo aptitude install subversion
- install mysql server - Sudo aptidude install mysql-server mysql-client libmysqlclient15-dev
- Be sure to set a password for the root MySQL user. Failing to do so will leave your database open for anyone who wishes to see.
- mysqladmin -u root -h localhost password ’secret’
- mysqladmin -u root -h myhostname password ’secret’
- Make sure to replace secret with your actual password.
- Try logging in to MySQL with your new password to make sure everything works okay.
- mysql -u root -p
- Enter password:
- mysql>
- install the apache2 - $audo aptitude install apache2
- Before you continue, enable several modules which we’ll be using later on.
- $sudo a2enmod proxy_balancer
- $sudo a2enmod proxy_ftp
- $sudo a2enmod proxy_http
- $sudo a2enmod proxy_connect
- $ sudo a2enmod rewrite
- install the ruby and rails and gems - $sudo aptitude install ruby ri rdoc
- Now have Ruby 1.8.6. I will also need to install some other develoment package to help me build native Ruby Gems.
- $sudo apt-get install make autoconf gcc ruby1.8-dev build-essential
- install the gems:
- $ sudo aptitude install rubygems
- That’s it for the gems. Now, install Rails an all it’s dependencies:
- $ sudo gem install rails –include-dependencies
- install the mongrel (ror server ) - because the repository of ubuntu isn’t a latest version, so i install the mongrel with gem
- $ sudo gem install mongrel -y (choice latest version for ruby )
- $ sudo gem install mongrel_cluster -y (to manage the mongrel )
- install mysql by gem to better mysql - $ sudo gem install mysql
- install capistrano and vlad to run a auto deploy task - $ sudo gem install capistrano -y
- $ sudo gem install vlad
- So far, I already installed every thing on gutsy to run ROR,then we need configure each one just installed let ROR work very well,seconds, also, we need make a rails application to test env just install,it’s better
- $ mkdir tmp ;cd tmp
- $ rials testapp
Filed under:Uncategorized
Leave a Reply