Showing posts with label Tom Geller. Show all posts
Showing posts with label Tom Geller. Show all posts

Saturday, 20 October 2012

new start

Big business can pay for people to be polite to the executives by over-chargingAfter a day trying to change the Drupal version XXXfecking!x core, I decided that maybe someone else will work-out how to do this more simply in future as has been very well done for modules. I am still happy each time I download a module in a lazy way, knowing what a chore it was to move files about and read or amend text files next to them a year or two ago; so much depends on things that vary between individual users, like whether I had put my altered & site-specific files in a folder called "sites" away from the default files, and whether I have read the text tile called readme.txt which tells me to rename the default.settings.txt file to "settings.txt" and change a line in it. All fine if you're used to it and good at it but otherwise a bit like trying to fly before there were seats on cheap airlines; the choice is pay or make your own plane and ask strangers online for advice while they can't see what you are building. And if you're selling honest goods made in a democratic welfare state, there isn't the margin to pay, as McDonalds still do, to get a good version of Commerce Kickstart going.

Following the Youtube video by Tom Geller that I transcribed before, I'm using Aquia Drupal's stack installer. Can I just adapt the Aquia Drupal that comes with it from scratch? There is a nag message that says I should disable and delete all their chosen extra modules before it goes, and then says that some of the modules cannot be disabled. I ask the sales chat thingey: "How do I uninstall the Aquia modules? (I want to keep things simple for now and maybe use Aquia help later, so I want to start with core drupal and nothing else)"
Answer: "just go to drupal.org and download Drupal 7 core". So I am back to following the Youtube video by Tom Geller that I transcribed before.


Saturday, 10 December 2011

A confusion is that installation can work one day and not the next. Why?

If I could re-install a Drupal Commerce Kickstart on the Aquia Drupal installer, make sure I don't delete any related files, and then FTP those files up to the server at the same time I move the database content, that would be an excercise completed. I would know if a mismatch of database and surrounding files is making my test site wonky.

According to Drupal 7 Essential Training - Getting a Drupal site up fast the Kickstarter or Drupal files simply uncompress. I find that they don't and any software like 7zip or Pea Zip or windows XP's own unpacker reports a problem or asks for a password just in case that's the trouble. This stage must have worked for me at least once in the past so why now now?

Update 12/12: the same file dowloads, and when I click on it it opens to reveal a folder called Drupal, which is quite different to a couple of days ago. Clicking on this unzips it with Windows XP's built-in unzipper. Unzipping is strangely slow but it works. Meanwhile the old download file won't unzip and won't delete. I googled the error message and found that some people log-on as administrator to delete such stuff, others like me downlowd a program called Unlocker, which worked. You have to steer past several adverts on Softpedia trying to look like your dowload button so that you download other programs as well, but I managed to skip them this time.

Just as in Tom Geller video on Youtube, I can import the Drupal directory into my Aquia Drupal desktop. I deleted my old one and imported the new, giving it the same file name as the one on my server. And this time I didn't delete all the files in the folder after importing to the desktopy thing.


If anyone is interested in Ubercart video tutorials which are meant to be a quick way to get an ecommerce site online, this is a list of some available:

Transcribed videos: -
[Drupal 7 / Ubercart video tutorial 7 of 10 showed how to use the default catalog module]
[Drupal 7 / Ubercart video tutorial 8 of 10 showed an alternative flexible method of showing a catalog]
[Drupal 7 / Ubercart video tutorial 9 of 10 shows how to use product kits, stock, and order states]
[Drupal 7 / Ubercart video tutorial 10 of 10 shows a simple checkout, reports, and suggests a theme]

Tuesday, 29 November 2011

Getting a Drupal site up fast - Drupal 7

Drupal 7 Essential Training—Getting a Drupal site up fast  - Tom Geller 

You've probably looked at the dozens of videos in this course and said:
"whoa! wait a second. I just want to get my site up".
This video gives you only the most bare instructions to get a Drupal site running, and then tells you which other videos to watch for more help.
There are basically three steps.
  1. 1st, we'll download and install the Aquia Drupal Stack Installer, also known as DAMP. [or "dev desktop"]
  2. 2nd we'll download and install Core Drupal - that's the Drupal you get from Drupal.org -  into that DAMP.
  3. 3rd, we'll run Drupal's browser-based installer. And that's it! Then we'll be ready to add content and administer our site.
Now, along the way, I'm going to do this very very quickly, and in fact I have already down-loaded some of these files and un-compressed them. If you have any problems with these steps, see the computer literacy course by Garrick Chow, also on Lynda.com.
1: Stack Installer
But - let's get started. Our first stop is at http://acquia.com/downloads Here we get started by looking over here for the platform we're on. Here we're on Windows so I just click "download now" and save it. That'll take a few moments. We then go to our download location which in my case is the desktop, and double click the file that's been downloaded there [which shows as a blue droplet]. Your computer may throw-up a message that warns you about installing a program from the internet. In this case, I know we want to do it so I click "yes".

That launches the Drupal Stack Installer. I'm just going to click through this. You really don't have to change any of the defaults.  I'll explain what they are in a later video about installing the Drupal stack installer.

Finally we get to the stage where we're finally going to name our site. We're actually going to replace the version of Drupal that's installed by the Acquia Stack installer, so it doesn't matter what we put here. Still, for consitancy, I'll say
  • User name is admin, and
  • Password, as it is throughout this course, is drupal. You of course will use whatever password you prefer. And an email address. And then click next.
You get a confirmation screen, click next again, and then one more time to install the Stack installer. This process will take a few minutes ... and we're done! Click Finish.
2: Core Drupal
That launches the control panel for aquia Drupal. So that's our first step completed. Now we want to grab core Drupal, and import it into this stack. To do that, we go back to our web browser, and go to https://drupal.org/project/drupal Scroll down on this page until you get down to the downloads area. Now: I'm making this video before the official release of [Drupal version]7.0 so I'm going to download this one. However, by the time you see it, you'll probably see a 7.0 or a 7.something version of it up here in the green area, and that's the one that you should download.

I click here to download. I've already done it, and the download is on the desktop. So I'll go there, and I'll start the import process.

So there's our Drupal folder after its been un-compressed. If you have any problems with that, watch Garick Chou's videos on computer literacy, also on Lynda.com . I'm going to rename that folder "Two Trees". That goes-along with the name of the site that we'll be building throughout the course, which is about a fictional olive oil company called Two Trees Olive Oil.

Once we've renamed the folder, I go back into my control panel. Go to Settings. And Sites. And Import. (The button opens a file listing of the hard disc). I find that folder (Drupal, renamed Two Trees) and click OK.

Create a new database. I'll call that "Two Trees" as well. And call the server "Two Trees". And click Import.
3: Drupal's Browser-based installer
Doing so launches our browser, and starts the third stage of our installation process, by opening Drupal's own installer. Click Save and continue, and continue-on. Again, I will go through all these steps individually in a later video. Finally we add a little bit of information about the site, including the primary - what's called the Super User. I'll call this Two Trees Olive Oil. Put in a little bit of other information. Finally click Save and continue. And that takes us to our completely installed Drupal site. Click on Visit your new site, and we are done!

Now you can start adding content to your new site, changing the design, managing users - basically doing everything it takes to make this site your own.

If you just need a quick and dirty way to get started, see the video Learning Drupal's Basic Workflow. Then, once your site is ready on your laptop or desktop computer, you can move that installation to a server, which you'll learn about from several videos entitled Installing Drupal on a Server.[note: you need to re-start the program from Windows > Start > Acquia Dev Desktop or such each time you re-start your computer.]

Importing Commerce Kickstarter into Aquia Drupal desktop.

There is a video by Tom Geller of Lynda.com about this, but I lost it and got a 1 week pass on Lynda.com fo
Installing Drupal Commerce using Commerce Kickstart

The free forever video is http://www.youtube.com/watch?v=rubREehi7qY
Install Aquia Drupal desktop, which no mysteriously works. I remember something about using the Zip version on the right and not the more compressed Tar version on the left of the download page because of a windows bug.

Unzip Drupal Commerce Kickstarter, which is a full version of Drupal with an extra shop bit, and name it something nice like "Two Trees" for a fictional Olive Oil Company in California.
Next, open the control panel of Aquia Drupal desktop from the start menu, and click-about on it till you find an "import" button. It's under settings>Sites>Import.

An "Import Site" form pops-up with boxes to fill in:
"codebase": Two Trees
"database" Click the option to create a new database, and name it Two Trees. A spare box dissapears.
"domain server": change "localhost" to "two trees". Ignore the other boxes under "domain server".



On the video, a Drupal install starts at this point with options of plain drupal or this Kickstarter thing.
On my screen, an error message pops-up reading

"hosts file doesn't exist or is not writable/ 'C:\WINDOWS\System32\drivers\etc\hosts' "

Googling for answers I found one on the linked page:

"Windows only" go to:

Posted on July 19, 2010 - 7:48pm by Ouail E..
"Windows only"
go to: C:\windows\system32\drivers\etc
locate the hosts file, right click it, click properties, un-check Read only, create your new site via the Acquia CP.
when all done, go back to the hosts file and check red only.
should work fine.


 Clicking from the My Computer link, I found there really is a file called HOSTS in one called ETC, and right clicking allows a change to writable from read only.



Bizarrely, it works: a set of Drupally forms appears and a site is set-up. I chose not to install a mail server with the Aquia Drupal Desktop, which could be why there's an error message:
  • Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in DefaultMailSystem->mail() (line 76 of C:\temp\veganline\modules\system\system.mail.inc).
  • Unable to send e-mail. Contact the site administrator if the problem persists.

I will pretend I didn't see that because underneith it says Congratulations, you installed Drupal Commerce!  - and has a link to visit the new site on my hard disc.



The new site wants some updates, and knows where to get them. They download straight into the site which swallows them a lot more smoothly than my Drupal experiments crammed onto shared hosting. Those ones often run-out of memory during an update and need a few goes with the alt-backarrow keys and repeated tries before the update works. This manages all the updates at once without a hitch. Except for updating Drupal Core which is more manual. This is a warning transcribed from the video while I still have a free subscription.


Now for you experienced Drupal folks, I want to show you something very quickly about how Drupal Commerce sets things up. It's a little different from how standard Drupal does things, and that means you have to watch out when you update your site. To show you that I'll go back to my [hard disc] and open up my [kickstart] folder.

INCLUDES
MISC
MODULES

PROFILES
-MODULES  
--ADDRESSFIELD
--COMMERCE
--CTOOLS
--ENTITY
--RULES
--VIEWS
SCRIPTS
SITES

-ALL
--MODULES
---- SITES Now normally in Drupal, all the information that's specific to your site is in this Sites folder here....
--THEMES
--readme.txt
-DEFAULT
-TWOTREES
example.sites.php
THEMES



...it would be in Modules, and then "Modules" would contain the modules, but you don't see them here. This is because Kickstart is a profile: All of the information is stored in 
PROFILES

Now I'm talking about the things that are specific to Commerce Kickstart - the modules, and the way that it is set-up - and if we open this PROFILES/MODULES folder, we see all of this extra stuff. In fact the PROFILES/MODULES/COMMERCE folder contains all the stuff that is specific to Drupal Commerce.

I mention this because if you try to update the site the normal way, by just replacing everything except for the SITES folder, you will actually loose all of your commerce functionality, so be careful about that.


The video doesn't say which other folders to keep. Presumably the PROFILES/MODULES/COMMERCE one.