Ruby Asylum: Beast Forum Installation (Dedicated cPanel server) http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server en-us 40 A place for those crazy about Ruby Beast Forum Installation (Dedicated cPanel server) <p><em>This version of Beast forum requires Ruby, Rails and FastCGI with MySQL 4.1 series. If your dedicated server does not already have Ruby and Rails installed on it, you can contact <a href="mailto:dedicated@lunarpages.com">dedicated@lunarpages.com</a> to request an installation. Please provide the last 4 digits of your card on file for ownership confirmation along with your dedicated server domain name or account username. Managed addon customers have 1 free script installation available to them. Non-managed addon customers would pay $75 per hour for the script. Ruby and Rails with FastCGI support takes approximately 1 hour to install.</em></p> <p>A. Beast forum requires redcloth gem. This gem can be installed by the following in shell if you do not already have it:<br /> <code>gem install redcloth</code></p> <p>B. Creating your database for Beast forum:<br /> <ol> <li>Log into cPanel and click on <strong>MySQL Databases</strong> icon:</li> <center><img src="http://rubyasylum.com/images/mysqldatabases.gif" alt="MySQL Databases" /></center> <li>As per the example below, enter <span style="color:red">forum</span> in the "New Database" field under <em>Current Databases</em> area, then click "Create Database" button. Your full database name will then show as <span style="color:red">cPaneluser_forum</span>.</li> <center><img src="http://rubyasylum.com/images/currentdatabases-forum.gif" alt="Curent Databases" /></center> <li>Under <em>Current Users</em> area as seen in the example below, enter <span style="color:red">forum</span> for the "Username" field and enter a password that you write in your notes for the "Password" field, then click "Create User" button. Your full database user's name will then show as <span style="color:red">cPaneluser_forum</span>.</li> <center><img src="http://rubyasylum.com/images/currentusers-forum.gif" alt="Curent Users" /></center> <li>Under <em>Add Users to Your Database</em> area as shown below, select in the "User" dropdown <span style="color:red">cPaneluser_forum</span> and select in the "Database" dropdown <span style="color:red">cPaneluser_forum</span>, then click "Add User to Database" button.</li> <center><img src="http://rubyasylum.com/images/adduserstoyourdatabases-forum.gif" alt="Add Users to Your Databases" /></center> </ol> </p> <p>C. Installing Beast forum:<br /> <code>cd /home/user<br /> svn checkout http://svn.techno-weenie.net/projects/beast/trunk forum<br /> cd forum<br /> rake freeze_edge</code></p> <p>Please replace <span style="color:red">user</span> with your cPanel username whenever user is noted.</p> <p>D. Edit dispatch.fcgi to fix path to Ruby:<br /> <code>cd /home/user/forum/public<br /> vi dispatch.fcgi</code></p> <p>Change the top variable:<br /> <code>#!/opt/usr/bin/ruby</code><br /> to<br /> <code>#!/usr/local/bin/ruby</code></p> <p>Save the file, then check the file has 755 file permissions:<br /> <code>ls -l<br /> chmod 755 dispatch.fcgi</code></p> <p>E. Ensure .htaccess has right dispatch.fcgi entry:<br /> <code>vi .htaccess</code></p> <p>Change:<br /> <code>RewriteRule ^(.*)$ dispatch.cgi [QSA,L]</code><br /> to<br /> <code>RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]<br /></p> <p>Save the file.</p> <p>F. Edit dispatch.rb file to fix path to Ruby:<br /> <code>cd /home/user/forum/public<br /> vi dispatch.rb</code></p> <p>Change the top variable:<br /> <code>#!/opt/usr/bin/ruby</code><br /> to<br /> <code>#!/usr/local/bin/ruby</code></p> <p>Save the file.</p> <p>G. Copying the database.example.yml and editing the database.yml file:<br /> <code>cd /home/user/forum/config<br /> cp database.example.yml database.yml<br /> vi database.yml</code></p> <p>Replace whatever it has with the following (the 2 spaces to the left of some of the lines are spaces not tabs, so do not change them to tabs):<br /> <pre style="font-size:11px">production: database: user_forum adapter: mysql host: 127.0.0.1 username: user_forum password: mydbuserpass</pre></p> <p>Change <span style="color:red">user</span> to your cPanel username for lines 2 & 5, then change <span style="color:red">dbuserpass</span> to have your database user's password (the one you entered in Section B, Step 3).</p> <p>Save the file.</p> <p>H. Change environment.rb to have the forum in production:<br /> <code>cd /home/user/forum/config<br /> vi environment.rb</code></p> <p>Change the following:<br /> <code>#ENV['RAILS_ENV'] ||= 'production'</code><br /> to<br /> <code>ENV['RAILS_ENV'] ||= 'production'</code></p> <p>Save the file.</p> <p>I. Symlink the directories (if you will be using Beast forum at <a href="http://domain.com/">http://domain.com</a>):<br /> <code>cd /home/user<br /> mv public_html public_html.bak<br /> ln -s /home/user/forum/public public_html<br /> mkdir public_html/cgi-bin<br /> chown -R user:user /home/user/forum<br /> chmod 755 /home/user/forum && chmod 755 /home/user/forum/public</code></p> <p>If you will be using Beast forum at <a href="http://domain.com/folder/">http://domain.com/folder/</a>, do the following instead:<br /> <code>cd /home/user/public_html<br /> ln -s ../forum/public folder<br /> chown -R user:user /home/user/forum</code></p> <p>J. Import the database schema:<br /> <code>cd /home/user/forum<br /> rake db:schema:load RAILS_ENV=production</code></p> <p>K. Beast forum should now be working<br /> <ol> <li>Go to your domain (either <a href="http://domain.com/">http://domain.com/</a> or <a href="http://domain.com/folder/">http://domain.com/folder/</a> depending on which you chose in Section I), and Beast forum should be working.</li> <li>If Beast forum is not working, your app might be cached, so restart apache:<br /> <code>/etc/init.d/httpd stop<br /> killall -9 httpd<br /> /etc/init.d/httpd startssl</code></li> <li>You can now sign up to the forum as the first signup automatically becomes the admin. You will be told you are sent an email, but I've found that this first account (the admin one) doesn't receive any activation email. Other signups (after the first one) should receive an email to activate the account before being able to log into it.</li> </ol> </p> <p>You can see an example of Beast forum at <a href="http://miraenda.com/">miraenda.com</a>.</p> Thu, 14 Sep 2006 13:01:00 -0700 urn:uuid:cb73cbc7-0256-4eb1-8299-1d70f090cf89 Miraenda http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server server dedicated http://www.rubyasylum.com/articles/trackback/21 "Beast Forum Installation (Dedicated cPanel server)" by http://linkatopia.com/saleisha Very useful information. Thanks ! <a href='http://linkatopia.com/saleisha' rel="nofollow">http://linkatopia.com/saleisha</a> Tue, 20 May 2008 01:10:48 -0700 urn:uuid:feba8708-a20c-4451-9252-bc5f41d81c38 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1381 "Beast Forum Installation (Dedicated cPanel server)" by fashion Puh, this was work! you did a good job, a pity that you stopped blogging! Thanks anyway...<a href='http://www.interiordesign-office.com/office-renovation.html' rel="nofollow">http://www.interiordesign-office.com/office-renovation.html</a> Tue, 20 May 2008 01:09:17 -0700 urn:uuid:14c55677-cb8a-49d0-bbfa-48ff9f975892 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1380 "Beast Forum Installation (Dedicated cPanel server)" by shouw urls to the latest world news. <a href='http://www.internationalremovals-ltd.com/en/services1.html' rel="nofollow">http://www.internationalremovals-ltd.com/en/services1.html</a> Tue, 20 May 2008 01:08:20 -0700 urn:uuid:05014e99-7b28-420d-a830-94a282157be4 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1379 "Beast Forum Installation (Dedicated cPanel server)" by feedogator We search Feeds For You <a href='http://feedogator.com/' rel="nofollow">http://feedogator.com/</a> Thu, 10 Apr 2008 03:39:07 -0700 urn:uuid:0999f2d1-b608-4dc8-93d8-72c7ba050b3d http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1378 "Beast Forum Installation (Dedicated cPanel server)" by rssnewsdigest Try NeedForNews.com, a new comprehensive news aggregator. With NeedForNews, you don ’t really have to go anywhere else. <a href='http://rssnewsdigest.com/top_search.php' rel="nofollow">http://rssnewsdigest.com/top_search.php</a> Mon, 31 Mar 2008 07:31:11 -0700 urn:uuid:33085cea-e42a-4e5d-bd60-ca83b1ae061f http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1377 "Beast Forum Installation (Dedicated cPanel server)" by needfornews urls to the latest world news. Mon, 24 Mar 2008 05:50:46 -0700 urn:uuid:fec28325-8d2b-4111-a01c-a851f2c4aafe http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1376 "Beast Forum Installation (Dedicated cPanel server)" by needfornews urls to the latest world news. Mon, 24 Mar 2008 05:50:45 -0700 urn:uuid:aa56db25-d97c-4a99-8e12-d123691a3c7f http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1375 "Beast Forum Installation (Dedicated cPanel server)" by online casino Puh, this was work! you did a good job, a pity that you stopped blogging! Thanks anyway... Fri, 25 Jan 2008 04:48:33 -0800 urn:uuid:1234579c-3aaa-41e0-95ef-4d4818214a4b http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1370 "Beast Forum Installation (Dedicated cPanel server)" by Kelly Shoppach MaxDedicated.com servers from $69, while supplies last! Servers feature 2.0 GhZ Intel CPU, 512 MB RAM, 2 TB of Transfer and More! Other plans available; we offer dedicated servers to fit every budget and need. All servers feature full root/administrator access. <a href='http://www.maxdedicated.com' rel="nofollow">http://www.maxdedicated.com</a> Wed, 09 Jan 2008 03:05:28 -0800 urn:uuid:4eeeb888-a346-4168-98e5-07f278d9efa4 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1367 "Beast Forum Installation (Dedicated cPanel server)" by solarurls Very useful information. Thanks ! Tue, 04 Dec 2007 06:23:31 -0800 urn:uuid:b302087d-0c6e-49e6-8197-f5d36baebdb1 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1366 "Beast Forum Installation (Dedicated cPanel server)" by urlsbox Very useful information. Thanks ! Tue, 04 Dec 2007 06:23:21 -0800 urn:uuid:4e7ff419-54d2-4d0a-822b-7e6b135d4fea http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1365 "Beast Forum Installation (Dedicated cPanel server)" by wazzuplinks Very useful information. Thanks ! Tue, 04 Dec 2007 06:23:10 -0800 urn:uuid:571eab23-04c3-490c-8df6-74f64ed39376 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1364 "Beast Forum Installation (Dedicated cPanel server)" by biturls Very useful information. Thanks ! Tue, 04 Dec 2007 06:22:38 -0800 urn:uuid:f1162a14-49e9-40ea-a6cf-4d4eeec1b845 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1363 "Beast Forum Installation (Dedicated cPanel server)" by gosurls Very useful information. Thanks ! Mon, 03 Dec 2007 04:49:28 -0800 urn:uuid:ecfd0f97-0579-46d0-8514-f312c5a06f48 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1362 "Beast Forum Installation (Dedicated cPanel server)" by kasino spielen Alle wichtigen Informationen über das Kasino spielen im Internet und die fettesten Casinoboni. Thu, 29 Nov 2007 23:10:01 -0800 urn:uuid:78ad55ca-67bd-46e3-8571-66f013a351e8 http://www.rubyasylum.com/articles/2006/09/14/beast-forum-installation-dedicated-cpanel-server#comment-1361