Ruby Asylum: Tableau Installation (Shared cPanel Servers)A place for those crazy about Rubytag:rubyasylum.com,2005:TypoTypo2006-06-17T21:36:32-07:00Miraendaurn:uuid:24bdaf68-151d-489e-95b1-9c554f226dbc2006-06-17T19:56:00-07:002006-06-17T21:36:32-07:00Tableau Installation (Shared cPanel Servers)<p><em>This version of Tableau requires FastCGI and Rails version 1.0 or greater as well as RMagick gem. The current servers that this will work on are Alcor, Gallifrey and Telos.</em></p>
<p>A. Creating your database for Tableau:<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">tab</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_tab</span>.</li>
<center><img src="http://rubyasylum.com/images/currentdatabases-tab.gif" alt="Curent Databases" /></center>
<li>Under <em>Current Users</em> area as seen in the example below, enter <span style="color:red">tab</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_tab</span>.</li>
<center><img src="http://rubyasylum.com/images/currentusers-tab.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_tab</span> and select in the "Database" dropdown <span style="color:red">cPaneluser_tab</span>, then click "Add User to Database" button.</li>
<center><img src="http://rubyasylum.com/images/adduserstoyourdatabases-tab.gif" alt="Add Users to Your Databases" /></center>
</ol>
</p>
<p>B. Get a Copy of tableau.tar.gz</p>
<p>Download a copy of the current release (svn copy) from <a href="http://rubyasylum.com/tableau.tar.gz">here</a>. After obtaining a copy that you have saved to your system, you can then proceed with the next steps.</p>
<p>C. Upload Tableau Using cPanel:<br />
<ol>
<li>Log into cPanel.</li>
<li>Click on "File Manager" icon:</li>
<center><img src="http://rubyasylum.com/images/filemanager.gif" alt="File Manager" /></center>
<li>A new window will open. In that new window, click on "Upload File(s)" link toward the top:</li>
<center><img src="http://rubyasylum.com/images/uploadfiles.gif" alt="Upload File(s)" /></center><br />
<li>The page will load new content. Click one of the "Browse..." buttons:</li>
<center><img src="http://rubyasylum.com/images/browse.gif" alt="Browse" /></center><br />
<li>The Windows "File Upload" dialog prompt will open. Navigate to where you saved <strong>tableau.tar.gz</strong> on your system, highlight <strong>tableau.tar.gz</strong>, then click the "Open" button.</li>
<center><img src="http://rubyasylum.com/images/fileupload-tab.gif" alt="File Upload" /></center><br />
<li>Back at the File Manager screen where you have the "Browse..." button, click the "Upload" button:</li>
<center><img src="http://rubyasylum.com/images/upload.gif" alt="Upload button" /></center><br />
<li>Tableau will begin uploading. Please note that it might take awhile for it to upload due to the size, usually around 3-15 minutes depending on your connection speed.</li>
</ol>
</p>
<p>D. Upload Tableau via FTP:</p>
<p><em>If you prefer to use FTP to upload so you see the progress of the file upload, try the following instead</em><br />
<ol>
<li>Open your FTP client and access your account via FTP with most clients using the following to connect:<br />
<strong>Host/Address:</strong> domain.com<br />
<strong>Username:</strong> cPanelusername<br />
<strong>Password:</strong> cPanelpassword<br /></li>
<li>Highlight the file <strong>tableau.tar.gz</strong> on your system where you saved it and right click.</li>
<li>Select upload (it needs to be uploaded to your main directory not inside public_html folder, so you should be at the level where you see public_html listed as a folder)</li>
<li>Wait for the file to complete uploading.</li>
<li>You can view an image of what Filezilla FTP client would look like for this process at <a href="http://rubyasylum.com/images/filezillaftp-tab.gif">this location</a>.</li>
</ol>
</p>
<p>E. Extracting Tableau:<br />
<ol>
<li>Log into cPanel if you aren't already logged into it.</li>
<li>Click on "File Manager" icon if you aren't already in there:</li>
<center><img src="http://rubyasylum.com/images/filemanager.gif" alt="File Manager" /></center>
<li>A new window will open for File Manager, then click on the <strong>tableau.tar.gz</strong> file name (not the icon):</li>
<center><img src="http://rubyasylum.com/images/tabtargz.gif" alt="Tableau File" /></center><br />
<li>In the upper right hand corner, there are a list of links. Select "Extract File Contents" link in that list:</li>
<center><img src="http://rubyasylum.com/images/extractfilecontents-tab.gif" alt="Extract File Contents" /></center><br />
<li>A new window will open with the extracted files and folders listed as the extraction processes. Wait until this finishes (will say Done at the bottom left of most browsers once completed), then close the new window.</li>
<li>In the File Manager window, refresh your browser. You should now see a folder called <strong>tableau</strong> there:</li>
<center><img src="http://rubyasylum.com/images/tabfolder.gif" alt="Tableau Folder" /></center>
</ol>
</p>
<p>F. Changing the database.yml file for your database details:<br />
<ol>
<li>In File Manager, click on the folder icon to the left of the <strong>tableau</strong> folder:</li>
<center><img src="http://rubyasylum.com/images/tabfoldericon.gif" alt="Tableau Folder Icon" /></center><br />
<li>Click on the folder icon to the left of the <strong>config</strong> folder:</li>
<center><img src="http://rubyasylum.com/images/configfoldericon.gif" alt="Config Folder Icon" /></center><br />
<li>Click on the <strong>database.yml</strong> file name (not the icon):</li>
<center><img src="http://rubyasylum.com/images/databaseymlfile.gif" alt="database.yml File" /></center><br />
<li>In the upper right hand corner, click on "Edit File" link as shown below.</li>
<center><img src="http://rubyasylum.com/images/editfile.gif" alt="Edit File" /></center><br />
<li>A new window will open with the following in it:<br />
<code># MySQL (default setup). Versions 4.1 and 5.0 are recommended.<br />
development:<br />
adapter: mysql<br />
database: cPaneluser_tab<br />
username: cPaneluser_tab<br />
password: somepass<br />
# socket: /tmp/mysql.sock<br />
<br />
production:<br />
adapter: mysql<br />
database: cPaneluser_tab<br />
username: cPaneluser_tab<br />
password: somepass<br />
# socket: /tmp/mysql.sock<br /><br />
<li>Replace <span color="color:red">cPaneluser</span> with your cpanel username (there are 4 instances of this on lines 4, 5, 11 and 12). Do not remove the <span style="color:red">_tab</span> part. For example, I would replace <span style="color:red">cPaneluser_tab</span> with <span style="color:red">rubyasyl_tab</span> for my rubyasylum.com account.</li>
<li>In the <span style="color:red">password:</span> line (lines 6 and 13), input the password you used when creating your database user earlier.</li>
<li>Click the "Save" button, then close that window (keep the File Manager Window open though).</li>
</ol>
</p>
<p>G. Symlinking your folder to tableau:<br />
<ol>
<li>In cPanel main area, click on "Cron Jobs" icon:</li>
<center><img src="http://rubyasylum.com/images/cronjobs.gif" alt="Cron Jobs" /></center>
<li>Click "Advanced (Unix Style)" button:</li>
<center><img src="http://rubyasylum.com/images/cronjobs-advancedunix.gif" alt="Advanced (Unix Style) Button" /></center>
<li>Enter the following as an example in the Advanced area:<br />
<pre style="font-size:12px">Minute Hour Day Month Weekday
10 7 * * * </pre></li>
<li>This would run the cron at 7:10am Pacific time each day of the week. Change the <span style="color:red">10</span> to a time 5 minutes from the current hour (so if it is currently 11:27am, change to <span style="color:red">32</span> for the Minute). Change the hour to the current hour (so if it is currently 11:27am, change to <span style="color:red">11</span>).</li>
<li>Enter the following for the Command field:<br />
<pre style="font-size:12px">cd /home/username/public_html && ln -s ../tableau/public gallery</pre></li>
<li>Replace <span style="color:red">username</span> in the command path with your cPanel username, then click "Commit changes" button. See the image below for an example of what the area might look like before you click that button:</li>
<center><img src="http://rubyasylum.com/images/cronjobs-symlink-tab.gif" alt="Cron Jobs Advanced Screen" /></center><br />
<li>After you click "Commit changes" button, then click the Go Back link on the new screen:</li>
<center><img src="http://rubyasylum.com/images/goback.gif" alt="Go Back link" /></center><br />
<li>Wait for the cron job to process (around 10 minutes after you created it), then delete the cron using the "Delete" link to the far right of it in the "Advanced (Unix Style)" area:
<center><img src="http://rubyasylum.com/images/delete.gif" alt="Delete" /></center><br />
Please note that it is <span style="color:red; font-weight:bold">very</span> important that you perform this delete step so this cron does not keep running daily as you only want it to run this one time for the symlink creation.</li>
<li>You can check if the symlink actually worked by going into "File Manager" area, clicking on the folder icon next to <strong>public_html</strong>, then on the folder icon next to the new <strong>gallery</strong> folder that should now be in public_html folder. It should have the same contents that <strong>/home/username/tableau/public</strong> does.</li>
</ol>
</p>
<p>H. Running rake migrate in cron:<br />
<ol>
<li>In cPanel main area, click on "Cron Jobs" icon again:</li>
<center><img src="http://rubyasylum.com/images/cronjobs.gif" alt="Cron Jobs" /></center>
<li>Click "Advanced (Unix Style)" button:</li>
<center><img src="http://rubyasylum.com/images/cronjobs-advancedunix.gif" alt="Advanced (Unix Style) Button" /></center>
<li>Enter the following as an example in the Advanced area:<br />
<pre style="font-size:12px">Minute Hour Day Month Weekday
10 7 * * * </pre></li>
<li>As before, this would run the cron at 7:10am Pacific time each day of the week. Change the <span style="color:red">10</span> to a time 5 minutes from the current hour (so if it is currently 11:27am, change to <span style="color:red">32</span> for the Minute). Change the hour to the current hour (so if it is currently 11:27am, change to <span style="color:red">11</span>).</li>
<li>Enter the following for the Command field:<br />
<pre style="font-size:12px">cd /home/username/tableau && /usr/local/bin/rake migrate</pre></li>
<li>Replace <span style="color:red">username</span> in the command path with your cPanel username, then click "Commit changes" button.</li>
<li>After you click "Commit changes" button, then click the Go Back link on the new screen:</li>
<center><img src="http://rubyasylum.com/images/goback.gif" alt="Go Back link" /></center><br />
<li>Wait for the cron job to process (around 10 minutes after you created it), then delete the cron using the "Delete" link to the far right of it in the "Advanced (Unix Style)" area:
<center><img src="http://rubyasylum.com/images/delete.gif" alt="Delete" /></center><br />
Please note that it is <span style="color:red; font-weight:bold">very</span> important that you perform this delete step so this cron does not keep running daily as you only want it to run this one time for the database migration.</li>
</ol>
</p>
<p>I. Loading up Tableau in a browser:<br />
<ol>
<li>Now you can load up your Tableau script in a browser using <a href="http://yourdomain.com/gallery/">http://yourdomain.com/gallery/</a> (replace yourdomain.com with your actual domain name).</li>
<li>You should a login link on the left hand side. Click this to sign up to the new gallery. For examples on administering your gallery, please see the <a href="http://creativi.st/blog/articles/2006/02/27/tableau">tableau site</a>. For a demo of Tableau, please see <a href="http://gallery.rubyasylum.com">gallery.rubyasylum.com</a>.</li>
</ol>
</p>
<p>Have fun with your new gallery!</p>replica watchesurn:uuid:cbf42967-cab2-40b7-91d7-ab1a64a85f802010-03-12T18:56:08-08:002010-03-12T18:56:08-08:00Comment on Tableau Installation (Shared cPanel Servers) by replica watchesthanks for the sharePoker affiliate programurn:uuid:41d4391a-d8ca-4a6c-8344-fbe8c9ca65932010-03-05T04:22:19-08:002010-03-05T04:22:19-08:00Comment on Tableau Installation (Shared cPanel Servers) by Poker affiliate programWe do appologise bout that. Realized after the fact that your character wuz not a companion. Like the concept that she follows much better, and I thiink that in the case of what I wuz able to glean that this must have been a good day. Find Obsolete Integrated Circuiturn:uuid:f6e154d5-2f12-441f-86b0-3232bebcbb092010-03-04T01:37:03-08:002010-03-04T01:37:03-08:00Comment on Tableau Installation (Shared cPanel Servers) by Find Obsolete Integrated CircuitI really love to read articles that have good information and ideas to share to each reader.Cheap bridesmaid dressesurn:uuid:861082d0-a438-46dd-87e3-2eab0d083f7a2010-03-04T00:43:05-08:002010-03-04T00:43:05-08:00Comment on Tableau Installation (Shared cPanel Servers) by Cheap bridesmaid dressesThose polls members will confirm. These numbers come on top of record levels of participation by Black voters in the Democratic primaries, all of which indicate that Black turnout in the general election. easybookmarkingurn:uuid:36462494-6224-4341-89b1-7d275c40b9dd2010-02-18T01:39:46-08:002010-02-18T01:39:46-08:00Comment on Tableau Installation (Shared cPanel Servers) by easybookmarkingI thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful.bookmarksiteurn:uuid:d7988421-78c9-4ba0-b278-c5a44020a50b2010-02-18T01:37:44-08:002010-02-18T01:37:44-08:00Comment on Tableau Installation (Shared cPanel Servers) by bookmarksitehelpful information indeed. thanx for your sharing with all of us. continue your great job, and always gain my support!anybookmarkurn:uuid:e1538435-8924-4bd8-a236-40015a4bcfea2010-02-18T01:37:07-08:002010-02-18T01:37:07-08:00Comment on Tableau Installation (Shared cPanel Servers) by anybookmarkIt would be more interesting if you enlarge the font. That is a friendly criticism. (I had to wear my lens just to read it). Web content writing serviceurn:uuid:50d6094a-c280-4bd3-8d5a-116d5e3a77a02010-02-10T02:17:00-08:002010-02-10T02:17:00-08:00Comment on Tableau Installation (Shared cPanel Servers) by Web content writing serviceHi...Your post really got me thinking man..... an intelligent piece ,I must say. Vay mua nhaurn:uuid:01eded6e-c228-4171-ac0c-eef18b666fae2010-02-04T23:43:35-08:002010-02-04T23:43:35-08:00Comment on Tableau Installation (Shared cPanel Servers) by Vay mua nhaGreat post, thank you for sharing,Speed Dating NJurn:uuid:ad53ceeb-4bc6-4bf5-bdf2-fa57012b97cf2009-08-15T00:31:58-07:002009-08-15T00:31:58-07:00Comment on Tableau Installation (Shared cPanel Servers) by Speed Dating NJI thought your explation on the installation was the most thorough I have ever read. Thanks.volunteer in cambodiaurn:uuid:414d7143-ab6f-455e-984d-c3daaba2d8672009-08-10T21:49:56-07:002009-08-10T21:49:56-07:00Comment on Tableau Installation (Shared cPanel Servers) by volunteer in cambodiaHi... that was great stuff.. I really like reading on this subject Could you tell me more on that... I love to explore dasong@gmail.comurn:uuid:be618c19-2fde-4f55-a8f9-34e11d9879d12008-01-11T23:21:21-08:002008-01-11T23:21:21-08:00Comment on Tableau Installation (Shared cPanel Servers) by dasong@gmail.comit's actually now a "Rails application failed to start properly" error.
dasong@gmail.comurn:uuid:c1348908-39fd-4eef-add1-4d61239127262008-01-11T23:18:53-08:002008-01-11T23:18:53-08:00Comment on Tableau Installation (Shared cPanel Servers) by dasong@gmail.comhi Danielle, i followed this tutorial to the T and i am getting 404 errors. my account is on the LP lasair server. Could it be that there's something wrong with rails on that server? None of my rails apps are working on this server. thanks, Davidonline casinourn:uuid:91b14bda-437d-43fc-89b6-a49e4517e4fa2007-11-27T09:28:50-08:002007-11-27T09:28:50-08:00Comment on Tableau Installation (Shared cPanel Servers) by online casinoLesen Sie alles über Internet Casino spielen und die Tücken des Spielens im Internet mit oder ohne Kreditkarte.