Ruby Asylum: Tableau Installation (Shared cPanel Servers) http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers en-us 40 A place for those crazy about Ruby Tableau 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> Sat, 17 Jun 2006 19:56:00 -0700 urn:uuid:24bdaf68-151d-489e-95b1-9c554f226dbc Miraenda http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers Shared Server Tutorials http://rubyasylum.com/articles/trackback/14 "Tableau Installation (Shared cPanel Servers)" by replica watches thanks for the share Fri, 12 Mar 2010 18:56:08 -0800 urn:uuid:cbf42967-cab2-40b7-91d7-ab1a64a85f80 http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1534 "Tableau Installation (Shared cPanel Servers)" by Poker affiliate program We 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. Fri, 05 Mar 2010 04:22:19 -0800 urn:uuid:41d4391a-d8ca-4a6c-8344-fbe8c9ca6593 http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1507 "Tableau Installation (Shared cPanel Servers)" by Find Obsolete Integrated Circuit I really love to read articles that have good information and ideas to share to each reader. Thu, 04 Mar 2010 01:37:03 -0800 urn:uuid:f6e154d5-2f12-441f-86b0-3232bebcbb09 http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1506 "Tableau Installation (Shared cPanel Servers)" by Cheap bridesmaid dresses Those 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. Thu, 04 Mar 2010 00:43:05 -0800 urn:uuid:861082d0-a438-46dd-87e3-2eab0d083f7a http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1505 "Tableau Installation (Shared cPanel Servers)" by easybookmarking I 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. Thu, 18 Feb 2010 01:39:46 -0800 urn:uuid:36462494-6224-4341-89b1-7d275c40b9dd http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1493 "Tableau Installation (Shared cPanel Servers)" by bookmarksite helpful information indeed. thanx for your sharing with all of us. continue your great job, and always gain my support! Thu, 18 Feb 2010 01:37:44 -0800 urn:uuid:d7988421-78c9-4ba0-b278-c5a44020a50b http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1492 "Tableau Installation (Shared cPanel Servers)" by anybookmark It would be more interesting if you enlarge the font. That is a friendly criticism. (I had to wear my lens just to read it). Thu, 18 Feb 2010 01:37:07 -0800 urn:uuid:e1538435-8924-4bd8-a236-40015a4bcfea http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1491 "Tableau Installation (Shared cPanel Servers)" by Web content writing service Hi...Your post really got me thinking man..... an intelligent piece ,I must say. Wed, 10 Feb 2010 02:17:00 -0800 urn:uuid:50d6094a-c280-4bd3-8d5a-116d5e3a77a0 http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1471 "Tableau Installation (Shared cPanel Servers)" by Vay mua nha Great post, thank you for sharing, Thu, 04 Feb 2010 23:43:35 -0800 urn:uuid:01eded6e-c228-4171-ac0c-eef18b666fae http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1465 "Tableau Installation (Shared cPanel Servers)" by Speed Dating NJ I thought your explation on the installation was the most thorough I have ever read. Thanks. Sat, 15 Aug 2009 00:31:58 -0700 urn:uuid:ad53ceeb-4bc6-4bf5-bdf2-fa57012b97cf http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1390 "Tableau Installation (Shared cPanel Servers)" by volunteer in cambodia Hi... that was great stuff.. I really like reading on this subject Could you tell me more on that... I love to explore Mon, 10 Aug 2009 21:49:56 -0700 urn:uuid:414d7143-ab6f-455e-984d-c3daaba2d867 http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1389 "Tableau Installation (Shared cPanel Servers)" by dasong@gmail.com it's actually now a "Rails application failed to start properly" error. Fri, 11 Jan 2008 23:21:21 -0800 urn:uuid:be618c19-2fde-4f55-a8f9-34e11d9879d1 http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1369 "Tableau Installation (Shared cPanel Servers)" by dasong@gmail.com hi 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, David Fri, 11 Jan 2008 23:18:53 -0800 urn:uuid:c1348908-39fd-4eef-add1-4d6123912726 http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1368 "Tableau Installation (Shared cPanel Servers)" by online casino Lesen Sie alles über Internet Casino spielen und die Tücken des Spielens im Internet mit oder ohne Kreditkarte. Tue, 27 Nov 2007 09:28:50 -0800 urn:uuid:91b14bda-437d-43fc-89b6-a49e4517e4fa http://rubyasylum.com/articles/2006/06/17/tableau-installation-shared-cpanel-servers#comment-1360