Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mahara 1.2 E-Portfolios: Beginner's Guide

You're reading from   Mahara 1.2 E-Portfolios: Beginner's Guide Create and host educational and professional e-portfolios and personalized learning communities

Arrow left icon
Product type Paperback
Published in Feb 2010
Publisher Packt
ISBN-13 9781847199065
Length 264 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Toc

Table of Contents (15) Chapters Close

Mahara 1.2 ePortfolios
Credits
About the Authors
About the Reviewers
1. Preface
1. What Can Mahara Do for Me? 2. Getting Started with Mahara FREE CHAPTER 3. Add Files and Blogs to Your Portfolio 4. Views 5. Working in Groups and Interacting with Friends 6. Site Settings and Exporting Your Portfolio 7. Institution Administrators, Staff Members, and Group Tutors Mahara Implementation Pre-Planner Installing Mahara Pop quiz - Answers

Time for action - setting up the data directory


  1. 1. Create the data directory in the public folder of your home directory. We will create the directory using the mkdir command and call it uploaddir:

mkdir uploaddir

Note

It doesn't really matter what you decide to call your dataroot directory, but try to choose a name that is relevant to what the directory is doing. The name suggested by Mahara and the most commonly used name is uploaddir, but other names such as maharadata would be just as good.

  1. 2. Set the permissions on this folder using the chmod command:

chmod -R 0777 uploaddir

  1. 3. Change the user of the new directory to be the same as your server using the chown command. The user is usually apache or www-data:

    chown -R www-data:www-data uploaddir
    
    
  2. 4. And that's all there is to it, we now have a place where Mahara can put all of the stuff belonging to our users.

What just happened?

What we have just done is really very simple, so hopefully you aren't feeling bogged down with all those commands you had to type.

We created our data directory and made sure that it was in a safe place in your home directory above the htdocs directory. Then we changed the permissions, users, and groups for the directory to make it easy for Mahara to put things in and to delete things.

Let's take a quick look at the file structure that we have just created for our Mahara installation:

So far we have downloaded and put the Mahara files into place on our server and seen how to create the database and dataroot needed to store all the Mahara information.

Now, we have to hold Mahara's hand by letting it know how it can access the database and how to find the dataroot. To do this we use an important file called config.php.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image