> yast2 -i gcc gcc-c++ make automake git ruby ruby-devel rubygems mysql mysql-client libmysqlclient15 libmysqlclient-devel ruby-mysql zlib gzip unzip memcached ImageMagick ImageMagick-devel ruby-RMagick ruby-RMagick-doc libxml2 libxml2-devel libxslt libxslt-devel yaz libyaz-devel idzebra idzebra-devel curl libcurl-devel libreadline5 readline-devel apache2 apache2-devel 
> yast2 -i wv wv-devel poppler-tools libpoppler4 poppler-data lynx
> yast2 -i libexif exiftool
Install passenger (follow the wizard intructions).
> passenger-install-apache2-module
Put these lines to end of file in httpd.conf, edit the file at /etc/apache2/httpd.conf
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.9
PassengerRuby /usr/local/bin/ruby
Add a Vhost and locate them to your doc apps
> vi /etc/apache/vhosts.d/filename.conf (will create new file, if not exist)
<VirtualHost *:80> 
  ServerName www.yourdomain.com
  ServerAlias your_alias_name.com
  DocumentRoot /app_path/public
  RailsEnv production
  <Directory /app_path/public>
    Options Indexes FollowSymLinks
    Options -MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>
well, now we just to restart the apache server.
> /etc/init.d/apache2 restart
 
No comments:
Post a Comment