Hieraki Install (Shared cPanel Server)

Posted by Miraenda Mon, 12 Jun 2006 16:27:00 GMT

This version of Hieraki requires Rails 1.0 or later with FastCGI and MySQL 4.1 series. The current servers that this will work on are Alcor, Gallifrey and Telos.

Additionally, please note that Hieraki requires syntax and redcloth gems. These are already installed on Alcor, Gallifrey and Telos.

A. Creating your database for Hieraki:

  1. Log into cPanel and click on MySQL Databases icon:
  2. MySQL Databases
  3. As per the example below, enter hieraki in the "New Database" field under Current Databases area, then click "Create Database" button. Your full database name will then show as cPaneluser_hieraki.
  4. Curent Databases
  5. Under Current Users area as seen in the example below, enter hieraki 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 cPaneluser_hieraki.
  6. Curent Users
  7. Under Add Users to Your Database area as shown below, select in the "User" dropdown cPaneluser_hieraki and select in the "Database" dropdown cPaneluser_hieraki, then click "Add User to Database" button.
  8. Add Users to Your Databases

B. Get a Copy of Hieraki

Download a copy of the current release from here. After obtaining a copy that you have saved to your system, you can then proceed with the next steps.

C. Upload Hieraki Using cPanel:

  1. Log into cPanel.
  2. Click on "File Manager" icon:
  3. File Manager
  4. A new window will open. In that new window, click on "Upload File(s)" link toward the top:
  5. Upload File(s)

  6. The page will load new content. Click one of the "Browse..." buttons:
  7. Browse

  8. The Windows "File Upload" dialog prompt will open. Navigate to where you saved hieraki.tar.gz on your system, highlight hieraki.tar.gz, then click the "Open" button.
  9. File Upload

  10. Back at the File Manager screen where you have the "Browse..." button, click the "Upload" button:
  11. Upload button

  12. Hieraki will begin uploading. Please note that it might take awhile for it to upload, usually around 3-7 minutes depending on your connection speed.

D. Upload Hieraki via FTP:

If you prefer to use FTP to upload so you see the progress of the file upload, try the following instead

  1. Open your FTP client and access your account via FTP with most clients using the following to connect:
    Host/Address: domain.com
    Username: cPanelusername
    Password: cPanelpassword
  2. Highlight the file hieraki.tar.gz on your system where you saved it and right click.
  3. 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)
  4. Wait for the file to complete uploading.
  5. You can view an image of what Filezilla FTP client would look like for this process at this location.

E. Extracting Hieraki:

  1. Log into cPanel if you aren't already logged into it.
  2. Click on "File Manager" icon if you aren't already in there:
  3. File Manager
  4. A new window will open for File Manager, then click on the hieraki.tar.gz file name (not the icon):
  5. Hieraki Archive File

  6. In the upper right hand corner, there are a list of links. Select "Extract File Contents" link in that list:
  7. Extract File Contents

  8. 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.
  9. In the File Manager window, refresh your browser. You should now see a folder called hieraki there:
  10. Hieraki Folder

F. Changing the database.yml file for your database details:

  1. In File Manager, click on the folder icon to the left of the hieraki folder:
  2. Hieraki Folder Icon

  3. Click on the folder icon to the left of the config folder:
  4. Config Folder Icon

  5. Click on the database.yml file name (not the icon):
  6. database.yml File

  7. In the upper right hand corner, click on "Edit File" link as shown below.
  8. Edit File

  9. A new window will open with the following contents:
    # You must use MySQL Versions 4.1 or higher

    production:
    adapter: mysql
    database: cPaneluser_hieraki
    username: cPaneluser_hieraki
    password: somepass
    # socket: /var/run/mysqld/mysqld.sock

  10. Replace cPaneluser with your cpanel username (there are 2 instances of this on lines 5 & 6). Do not remove the _hieraki part. For example, I would replace cPaneluser_hieraki with rubyasyl_hieraki for my rubyasylum.com account.
  11. In the password: line (line 7), replace somepass with the password you used when creating your database user earlier.
  12. Click the "Save" button, then close that window (keep the File Manager Window open though).

G. Changing the mail.yml file for your mail details:

  1. Back in File Manager, click on the mail.yml file name (not the icon):
  2. mail.yml File

  3. In the upper right hand corner, click on "Edit File" link as shown below.
  4. Edit File

  5. A new window will open with the following contents:
    method: :smtp
    settings:
      :address: domain.com
      :port:    25
      :domain:  domain.com
      :authentication:  :login
      :user_name: cPaneluser
      :password: cPanel password
  6. Replace domain.com with your domain for lines 3 & 5.
  7. Replace cPaneluser on line 7 with your cPanel username, then in the :password: at line 8 input your cPanel password.
  8. Click the "Save" button, then close that window (keep the File Manager Window open though).

H. Importing the database:

  1. In File Manager, click on the "Up one level" link toward the top to go back to the main hieraki folder:
  2. Up one level

  3. Click on the folder icon to the left of the db folder:
  4. Db Folder Icon

  5. Click on the schema.mysql.sql file name (not the icon):
  6. schema.mysql.sql File

  7. In the upper right hand corner, click on the "Show File" link:
  8. Show File

  9. A new window will open. Copy the contents of that file from the -- line to the bottom of the file. Paste those contents into notepad or some note program (do not use MS Word).
  10. Close the File Edit Window and Close File Manager Window.
  11. Back in the main cPanel area, click on "MySQL Databases" icon:
  12. MySQL Databases
  13. Sroll to the bottom of that area, then click on the "phpMyAdmin" link, which opens a new window:
  14. phpMyAdmin

  15. In the new window, click on the name of your database (should be cPaneluser_hieraki where cPaneluser is your cPanel username) on the left hand side:
  16. phpMyAdmin Database Selection

  17. In the top center, click on the "SQL" tab:
  18. SQL Tab

  19. Take the Notepad contents that you copied above in this section Step 3, then paste all of that into the Run SQL query/queries on database box in phpMyAdmin:
  20. Run SQL Query/Queries on Database Box

  21. Click the "Go" button:
  22. SQL Go Button

  23. Close out of the phpMyAdmin window.

I. Symlinking your folder to hieraki:

  1. In cPanel main area, click on "Cron Jobs" icon:
  2. Cron Jobs
  3. Click "Advanced (Unix Style)" button:
  4. Advanced (Unix Style) Button
  5. Enter the following as an example in the Advanced area:
    Minute Hour Day Month Weekday
    10     7    *   *     * 
  6. This would run the cron at 7:10am Pacific time each day of the week. Change the 10 to a time 5 minutes from the current hour (so if it is currently 11:27am, change to 32 for the Minute). Change the hour to the current hour (so if it is currently 11:27am, change to 11).
  7. Enter the following for the Command field:
    cd /home/username/public_html && ln -s ../hieraki/public wiki
  8. Replace username 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:
  9. Cron Jobs Advanced Screen

  10. After you click "Commit changes" button, then click the Go Back link on the new screen:
  11. Go Back link

  12. 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:
    Delete

    Please note that it is very 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.
  13. You can check if the symlink actually worked by going into "File Manager" area, clicking on the folder icon next to public_html, then on the folder icon next to the new hieraki folder that should now be in public_html folder. It should have the same contents that /home/username/hieraki/public does.

J. Loading up Hieraki in a browser:

  1. Now you can load up your Hieraki script in a browser using http://yourdomain.com/wiki/ (replace yourdomain.com with your actual domain name).
  2. You should then see the main siscreen where you can signup as a user to start creating pages. Enjoy your new wiki!

You can see an example of Hieraki at wiki.rubyasylum.com.

Posted in  | 2 comments | no trackbacks

Older posts: 1 ... 3 4 5 6 7 ... 11