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 - creating the config.php file


  1. 1. In the htdocs folder of your Mahara site you will find a file called config-dist.php. Use the nano command in your terminal to start editing config-dist.php file.

nano config-dist.php

Note

Other Linux people use much more sophisticated text editors like Vim (http://www.vim.org/) and Emacs (http://www.gnu.org/software/emacs/). We are simple folk and are perfectly happy with nano: http://www.nano-editor.org/.

  1. 2. You will now see the file open on the command line. Use the arrow keys on your keyboard to scroll up and down the page until you get to a section called database connection details. In the following example the user is using mysql5, rather than PostgreSQL. Fill in the information so that it matches the details you used to set up your own database:

  1. 3. Next, continue scrolling down the file until you reach a line that starts with $cfg->dataroot. Here, you must fill in the full path from the server root directory to the data directory we created earlier in this chapter.

  1. 4. Congratulations, you've now finished editing the configuration file. Save it by clicking Ctrl + C on your keyboard. When asked if you would like to rename the file, type Y for yes and name the file config.php.

What Just Happened?

What we just did was very important, we let Mahara know where the database is and the password needed to access it. We also let it know the location of the dataroot directory.

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