Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: System paths.

System paths: Difference between revisions

From MoodleDocs
(→‎See also: forum discussion link)
(Expanded ==Path to dot== text)
 
(17 intermediate revisions by 10 users not shown)
Line 1: Line 1:
Location: ''Administration > Server > System Paths''
{{Server settings}}
 
An administrator can set the following system paths in ''Administration > Site administration > Server > System Paths''.
 
==GD version==
 
GD is a graphics library that manipulates graphics. It's used to create thumbnail images from uploaded files and other graphics on the fly. If you don't know what version is installed, leave this on the original setting.
 


'''Note''': When setting the system paths on Windows systems, use of the 8.3 notation for the path and filename is preferred. So instead of entering ''c:\program files\path to aspell\aspell.exe'', enter ''c:\progra~1\path~1\aspell.exe''. Check the exact 8.3 path using the ''dir /x'' command at the prompt.
'''Note''': When setting the system paths on Windows systems, use of the 8.3 notation for the path and filename is preferred. So instead of entering ''c:\program files\path to aspell\aspell.exe'', enter ''c:\progra~1\path~1\aspell.exe''. Check the exact 8.3 path using the ''dir /x'' command at the prompt.


==Path to zip==
==Path to du==


When compressing files Moodle uses either the PclZip library or the external zip program. The external program is faster, so if you are experiencing slow backups or other performance problems, try setting the path to your zip program. On Unix/Linux systems, find the path as follows using the which program:
This binary file was used in Moodle 1.x to quickly look up the size of data directories. It is possible that some add-ons still use this functionality. In linux based servers, du is by default installed and can be located generally in /usr/bin/share
If you have access to a terminal:


[root@moodle ~]# which zip
[root@moodle ~]# which du
  /usr/bin/zip
  /usr/bin/du


In this example the path to enter is ''/usr/bin/zip''.
==Path to aspell==
 
This program must be the PKZIP-compatible ''zip''.  The GNU zip program ''gzip'' cannot handle the type of zip files required by Moodle.
 
On Windows systems, download [[http://gnuwin32.sourceforge.net/packages/zip.htm the GNU Win32 Zip complete package]]. Run the setup.exe program to install and use the search facility in Explorer to find the location of the zip.exe file. The path should look like:
 
c:\program files\gnuwin32\bin\zip.exe
 
If this does not work, shorten it to the 8.3 notation:
 
c:\progra~1\gnuwin32\bin\zip.exe
 
==Path to unzip==
 
When uncompressing files Moodle uses either the PclZip library or the external unzip program. As with the zip program, the external program is faster, so if you are experiencing slow backups or other performance problems, try setting the path to your unzip program. On Unix/Linux systems, find the path as follows using the which program:
 
[root@moodle ~]# which unzip
/usr/bin/unzip
 
In this example the path to enter is ''/usr/bin/unzip''.
 
This program must be the PKZIP-compatible ''unzip''.  The GNU unzip program ''gunzip'' cannot handle the type of zip files created by Moodle.
 
On Windows systems, download [[http://gnuwin32.sourceforge.net/packages/unzip.htm the GNU Win32 Zip complete package]]. Run the setup.exe program to install and use the search facility in Explorer to find the location of the unzip.exe file. The path should look like:
 
c:\program files\gnuwin32\bin\unzip.exe
 
If this does not work, shorten it to the 8.3 notation:
 
c:\progra~1\gnuwin32\bin\unzip.exe


==Path to aspell==
If PSpellSpell is selected as the spell engine for TinyMCE in ''Administration > Site administration > Plugins > Text editors > TinyMCE HTML editor'' then you must specify the correct path to access the aspell binary.


To use spell-checking within the [[HTML editor]], you MUST have aspell 0.50 or later installed on your server, and you must specify the correct path to access the aspell binary. On Unix/Linux systems use the which program to determine the path:
In addition, you MUST have aspell 0.50 or later installed on your server. On Unix/Linux systems use the which program to determine the path:


  [root@moodle ~]# which aspell
  [root@moodle ~]# which aspell
Line 64: Line 32:
  c:\progra~1\aspell\bin\aspell.exe
  c:\progra~1\aspell\bin\aspell.exe


*[[Configuring aspell on Mac OS X]]
==Path to dot==
*[[Configuring aspell on Windows 2003 Server]]
 
Path to dot is for enabling image generation; eg, in profiling. The generated graphs are really useful to see what each request does. To have profiling visible (and working), the xhprof extension must be installed in PHP.
 
* If you want to use the authoring tools for the [[Preg question type]] , you will need to install the [https://www.graphviz.org/ Graphviz] Graph Visualization Software and set the 'path to dot'.
[[File:preg pathtodot.png|600px]]
 
* In Windows the path to dot is likely C:\Program Files (x86)\Graphviz2.38\bin\dot.exe
* To find the path to doc in a Mac, open a terminal window and type:
which dot
* In Mac the path to dot is likely /opt/local/bin/dot
* Type the path for your OS in  'Site administration / ▶︎ Server / ▶︎ System paths '  Path to dot


==External links==
==External links==
Line 71: Line 49:
*[http://aspell.sourceforge.net/ GNU Aspell]
*[http://aspell.sourceforge.net/ GNU Aspell]
*[http://aspell.net/win32/ GNU Aspell (Win32 version)]
*[http://aspell.net/win32/ GNU Aspell (Win32 version)]
*[http://sourceforge.net/project/showfiles.php?group_id=9328 Du, Zip and Unzip binaries for Win32]


==See also==
==See also==


Using Moodle forum discussions:
* [http://moodle.org/mod/forum/discuss.php?d=125912 HowTo: Installing aspell in Ubuntu (with dictionary)] forum discussion
* [http://moodle.org/mod/forum/discuss.php?d=28465 Check your aspell installation]
* [http://moodle.org/mod/forum/discuss.php?d=41831 When will we be able to use TinyCME in Moodle?]
* [http://moodle.org/mod/forum/discuss.php?d=125912 HowTo: Installing aspell in Ubuntu (with dictionary)]
 
[[Category:Administrator]]


[[cs:admin/setting/systempaths]]
[[cs:admin/setting/systempaths]]
[[de:Systempfade]]
[[es:Rutas del sistema]]
[[hu:Rendszerútvonalak]]
[[hu:Rendszerútvonalak]]
[[ja:システムパス]]

Latest revision as of 20:19, 28 March 2018

An administrator can set the following system paths in Administration > Site administration > Server > System Paths.

Note: When setting the system paths on Windows systems, use of the 8.3 notation for the path and filename is preferred. So instead of entering c:\program files\path to aspell\aspell.exe, enter c:\progra~1\path~1\aspell.exe. Check the exact 8.3 path using the dir /x command at the prompt.

Path to du

This binary file was used in Moodle 1.x to quickly look up the size of data directories. It is possible that some add-ons still use this functionality. In linux based servers, du is by default installed and can be located generally in /usr/bin/share

If you have access to a terminal:

[root@moodle ~]# which du

/usr/bin/du

Path to aspell

If PSpellSpell is selected as the spell engine for TinyMCE in Administration > Site administration > Plugins > Text editors > TinyMCE HTML editor then you must specify the correct path to access the aspell binary.

In addition, you MUST have aspell 0.50 or later installed on your server. On Unix/Linux systems use the which program to determine the path:

[root@moodle ~]# which aspell
/usr/bin/aspell

In this example the path to enter is /usr/bin/aspell.

On a Windows system, download and install GNU aspell together with at least one dictionary and then use the search facility in Explorer to find the aspell.exe file. The path should look like:

c:\program files\aspell\bin\aspell.exe

It can be best to install aspell in c:\aspell or use the 8.3 notation if you are installing in c:\program files so that the path looks like

c:\progra~1\aspell\bin\aspell.exe

Path to dot

Path to dot is for enabling image generation; eg, in profiling. The generated graphs are really useful to see what each request does. To have profiling visible (and working), the xhprof extension must be installed in PHP.

  • If you want to use the authoring tools for the Preg question type , you will need to install the Graphviz Graph Visualization Software and set the 'path to dot'.

preg pathtodot.png

  • In Windows the path to dot is likely C:\Program Files (x86)\Graphviz2.38\bin\dot.exe
  • To find the path to doc in a Mac, open a terminal window and type:
which dot
  • In Mac the path to dot is likely /opt/local/bin/dot
  • Type the path for your OS in 'Site administration / ▶︎ Server / ▶︎ System paths ' Path to dot

External links

See also