RawConnect Wiki > 1.0.5.1 ModRails

1.0.5.1 ModRails

From $1

Table of contents
No headers

To deploy your site using modrails, you will be required to install the ruby gem passenger. you can install
this gem writing this code from your terminal:

 $ gem install passenger

After you install the passeger's gem, you will be required to install the apache devel libraries. you can install the apache devel libraries with the fallowing instruction:

 $ yum install httpd-de*

 After installing the passenger ruby gem and the apache devel libraries, you will be able to deploy your site using modrail. you will have to execute this command from your terminal:

 $ passenger-install-apache2-module

That's instruction will do all the work for you. after the installation is done. you will have to modify your
 apache settings. /etc/httpd/conf/httpd.conf and you will have to add the fallowing instructions:

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.2/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.2
PassengerRuby /usr/local/bin/ruby

Note:  you must paste this code at your httpd.conf file where the order modules are loaded.

The final step to complete the setting is to create your vitual host at the end of the httpd.conf file

<VirtualHost YourIpAddress>
    ServerAlias www.YourDomain.com YourDomain.rawconnect.com
    ServerAdmin Developers/Getting_Started/Deploying_RawConnect/YourAdminEmail@Domain.com
    DocumentRoot YourRawConnectPublicPath
    ServerName www.YourServerName.com
    ErrorLog YourRawConnectLogsPath
    CustomLog YourRawConnectLogsPublicPath
   <IfModule !mod_disable_suexec.c>
         SuexecUserGroup YourRawConnectuser YourRawConnectGroup
    </IfModule>
   <Directory YourRawConnectPublicPath>
      AllowOverride All
      Options ExecCGI FollowSymLinks -Multiviews
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>

 

This is an Example.
user: test
group: test
domain: myraw.com
IP: 192.168.1.1

<VirtualHost 192.168.1.1>
    ServerAlias www.myraw.com myraw.rawconnect.com
    ServerAdmin Developers/Getting_Started/Deploying_RawConnect/webmaster@myraw.com
    DocumentRoot /home/test/public_html/rawconnect/public
    ServerName www.myraw.com
    ErrorLog logs/my.rawc.com-error_log
    CustomLog logs/myraw.com-access_log common
   <IfModule !mod_disable_suexec.c>
         SuexecUserGroup test test
    </IfModule>
   <Directory /home/test/public_html/rawconnect/public/>
      AllowOverride All
      Options ExecCGI FollowSymLinks -Multiviews
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>

 

After setting up the Virtual Host in httpd.conf file you must restart your apache service. you can restart your apache service writing this code from your terminal:

$ service httpd restart

It is really easy to deploy your RawConnect Open Social Software using ModRails. If you have any question about how to deploy your site, you can post it in our forums at http://www.rawconnect.com/forums .


Tags:
 
Images (0)
 
Comments (0)
You must login to post a comment.