Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Installing Moodle.

Talk:Installing Moodle

From MoodleDocs
Revision as of 15:30, 3 March 2009 by Helen Foster (talk | contribs) (→‎Page too long: many thanks to Chris)

Additional requirements

Should the installation page mention some of the more detailed PHP requirements also, like GD library and the FreeType 2 library on Linux/Unix boxes to be able to look at the dynamic graphs that the logs pages make? Samuli Karevaara 13 January 2006 11:10 (WST)

Yes, good idea - please contribute :-) Helen Foster 13 January 2006 11:35 (WST)

Please add to the "Requirements" section of the Installation Instructions something such as:

During Installation of Moodle the PHP Memory Limit should be set to 16M. Many commercial hosting providers have this set to 8M only. To find out your PHP Memory Limit use PHP Info. You may have to ask your service provider to increase the PHP Memory Limit before you can complete the installation.

Thanks for your help.


maybe this could be a good place to mention something for BUG 4937 "some SCORM objects contain HTC files which are not automatically supported by APACHE, if you are using APACHE and make use of large numbers of SCORM objects then you may want to add the following MIME Type.... etc.... see here for details: http://moodle.org/bugs/bug.php?op=show&bugid=4937&pos=24 --Dan Marsden 13:57, 8 June 2006 (WST)


confused about

1) Reload the grant tables using the mysqladmin program:

#mysqladmin -u root -p reload
Enter password:
'requires reload priviledge'

2)And some example command lines for PostgreSQL:

  # su - postgres
  > psql -c "create user moodleuser createdb;" template1
...

What's the PostgreSQL about?

Dennis German 20:13, 28 January 2008 (CST)

It's another database server you can use with Moodle instead of MySQL. Richard Enison 02:39, 6 August 2008 (CDT)

Some things I came across

First-time user of Moodle, so I'm commenting here rather than editing, just to be on the safe side :-) -- two things have caught my attention:

  • "# mysqladmin -u root -p reload" -- this step is unnecessary. The reload command is only for when you fiddle directly with the mysql permission tables, but not needed when you do a GRANT.
  • "Remember by default, mysql won't accept moodle data directories created under ROOT" -- not sure what is meant by this sentence? The data directory in question is for storing files, not db data, right?

--Carsten Pedersen 18:14, 27 January 2007 (CST)

Right. I think it means directories created and owned by the root (o/s) user. --Richard Enison 04:28, 23 November 2007 (CST) But you've got a point. I don't know what that has to do with mysql either. --Richard Enison 02:42, 6 August 2008 (CDT)

Ref:PHP and MySQL

Should there be special comment on the use of "--with-mysql" and "--with-mysqli" PHP configure options and outcomes (if any) for Moodle functions?

--Paul Trudt 13:12, 7 August 2007 (CST)

Re: "PHP Extensions and Libraries": Some guidance in how to enable or install those recommendations in the php.ini file would help me, so I imagine it would help others too. I'm in the default php5 php.ini file right now, and it says,

`[mbstring]

language for internal character representation.
mbstring.language = Japanese`

--but I don't know what to do with that to make it what Moodle needs.

Otherwise, smooth sailing so far. :) --Clay Burell 07:01, 28 July 2008 (CDT)

Structure of moodle directory

Hi there,

I'm also new, so I try this way rather than editing directly. The "Structure of moodle directory" lists the directory "doc" which didn't come with the current 1.7.1+ version I downloaded.

Sandra Reitz 04:17, 16 February 2007 (CST)

Installing on Netware

Under system requirements this page indicates that it is possible to install on Netware 6.5. The latest versions of PHP for Netware appear to be 4.2.3 and 5.0.5, while Moodle 1.8 requires 4.3.0 or 5.1.0. This means that Moodle is no longer supported on the Netware platfrom and the documentation should indicate this.

- Looking at http://forge.novell.com/modules/xfcontent/downloads.php/php/GCC%20Built%20Daily%20Releases there appears to be a download for php 5.1 (built in 2006-02, so it's old). I don't have a novell install anymore, so please can you confirm this. --Ken Wilson 06:21, 7 May 2007 (CDT)

Using a .htaccess file for webserver and PHP settings

under the above section are .htaccess settings such as

php_flag magic_quotes_gpc 1

As I correct in saying these would not work if running php as a .cgi? If so, it needs saying.

Regarding the "Run the Install" job section. At least in Windows installs, you need to edit the config.php-dist file (which has template specs for various file loscations) and insert all the information about your install - root directory, database name and credentials, and data directory location. Then you can run the Install.php job and step through the process.

Missing documentation for Multiple Servers Installation

I think that section 5.5 creating the data directory should mention whether it is possible to define a folder which is located on a remote server.

Is it possible? – I try to do that by mapping a drive on a Windows Server to another server. Will update you on the results.

Also, I agree that the title of the section is misleading: Data directory implies Database. Files Directory or Uploads directory, are better options, to my humble opinion. טל בודק 04:07, 1 June 2008 (CDT)

I agree with you about the section name change. The Window's complete install packages call this folder by default Moodledata. I would suggest that be in the section name as well. Maybe "Moodledata and uploaded files directories" would help the new user. Old pros will get it right away :)--Chris collman 06:13, 11 June 2008 (CDT)

Missing documentation for pear

Pear is included in Moodle /moodle/lib/pear/ but it not called directly.

for e.g. in file /moodle/lib/formslib.php

require_once 'HTML/QuickForm.php';

For this to work either all these pear packages must be installed on server or /moodle/lib/pear/ should be included in php include_path.

Should this be mentioned in documentation or developers might want to upgrade code in a way that will eliminate this problem.

require_once $CFG->libdir.'pear/HTML/QuickForm.php'; (Don't know how good or bad it may be)

New Installing from Command Line section

What's the deal with the Installing Moodle from the Command Line section of this page? It was added August 3, 2008 and doesn't seem to apply to any version of Moodle from 1.8.3 to 1.9.2+. See this post. --Richard Enison 20:22, 13 August 2008 (CDT)

magic_quotes_gpc on Windows

Under the Requirements : Software section it is stated that magic_quotes_gpc should be ON. When I turn it ON under Windows Server 2003 and IIS 6 I encounter the 'apostrophes get slashed' problem like the one described in http://moodle.org/mod/forum/discuss.php?d=102156.

Setting magic_quotes_gpc to off resolves the problem and apostropes don't get slashed. Should Installing Moodle be updated to say that Windows users should set magic_quotes_gpc to off? I don't know what the implications will be for *nix users though.

Additionally, according to http://php.net/magic_quotes, Magic Quotes has been deprecated and removed as of PHP 6 which strengthens my argument for switching magic_quotes_gpc off. Am I correct?

Installing on FreeBSD 7.0

Notes on installing on FreeBSD 7.0-RELEASE-p5.

See Install Moodle on FreeBSD Move comments by --Paul Takemura 20:00, 1 November 2008 (CDT)

Problems with install tutorial for new cpanel - swf cuts out at 12:27...incomplete file?

http://ic.eflclasses.org/tutorials/settingupmoodleoncpanel.swf

Thanks, I've removed the link and have have moved the tutorial for the old cpanel to the see also section. --Helen Foster 03:38, 5 February 2009 (CST)

Page too long

It seems that Installing Moodle has become too long. Any suggestions for shortening it? --Helen Foster 03:39, 5 February 2009 (CST)

Since you asked. I noticed the LONG preamble(s) include stuff which could be condensed in several time tested MoodleDocs methods.
  • planning for a Moodle Install
  • requirements for a Moodle Install
  • setup Apache files, MySQL files, and such. I am pretty sure I have seen alot of this elsewhere in MoodleDocs. Software is also about Setting up
  • Structure of Moodle directory could be elsewhere (good to know)
  • Create a new course is really "now test it" can be done with links elsewhere.

--Chris collman 15:12, 5 February 2009 (CST)

I asked for comments in several forums before making the switch. I created new pages and moved some materials. Still needs work but this is at least shorter. This page gets lots of hits, so any changes here impact lots of people. My usual statement, I am not easily offended so feel free to edit or reject what I have done. --Chris collman 06:46, 2 March 2009 (CST)
Just making room for new comments - and shortening this page even more ;-) --Frank Ralf 08:39, 2 March 2009 (CST)
Chris, many thanks for your help in reorganising our installation documentation. There's so much information, it's quite a task just to review it all! --Helen Foster 09:30, 3 March 2009 (CST)