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: Difference between revisions

From MoodleDocs
 
(62 intermediate revisions by 9 users not shown)
Line 1: Line 1:
==Additional requirements==
Moved the [[Talk:Installing Moodle/Old stuff|old stuff]] out of the way ;-)  --[[User:Frank Ralf|Frank Ralf]] 12:50, 3 March 2009 (CST)


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? [[User:SamuliK|SamuliK]] 13 January 2006 11:10 (WST)
== Firstly vrs First ==
First, I never use firstly as part of my natural writing style because it sounds strange to me. 


:Yes, good idea - please contribute :-) [[User:Helen|Helen]] 13 January 2006 11:35 (WST)
Second(ly), ''The Merriam-Webster Dictionary of English Usage'' (1989) talks about the history of the objections to "firstly".  It concludes usage is determined by preference.


Please add to the "Requirements" section of the Installation Instructions something such as:
In part they note, "First" is shorter and "firstly" tends to be used by non-Americans. They also point out a potential two series preference use: "first, second, third" and "firstly, secondly and thirdly".  However people from Thomas Gray to President Carter have violated this rule of thumb.  And they write that Webster called "firstly" improper in 1864, after De Quincey said in 1847 that he detested this "pedantic neoglogism". A neoglogism not withstanding, there has been documented use of the word since the 1500s. I note De Quincey (also author of Confessions of an English Opium Eater) did not have the internet for a quick Google search on the word. 


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.
Ah, the things Moodle teaches us. --[[User:chris collman|chris collman]] 17:29, 19 January 2010 (UTC)


Thanks for your help.
:A [http://moodle.org/mod/forum/search.php?id=5&words=firstly&&user=Helen+Foster forum search of the word 'firstly' in my posts] turns up a lot of results! I never thought of using the shorter word 'first'. Thanks Chris! --[[User:Helen Foster|Helen Foster]] 18:22, 19 January 2010 (UTC)


::I didn't want to say anything specific about certain authors.  Many Americans love those quaint expressions we hear from other English speakers :) I would have never know there was such a recent controversy that goes back a mere 150 years.  Usage says either is acceptable and that is my story and I am sticking with it. --[[User:chris collman|chris collman]] 21:17, 19 January 2010 (UTC)


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....
== Page too long ==
see here for details:
http://moodle.org/bugs/bug.php?op=show&bugid=4937&pos=24
--[[User:Dan Marsden|Dan Marsden]] 13:57, 8 June 2006 (WST)


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


==confused about==
:Since you asked.  I noticed the LONG preamble(s) include stuff which could be condensed in several time tested MoodleDocs methods.
1) Reload the grant tables using the mysqladmin program:
:*planning for a Moodle Install
#mysqladmin -u root -p reload
:*requirements for a Moodle Install
Enter password:
:*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 
'requires reload priviledge'
:*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.


2)And some example command lines for PostgreSQL:
--[[User:chris collman|chris collman]] 15:12, 5 February 2009 (CST)
  # su - postgres
  > psql -c "create user moodleuser createdb;" template1
...


What's the PostgreSQL about?
::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.  --[[User:chris collman|chris collman]] 06:46, 2 March 2009 (CST)


[[User:Dennis German|Dennis German]] 20:13, 28 January 2008 (CST)
::: Just making room for new comments - and shortening this page even more ;-) --[[User:Frank Ralf|Frank Ralf]] 08:39, 2 March 2009 (CST)


It's another database server you can use with Moodle instead of MySQL.
::::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! --[[User:Helen Foster|Helen Foster]] 09:30, 3 March 2009 (CST)
[[User:Richard Enison|Richard Enison]] 02:39, 6 August 2008 (CDT)


==Some things I came across==
::::: We're down (up?) to position 59 on the [[Special:LongPages| Long pages]] list now! Next we should tackle [[Installation FAQ]] which is position 12 ;-) --[[User:Frank Ralf|Frank Ralf]] 16:54, 1 April 2009 (UTC)
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:
:::LOL knock yourself out on the the del, ctrl+c, ctrl+v keys, or are you a ctrl+a kind of person :)  Merely #12? --[[User:chris collman|chris collman]] 00:42, 4 April 2009 (UTC)
* "# 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.
:::: Yeah, I seem to be a ctrl freak... It's a pity that the concept of sanity check is abandoned. It should not only be applied to "uploaded users" (http://moodle.org/mod/forum/discuss.php?d=76411) but to all users in general :-) --[[User:Frank Ralf|Frank Ralf]] 15:05, 6 April 2009 (UTC)
* "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?
--[[User:Carsten Pedersen|Carsten Pedersen]] 18:14, 27 January 2007 (CST)


Right. I think it means directories created and owned by the root (o/s) user.
Another way to cut this down is the more obvious breaking it up into different installations. One for Linux, but as there are so many flavours, then perhaps an overview of a general type installation and links off to specific information about specific versions. Another for Windows and the same for Macs. The actual install in Windows is the same, despite the different versions, what is different is the outcomes.--[[User:Colin Fraser|Colin Fraser]] 11:06, 13 October 2010 (UTC)
--[[User:Richard Enison|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. --[[User:Richard Enison|Richard Enison]] 02:42, 6 August 2008 (CDT)


==Ref:PHP and MySQL==
== Redundancy and other  issues ==
Should there be special comment on the use of "--with-mysql" and "--with-mysqli" PHP configure options and outcomes (if any) for Moodle functions?


--[[User:Paul Trudt|pd3244]] 13:12, 7 August 2007 (CST)
As was the basis for the discussion over FAQ,s what we are seeing in part here is a reproduction of what is often to be found elsewhere.  For example, '''the discussion of php.ini and htaccess should have their own page and should include materials that explain how these are used as I and others have posted to the forums''' (highlighted as a reminder for the TODO list --[[User:Frank Ralf|Frank Ralf]] 09:48, 30 March 2009 (UTC)) (and obviously have neglected to add to the docs.....) such as the diffs between php4 and php5, order of sourcing for php.ini,  the diffs between running php as an apache mod versus as cgi and why that makes a diff, etc.


Re: "PHP Extensions and Libraries":
Also, I think the first thing that the user should be offered is a URL back to
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,
[[experimental:Getting Help Installing and Managing Moodle]] and [[Finding and Selecting A Web Host]]. --[[User:Marc Grober|Marc Grober]] 13:19, 3 March 2009 (CST)


`[mbstring]
That is to say that before we let anyone jump in,  we should make sure they have some understanding of the landscape and the options available. (<- This is not by me, Marc's? --[[User:Frank Ralf|Frank Ralf]] 06:24, 4 March 2009 (CST))
; language for internal character representation.
;mbstring.language = Japanese`


--but I don't know what to do with that to make it what Moodle needs.
:Interesting,  I thought you (Frank) left this (it seemed to be signed by you but had my name.....)  so I pulled my name out and left yours.....   --[[User:Marc Grober|Marc Grober]] 20:09, 15 March 2009 (UTC)


Otherwise, smooth sailing so far. :)
== Example: Drupal installation guide ==
--[[User:Clay Burell|Clay Burell]] 07:01, 28 July 2008 (CDT)


==  Structure of moodle directory ==
For reference I just provide here the structure of the instructions for installing Drupal [http://drupal.org/handbooks handbook page] which might provide some guidelines for structuring our content:


Hi there,
* [http://drupal.org/getting-started/install Getting started] (Default scenario)
** Before you start
*** Understanding Drupal concepts
*** Technology stack
*** Drupal version numbering
*** Terminology
*** Third party resources
*** Drupal in your language
** Installation guide
*** System requirements
*** Download Drupal
*** Grant write permissions on the configuration file
*** Create the database
*** Run the install script
*** Set up cron
*** Advanced installation
* Troubleshooting FAQ (When things go wrong)
** ...


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.
I think this page should be as concise as possible and only provide guidelines for a '''standard''' installation of Moodle. Everything else (the more advanced stuff like using CVS and troubleshooting guidelines) should be moved elsewhere.


[[User:Sandra Reitz|Sandra Reitz]] 04:17, 16 February 2007 (CST)
We could refactor the [[Installation FAQ]] as a 'landing page' which mirrors some of the structure given above. --[[User:Frank Ralf|Frank Ralf]] 13:35, 3 March 2009 (CST)


== Installing on Netware ==
::Hi Frank, not sure what refractor means, but if it mean creating headings (such as you describe above, and placing our current FAQ headings under them, I agree.  Changing this FAQ page to something radically different than other FAQ pages, I do not agree.
::: Hi Chris, I agree with you (got second thoughts myself...) --[[User:Frank Ralf|Frank Ralf]] 10:06, 6 March 2009 (CST)
::Changing this page into something like the "home page" for [[Administrator documentation]] instead of the current which is something like [[Getting started for teachers]], I agree.  After all the yellow in [[Development:Developer documentation]] the 1st 3 headings are "nice" IMO,  then it gets to be categories of lists, [[Teacher documentation]] is more of the same. A context for the Newbie is important balanced against the experienced "I will recognize what I want, get rid of the fluff".   
::: That's really kind of a dilemma. I think beginners need more of a "tutorial" style documentation (which we should provide here). For experienced users, kind of an annotated (or categorized) index might be useful. The '''Dynamic Page List''' extension for MediaWiki might be a useful tool to that end (http://moodle.org/mod/forum/discuss.php?d=117361). --[[User:Frank Ralf|Frank Ralf]] 10:22, 6 March 2009 (CST) 
::The Installing Moodle Template obviously needs to be cleaned up. 


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.
::I am going to transfer your outline to [[Installing Moodle/Draft1]] for the next generation of changes. Good ideas. --[[User:chris collman|chris collman]] 06:24, 4 March 2009 (CST)


- 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. --[[User:Ken Wilson|Ken Wilson]] 06:21, 7 May 2007 (CDT)
== "Exploded" Layout ==
I really don't like the new "exploded" layout of this page. It's very unclear that you have to "drill down" to find the information you need. For example, the requirements section says you need PHP. Ok, but it is not obvious that you now have to click on PHP to get the information you need to configure PHP. --[[User:Howard Miller|Howard Miller]] 09:41, 11 March 2009 (UTC)
:Hi,  I changed the intro to mention links. This page still needs work, as does the template. This page generally serves as the introduction. Typical Moodle problem:  how to introduce the user to "the way" (ie their way), which is only one of many possible MoodlePaths. Thanks for the comments, keep them coming. Best --[[User:chris collman|chris collman]] 11:36, 11 March 2009 (UTC)


== Using a .htaccess file for webserver and PHP settings ==
== "3. Setting up your web server" ==
under the above section are .htaccess settings such as
I would recommend changing the order of the steps in this section for usually setting up your database is sufficient (at least in my experience). All other steps are special cases. So it should be:


php_flag magic_quotes_gpc 1
  3. Create empty database
 
3.1. Additional web server settings
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 [https://docs.moodle.org/en/Installing_Moodle#Creating_the_data_directory 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.
--[[User:Frank Ralf|Frank Ralf]] 11:38, 11 March 2009 (UTC)
[[User:טל בודק|טל בודק]] 04:07, 1 June 2008 (CDT)
:Go for it.  I like the mo' friendly touch at the start, even if it take up more screen space with the headings :)--[[User:chris collman|chris collman]] 17:27, 11 March 2009 (UTC)
: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 :)--[[User:chris collman|chris collman]] 06:13, 11 June 2008 (CDT)


== Missing documentation for pear ==
: Only just seen that this fits with Marc's remark above regarding php.ini and .htaccess. Highlighted his remark and put this on (my) TODO list. --[[User:Frank Ralf|Frank Ralf]] 09:50, 30 March 2009 (UTC)


Pear is included in Moodle /moodle/lib/pear/ but it not called directly.
:: Made a first shot a rearranging the parts of that section. The parts mentioned by Marc still need to be moved out altogether. --[[User:Frank Ralf|Frank Ralf]] 10:34, 30 March 2009 (UTC)


for e.g. in file /moodle/lib/formslib.php
::: Moved them. --[[User:Frank Ralf|Frank Ralf]] 16:55, 1 April 2009 (UTC)


require_once 'HTML/QuickForm.php';
== Chambered nautilus anyone..... ==


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.
Apologies folks,  but it seems to me that we sometimes forget to whom these docs are addressed....  Deleting the link at the head which helps redirect if they are in the wrong spot is not helpful, Martin,  and having a section that talks about custom php.ini files and then leads the reader on a magical mystery tour is just frustrating.


Should this be mentioned in documentation or developers might want to upgrade code in a way that will eliminate this problem.
There are myriad ways to approach any subject, and the genius of a wiki if anything is the ability to interweave multiple approaches, as opposed to trying to create one from a multitude of different view points.....


require_once $CFG->libdir.'pear/HTML/QuickForm.php'; (Don't know how good or bad it may be)
I recall a heated debate over the use of a drill down js mechanism in the design of a pretty complex web site.....  While the argument was rather strong against the mechanism, even from many users,  when users were asked to find something they invariably found it quicker with the drill down,  even when complaining about it.


== New Installing from Command Line section ==
I am impressed and thankful for all the energy you have invested here.... but maybe, as the apparently unascribed comment made I thought to me suggests, perhaps specifics of what you don't want to see here should be presented in this page so that others understand what you are trying to do,  and if they feel something else should be done,  they can do that elsewhere.  --[[User:Marc Grober|Marc Grober]] 20:51, 15 March 2009 (UTC)


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 [http://moodle.org/mod/forum/discuss.php?d=103314#p456274 this post].
== Different methods of creating databases ==
--[[User:Richard Enison|Richard Enison]] 20:22, 13 August 2008 (CDT)


== magic_quotes_gpc on Windows ==
See [[Create Moodle site database]]
*For help using the command line see
*PostgresSQL database
*SQLite Moodle 2.0 offers experimental support for SQLite3 database installations


Under the ''Requirements : Software'' section it is stated that '''magic_quotes_gpc''' should be ON.
* Step-by-step instructions on  [https://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu installation for Ubuntu(Debian)]
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.
Moved this unfinished section out of the way. Needs some reworking and another place to live. --[[User:Frank Ralf|Frank Ralf]] 10:46, 30 March 2009 (UTC)


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?
== Concerning the "two" ways of installing Moodle. ==


== Installing on FreeBSD 7.0 ==
(Note: My Moodle is installed: Blue Domino found the problem. If you want an easy install, with just a click of a button and four fields to fill out, just sign up with BD, and use their InstallCentral, under Scripting and Add Ons, under Control Panel, under Home. I'm not getting anything for telling you this. Good luck.)


Notes on installing on FreeBSD 7.0-RELEASE-p5.
I tried the "simple" way of installing the program; that is, creating a directory (folder, partition, shell, whatever) called "moodle" at the root level of my primary domain name folder tree.
After the base install, use freebsd-update to install security patches, then update the ports collection using portmaster and portaudit.  The book, Building A Server With FreeBSD 7, by Bryan J. Hong may help ensure a solid (and repeatedly installable) FreeBSD server setup.


Here are the installed versions of the main software:
It didn't work; the message I got was that the script couldn't connect with the MySQL database I specified. In fact, why would a folder containing directories with names such as cgi-bin (a primary directory that is "owned" by the server) and moodle work inside yet another shell named moodle? It didn't make sense.


*httpd -v:  Server version: Apache/2.2.9 (FreeBSD)
Then, my server, Blue Domino, added Moodle to their expanding Beta-based program, one which includes an installer that can handle MySQL-dependant programs.
*mysql> status:  Server version: 5.0.67-log FreeBSD port: mysql-server-5.0.67_1
*Moodle 1.9.3+
*PHP 5.2.6


Before attempting the Moodle installation, I first installed the various PHP extensions listed in the DETAILED Moodle Installation Instructions.
Though I went through the installation process a couple of times, the results were always the same; no Moodle except for one working link to the profile page, and that from every active link.


Still, while running Moodle's install.php script from a browser, I encountered a number of PHP errors.  To make the installation go more smoothly, install these ports ahead of time:
Okay, I could still try to upload all my Moodle folders and files to my primary domain root directory (except the Moodle cgi-bin directory, for that would replace my own, which is packed full of cgi scripts). If I did so, it would be at the expense of having Moodle folders and files scattered across my root directory. I'll always have to ask myself if this shell or that file is a Moodle script or folder? And, if it isn't, what is it?


*/usr/ports/devel/php5-pcre
I guess that's not such a bad price to pay for having a useful program at my disposal. What do the experts say?
*/usr/ports/textproc/php5-dom
*/usr/ports/textproc/php5-xml
*/usr/ports/textproc/php5-xmlreader
*/usr/ports/textproc/php5-xmlwriter
*/usr/ports/textproc/php5-ctype
*/usr/ports/net/php5-xmlrpc
*/usr/ports/archivers/php5-zlib (I discovered later that backups were failing because zlib was not installed.)


For completeness, here's what pkg_info shows (many of these ports were installed automatically while installing the above ports):
Jagtig


*apache-2.2.9_5      Version 2.2.x of Apache web server with prefork MPM.
*autoconf-2.62      Automatically configure source code on many Un*x platforms
*autoconf-wrapper-20071109 Wrapper script for GNU autoconf
*automake-1.9.6_3    GNU Standards-compliant Makefile generator (1.9)
*automake-wrapper-20071109 Wrapper script for GNU automake
*bigreqsproto-1.0.2  BigReqs extension headers*
*curl-7.18.0        Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
*expat-2.0.1        XML 1.0 parser written in C
*freetype2-2.3.7    A free and portable TrueType font rendering engine
*gettext-0.17_1      GNU gettext package
*gmake-3.81_3        GNU version of 'make' utility
*help2man-1.36.4_2  Automatically generating simple manual pages from program o
*inputproto-1.4.2.1  Input extension headers
*jpeg-6b_7          IJG's jpeg compression utilities
*kbproto-1.0.3      KB extension headers
*libICE-1.0.4_1,1    Inter Client Exchange library for X11
*libSM-1.0.3_1,1    Session Management library for X11
*libX11-1.1.3_1,1    X11 library
*libXau-1.0.3_2      Authentication Protocol library for X11
*libXaw-1.0.4_1,1    X Athena Widgets library
*libXdmcp-1.0.2_1    X Display Manager Control Protocol library
*libXext-1.0.3,1    X11 Extension library
*libXmu-1.0.3,1      X Miscellaneous Utilities libraries
*libXp-1.0.0,1      X print library
*libXpm-3.5.7        X Pixmap library
*libXt-1.0.5_1      X Toolkit library
*libiconv-1.11_1    A character set conversion library
*libtool-1.5.26      Generic shared library support script
*libxml2-2.6.32_1    XML parser library for GNOME
*lynx-2.8.6.5_4,1    A non-graphical, text-based World-Wide Web client
*m4-1.4.11,1        GNU m4
*mysql-client-5.0.67_1 Multithreaded SQL database (client)
*mysql-server-5.0.67_1 Multithreaded SQL database (server)
*ntp-4.2.4p4        The Network Time Protocol Distribution
*openssh-portable-overwrite-base-5.0.p1,1 The portable version of OpenBSD's OpenSSH
*openssl-0.9.8i      SSL and crypto library
*p5-gettext-1.05_2  Message handling functions
*perl-5.8.8_1        Practical Extraction and Report Language
*php5-5.2.6_2        PHP Scripting Language
*php5-ctype-5.2.6_2  The ctype shared extension for php
*php5-curl-5.2.6_2  The curl shared extension for php
*php5-dom-5.2.6_2    The dom shared extension for php
*php5-gd-5.2.6_2    The gd shared extension for php
*php5-iconv-5.2.6_2  The iconv shared extension for php
*php5-mbstring-5.2.6_2 The mbstring shared extension for php
*php5-mysql-5.2.6_2  The mysql shared extension for php
*php5-openssl-5.2.6_2 The openssl shared extension for php
*php5-pcre-5.2.6_2  The pcre shared extension for php
*php5-session-5.2.6_2 The session shared extension for php
*php5-simplexml-5.2.6_2 The simplexml shared extension for php
*php5-spl-5.2.6_2    The spl shared extension for php
*php5-tokenizer-5.2.6_2 The tokenizer shared extension for php
*php5-xml-5.2.6_2    The xml shared extension for php
*php5-xmlreader-5.2.6_2 The xmlreader shared extension for php
*php5-xmlrpc-5.2.6_2 The xmlrpc shared extension for php
*php5-xmlwriter-5.2.6_2 The xmlwriter shared extension for php
*pkg-config-0.23_1  A utility to retrieve information about installed libraries
*png-1.2.32          Library for manipulating PNG images
*portaudit-0.5.12    Checks installed ports against a list of security vulnerabi
*portmaster-2.6      Manage your ports without external databases or languages
*printproto-1.0.3    Print extension headers
*t1lib-5.1.2,1      A Type 1 Rasterizer Library for UNIX/X11
*xcmiscproto-1.1.2  XCMisc extension headers
*xextproto-7.0.2    XExt extension headers
*xf86bigfontproto-1.1.2 XFree86-Bigfont extension headers
*xproto-7.0.10_1    X11 protocol headers
*xtrans-1.0.4        Abstract network code for X


As mentioned above, I later installed zlib.  I also upgraded to 7.1-RELEASE (I did this before installing zlib).  pkg_info | grep zlib gives:
== Install a theme ==
*php5-zlib-5.2.6_2  The zlib shared extension for php


--[[User:Paul Takemura|Paul Takemura]] 20:00, 1 November 2008 (CDT)
To install a [[Themes|theme]]:
# Unzip the .zip file to an empty local directory.
# Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the web server.  Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute.  Incorrect permissions may prevent display of the newly installed theme.
# Choose your new theme from within Moodle via ''Administration > Appearance > Themes > Theme selector'' (version 1.7+) or ''Administration > Configuration > Themes'' (older versions).


== Problems with install tutorial for new cpanel - swf cuts out at 12:27...incomplete file? ==
I have cut this element out of the Installation for two reasons, first, this is a topic that is well covered in a number of other areas of Moodle Docs, and second, it is actually confusing being located in a section prior to the outlining of an installation. This information may be suitable for early installations, but is no longer relevant for Moodle 1.7.x or later and as Moodle 1.7.x is no longer supported, why is it still here? --[[User:Colin Fraser|Colin Fraser]] 11:00, 13 October 2010 (UTC)
http://ic.eflclasses.org/tutorials/settingupmoodleoncpanel.swf

Latest revision as of 11:06, 13 October 2010

Moved the old stuff out of the way ;-) --Frank Ralf 12:50, 3 March 2009 (CST)

Firstly vrs First

First, I never use firstly as part of my natural writing style because it sounds strange to me.

Second(ly), The Merriam-Webster Dictionary of English Usage (1989) talks about the history of the objections to "firstly". It concludes usage is determined by preference.

In part they note, "First" is shorter and "firstly" tends to be used by non-Americans. They also point out a potential two series preference use: "first, second, third" and "firstly, secondly and thirdly". However people from Thomas Gray to President Carter have violated this rule of thumb. And they write that Webster called "firstly" improper in 1864, after De Quincey said in 1847 that he detested this "pedantic neoglogism". A neoglogism not withstanding, there has been documented use of the word since the 1500s. I note De Quincey (also author of Confessions of an English Opium Eater) did not have the internet for a quick Google search on the word.

Ah, the things Moodle teaches us. --Chris collman 17:29, 19 January 2010 (UTC)

A forum search of the word 'firstly' in my posts turns up a lot of results! I never thought of using the shorter word 'first'. Thanks Chris! --Helen Foster 18:22, 19 January 2010 (UTC)
I didn't want to say anything specific about certain authors. Many Americans love those quaint expressions we hear from other English speakers :) I would have never know there was such a recent controversy that goes back a mere 150 years. Usage says either is acceptable and that is my story and I am sticking with it. --Chris collman 21:17, 19 January 2010 (UTC)

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)
We're down (up?) to position 59 on the Long pages list now! Next we should tackle Installation FAQ which is position 12 ;-) --Frank Ralf 16:54, 1 April 2009 (UTC)
LOL knock yourself out on the the del, ctrl+c, ctrl+v keys, or are you a ctrl+a kind of person :) Merely #12? --Chris collman 00:42, 4 April 2009 (UTC)
Yeah, I seem to be a ctrl freak... It's a pity that the concept of sanity check is abandoned. It should not only be applied to "uploaded users" (http://moodle.org/mod/forum/discuss.php?d=76411) but to all users in general :-) --Frank Ralf 15:05, 6 April 2009 (UTC)

Another way to cut this down is the more obvious breaking it up into different installations. One for Linux, but as there are so many flavours, then perhaps an overview of a general type installation and links off to specific information about specific versions. Another for Windows and the same for Macs. The actual install in Windows is the same, despite the different versions, what is different is the outcomes.--Colin Fraser 11:06, 13 October 2010 (UTC)

Redundancy and other issues

As was the basis for the discussion over FAQ,s what we are seeing in part here is a reproduction of what is often to be found elsewhere. For example, the discussion of php.ini and htaccess should have their own page and should include materials that explain how these are used as I and others have posted to the forums (highlighted as a reminder for the TODO list --Frank Ralf 09:48, 30 March 2009 (UTC)) (and obviously have neglected to add to the docs.....) such as the diffs between php4 and php5, order of sourcing for php.ini, the diffs between running php as an apache mod versus as cgi and why that makes a diff, etc.

Also, I think the first thing that the user should be offered is a URL back to experimental:Getting Help Installing and Managing Moodle and Finding and Selecting A Web Host. --Marc Grober 13:19, 3 March 2009 (CST)

That is to say that before we let anyone jump in, we should make sure they have some understanding of the landscape and the options available. (<- This is not by me, Marc's? --Frank Ralf 06:24, 4 March 2009 (CST))

Interesting, I thought you (Frank) left this (it seemed to be signed by you but had my name.....) so I pulled my name out and left yours..... --Marc Grober 20:09, 15 March 2009 (UTC)

Example: Drupal installation guide

For reference I just provide here the structure of the instructions for installing Drupal handbook page which might provide some guidelines for structuring our content:

  • Getting started (Default scenario)
    • Before you start
      • Understanding Drupal concepts
      • Technology stack
      • Drupal version numbering
      • Terminology
      • Third party resources
      • Drupal in your language
    • Installation guide
      • System requirements
      • Download Drupal
      • Grant write permissions on the configuration file
      • Create the database
      • Run the install script
      • Set up cron
      • Advanced installation
  • Troubleshooting FAQ (When things go wrong)
    • ...

I think this page should be as concise as possible and only provide guidelines for a standard installation of Moodle. Everything else (the more advanced stuff like using CVS and troubleshooting guidelines) should be moved elsewhere.

We could refactor the Installation FAQ as a 'landing page' which mirrors some of the structure given above. --Frank Ralf 13:35, 3 March 2009 (CST)

Hi Frank, not sure what refractor means, but if it mean creating headings (such as you describe above, and placing our current FAQ headings under them, I agree. Changing this FAQ page to something radically different than other FAQ pages, I do not agree.
Hi Chris, I agree with you (got second thoughts myself...) --Frank Ralf 10:06, 6 March 2009 (CST)
Changing this page into something like the "home page" for Administrator documentation instead of the current which is something like Getting started for teachers, I agree. After all the yellow in Development:Developer documentation the 1st 3 headings are "nice" IMO, then it gets to be categories of lists, Teacher documentation is more of the same. A context for the Newbie is important balanced against the experienced "I will recognize what I want, get rid of the fluff".
That's really kind of a dilemma. I think beginners need more of a "tutorial" style documentation (which we should provide here). For experienced users, kind of an annotated (or categorized) index might be useful. The Dynamic Page List extension for MediaWiki might be a useful tool to that end (http://moodle.org/mod/forum/discuss.php?d=117361). --Frank Ralf 10:22, 6 March 2009 (CST)
The Installing Moodle Template obviously needs to be cleaned up.
I am going to transfer your outline to Installing Moodle/Draft1 for the next generation of changes. Good ideas. --Chris collman 06:24, 4 March 2009 (CST)

"Exploded" Layout

I really don't like the new "exploded" layout of this page. It's very unclear that you have to "drill down" to find the information you need. For example, the requirements section says you need PHP. Ok, but it is not obvious that you now have to click on PHP to get the information you need to configure PHP. --Howard Miller 09:41, 11 March 2009 (UTC)

Hi, I changed the intro to mention links. This page still needs work, as does the template. This page generally serves as the introduction. Typical Moodle problem: how to introduce the user to "the way" (ie their way), which is only one of many possible MoodlePaths. Thanks for the comments, keep them coming. Best --Chris collman 11:36, 11 March 2009 (UTC)

"3. Setting up your web server"

I would recommend changing the order of the steps in this section for usually setting up your database is sufficient (at least in my experience). All other steps are special cases. So it should be:

3. Create empty database
3.1. Additional web server settings
...

--Frank Ralf 11:38, 11 March 2009 (UTC)

Go for it. I like the mo' friendly touch at the start, even if it take up more screen space with the headings :)--Chris collman 17:27, 11 March 2009 (UTC)
Only just seen that this fits with Marc's remark above regarding php.ini and .htaccess. Highlighted his remark and put this on (my) TODO list. --Frank Ralf 09:50, 30 March 2009 (UTC)
Made a first shot a rearranging the parts of that section. The parts mentioned by Marc still need to be moved out altogether. --Frank Ralf 10:34, 30 March 2009 (UTC)
Moved them. --Frank Ralf 16:55, 1 April 2009 (UTC)

Chambered nautilus anyone.....

Apologies folks, but it seems to me that we sometimes forget to whom these docs are addressed.... Deleting the link at the head which helps redirect if they are in the wrong spot is not helpful, Martin, and having a section that talks about custom php.ini files and then leads the reader on a magical mystery tour is just frustrating.

There are myriad ways to approach any subject, and the genius of a wiki if anything is the ability to interweave multiple approaches, as opposed to trying to create one from a multitude of different view points.....

I recall a heated debate over the use of a drill down js mechanism in the design of a pretty complex web site..... While the argument was rather strong against the mechanism, even from many users, when users were asked to find something they invariably found it quicker with the drill down, even when complaining about it.

I am impressed and thankful for all the energy you have invested here.... but maybe, as the apparently unascribed comment made I thought to me suggests, perhaps specifics of what you don't want to see here should be presented in this page so that others understand what you are trying to do, and if they feel something else should be done, they can do that elsewhere. --Marc Grober 20:51, 15 March 2009 (UTC)

Different methods of creating databases

See Create Moodle site database

  • For help using the command line see
  • PostgresSQL database
  • SQLite Moodle 2.0 offers experimental support for SQLite3 database installations

Moved this unfinished section out of the way. Needs some reworking and another place to live. --Frank Ralf 10:46, 30 March 2009 (UTC)

Concerning the "two" ways of installing Moodle.

(Note: My Moodle is installed: Blue Domino found the problem. If you want an easy install, with just a click of a button and four fields to fill out, just sign up with BD, and use their InstallCentral, under Scripting and Add Ons, under Control Panel, under Home. I'm not getting anything for telling you this. Good luck.)

I tried the "simple" way of installing the program; that is, creating a directory (folder, partition, shell, whatever) called "moodle" at the root level of my primary domain name folder tree.

It didn't work; the message I got was that the script couldn't connect with the MySQL database I specified. In fact, why would a folder containing directories with names such as cgi-bin (a primary directory that is "owned" by the server) and moodle work inside yet another shell named moodle? It didn't make sense.

Then, my server, Blue Domino, added Moodle to their expanding Beta-based program, one which includes an installer that can handle MySQL-dependant programs.

Though I went through the installation process a couple of times, the results were always the same; no Moodle except for one working link to the profile page, and that from every active link.

Okay, I could still try to upload all my Moodle folders and files to my primary domain root directory (except the Moodle cgi-bin directory, for that would replace my own, which is packed full of cgi scripts). If I did so, it would be at the expense of having Moodle folders and files scattered across my root directory. I'll always have to ask myself if this shell or that file is a Moodle script or folder? And, if it isn't, what is it?

I guess that's not such a bad price to pay for having a useful program at my disposal. What do the experts say?

Jagtig


Install a theme

To install a theme:

  1. Unzip the .zip file to an empty local directory.
  2. Upload folder to your web server to the /moodle/theme/[Theme Name]. (Replace [Theme Name] with the name of the theme you have downloaded.) Ensure the new theme folder and its contents are readable by the web server. Change Read and Write permissions (CHMOD) for the files and folder to 755 - Owner read/write/execute, Group read/execute, Everyone read/execute. Incorrect permissions may prevent display of the newly installed theme.
  3. Choose your new theme from within Moodle via Administration > Appearance > Themes > Theme selector (version 1.7+) or Administration > Configuration > Themes (older versions).

I have cut this element out of the Installation for two reasons, first, this is a topic that is well covered in a number of other areas of Moodle Docs, and second, it is actually confusing being located in a section prior to the outlining of an installation. This information may be suitable for early installations, but is no longer relevant for Moodle 1.7.x or later and as Moodle 1.7.x is no longer supported, why is it still here? --Colin Fraser 11:00, 13 October 2010 (UTC)