• Contact
  • About
Jon Moore Tips 'n' Snips
  • Uncategorized
  • PHP
    • MySQL
    • Handy Functions
  • jQuery
  • Javascript
  • HTML & CSS
  • Drupal
  • WordPress
  • RSS Feed

Drupal 6 Set-up on Heart Internet

Posted in: Drupal
This is more for myself, but good if it helps someone else too…. This is a Drupal 6 (6.22) set-up on Heart Internet hosting (Reseller account). Once the hosting account...

This is more for myself, but good if it helps someone else too….

This is a Drupal 6 (6.22) set-up on Heart Internet hosting (Reseller account).

  • Once the hosting account has been set-up and the ‘install hour’ has passed, go to the ‘Manage Hosting Accounts’ page (https://customer.heartinternet.co.uk/manage/manage-packages.cgi) and select ‘Super User’ for the account you want to set-up.
  • From the ‘Control Panel Home’ page, select ‘Drupal CMS’ from the ‘CGI Scripts’ section near the bottom of the page.
  • Choose the location. Normally we’re installing at ‘root’ so leave the box blank. Press ‘Install Now’.
  • Once it has installed the scripts and database for you, you’ll notice 2 links near the bottom of the page. Both link to the domain name root (i.e. http://domainname.co.uk) however one will have the server name at the front (i.e. http://79.170.44.155/domainname.co.uk). If the first one works, use it, however if the domain name isn’t quite ready (DNS records) use the 2nd….
  • You are now at the beginning of ‘Drupals Installation Process’. Simply follow the instructions page by page adding in the Site Name, Your email address, Username and Password. Once done you’ll be at a familiar ‘welcome’ page…
  • Using Dreamweaver, download the ‘sites’ folder, which includes the ‘all’ and ‘default’ folders.
  • In the ‘default’ folder is the ‘settings.php’ file used to configure the database, etc. Open this file and locate the PHP settings, normally on lines  156 to 167.
  • Add a new line on the end to increase the memory allocation and to stop ‘white pages’ on heavy resource pages like ‘modules’ and ‘blocks’. So line 168 can become:
    ‘ini_set(‘memory_limit’,’516M’);’.
    Save and upload.
  • In the ‘all’ folder we need to add folders for the ‘modules’, ‘themes’, libraries’ plus our own ‘clereJquery’ folder. This is easiest done by copying the ‘all’ folder from another site already set up. It’s worth noting here that you don’t need to copy a theme already in the ‘theme’ folder unless you intend to use it… Like wise, you can copy a theme from another Drupal site into this folder if you want to use it. The ‘theme’ folder can contain as many themes as you want available, but it’s best to just copy the one you intend to use…
  • Upload your ‘new’ ‘all’ folder with your modules and themes.
  • Now you can go back to your browser and log into the site using the username and password you added a few steps ago…
  • Once in, we need to set a few basic thing up, so first we’ll start with ‘Modules’….
  • Go to ‘Administer > Site Building > Modules’ (or use this admin/build/modules for speed).
  • Preferably with another similar site open, tick the modules you are going to need, a suggestion is:
    • Administration
      • Administration Menu
    • CCK
      • Content
      • Content Copy
      • Fieldgroup
      • Number
      • Text
    • Core Optional
      • Aggregator
      • Contact
      • Database Logging
      • Help
      • Menu
      • Path
      • Taxonomy
      • Update Status
      • Upload
    • Event
      • Event
    • Image
      • Image
      • Image Attach
      • Image Gallery
    • Mate Tags
      • Admin interface for Nodewords
      • Basic meta tags
      • Extra meta tags
      • Nodewords
      • Site verification meta tags
    • Other
      • Clone modules
      • Global redirect
      • Googtube
      • IMCE
      • Lightbox 2
      • Path redirect
      • Pathauto
      • Sitemap
      • Token
      • Transliteration
      • Weather
    • SEO Compliance Checker
      • Basic SEO Rules
      • Keyword Rules
      • SEO Compliance Checker
    • User Interface
      • IMCE Wysiwyg API bridge
      • Wysiwyg
    • Views
      • Views
      • Views Exporter
      • Views UI
  • Next we need to set the default time zone (admin/settings/date-time), to ‘Europe/London’, plus the date formats and the ‘First day of the week’.
  • Nodeword Meta tags can be set-up here: admin/content/nodewords
  • The ‘Event’ content type needs to be created by going here: admin/content/node-type/event
  • Set ‘Full HTML’ as the default Input Format here: admin/settings/filters/list
  • Set WYSIWYG editior here: admin/settings/wysiwyg for ‘Full HTML’, then press ‘Edit’ to select the icons to use. Suggestions under ‘Buttons and plugins’:
    • Bold
    • Italic
    • Underline
    • Bullet list
    • Numbered list
    • Outdent
    • Indent
    • Undo
    • Redo
    • Link
    • Unlink
    • Image
    • Remove Format
    • HTML block format
    • Paste from Word
    • IMCE
  • Set ‘Automated alias settings’, here: admin/build/path/pathauto. Drop ‘Node paths’ down and change:
    • the default from ‘content/[title-raw]’ to just ‘[title-raw]’
    • ‘Event’ to ‘event/[eventyyyy]/[eventmon]/[eventdd]/[title-raw]’
    • ‘image’ to ‘image/[title-raw]’
  • Check for available updates here: admin/reports/updates. Download and install any updated modules, unzip, upload, etc.
    • Run ‘Updates’ to make sure the new modules are in sync with the database. (www.domain.co.uk/update.php?op=info)
  • Check ‘Status Report’ (admin/reports/status) for any issues, run cron and check again.
  • Create a ‘Home’ page, then go to ‘Site Information (admin/settings/site-information) and change the setting ‘Default front page’ at the bottom from ‘node’ to ‘home’. Note: this is assuming you home page URL is ‘/home’…
  • Set up ‘Scheduled Tasks’ from the Heart Internet Control panel. It’s under ‘Web Tools’.
    • Under ‘Run this command’ paste: /usr/bin/php5 /home/sites/##########.co.uk/public_html/cron.php
    • Change ‘##########’ for the domain name (no www.) and leave the other settings as they are.
    • Press ‘Update’ to save.
    • To test if it’s working, press ‘Test Command’, and you should get a message back ending with ‘Content-Type: text/html; charset=utf-8’.
    • Go back to Status Report, (admin/reports/status), and under ‘Cron maintenance tasks’ it should say ‘Last run’ and then how many minutes/seconds ago you pressed ‘Test Command’.
  • Install a theme here: admin/build/themes, make sure that the only theme enabled is the one you uploaded to the ‘theme’ folder. Press ‘Save Configuration’. If everything has gone to plan, you should be looking at an empty site with your selected theme. If images are missing, it’ll just be the path in either the stylesheet, page.tpl.php or template.php files….
  • Reset Blocks (admin/build/block)  – Remove ‘Powered by Drupal’, ‘Navigation’ and ‘User Login’ from their regions by selecting ‘<none>’ from their dropdown lists and press ‘Save Blocks’.

Related posts:

  1. WordPress bloginfo()
  2. Handling File Downloads with PHP
  3. Drupal Views – Table Tags
  4. How To ‘Piggyback’ Drupal
  5. $_SESSION in Drupal

This post has had 22 views

Tags: Address Username, Cgi Scripts, Control, Control Panel, Default Folder, Default Folders, Dns Records, Domain Name, Dreamweaver Download, Drupal Cms, Heart, Hosting Reseller, Libraries, Memory Allocation, Memory Limit, PHP, Reseller Account, Server Name, Using Dreamweaver, White Pages

No Comments

Start the ball rolling by posting a comment on this article!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Featured Stories
  • Most Viewed
    • JavaScript Dot Operator List - 170 views
    • Drupal Views – Table Sort - 136 views
    • Get a users IP Address - 127 views
    • PHP Email Contact Form - 110 views
    • WordPress – How to Increase Maximum upload file size: 2MB - 72 views
    • Create getElementsByClassName() function for use in IE - 68 views
    • Check if user is ‘logged in’ or is ‘admin’ - 67 views
    • IE session bug is solved - 58 views
    • mysql_insert_id() - 49 views
    • My Escape Data Function - 42 views
  • RSS MJ Digital
    • LDAP authentication with Active Directory using PHP
    • PHP display errors at runtime
    • Track XML or server-side files using Google Analytics
    • Anatomy of a good internet marketing campaign
    • Does Google prefer shorter domain names
    • Bulk filename rename tool
    • Another website award
    • How to use Twitter for business
    • PHP upload, resize and crop image class
    • Validate email in JavaScript or ActionScript
  • RSS Sitepoint
    • Google’s Doodle and Why it Hertz my Brain!
    • MySQL Master-Slave Replication: Starting Replication
    • SitePoint Podcast #150: The Vendor Prefix Kerfuffle
    • DesignFestival: CSS Menus, Multiple Backgrounds, and More

Copyright Jon Moore. All Rights Reserved.