Instalando AMP: Difference between revisions

From MoodleDocs
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 12: Line 12:
[http://pt.wikipedia.org/wiki/MySQL MySQL]
[http://pt.wikipedia.org/wiki/MySQL MySQL]


 
Antes de instalarmos o Moodle devemos ter o PHP e o MySQL instalados e funcionando em conjunto com o servidor web [http://pt.wikipedia.org/wiki/Servidor_Apache Apache]. Assim, com o Apache, PHP e MySQL funcionando em seu computador você terá um servidor pronto para instalar o Moodle.
AMP or AMPPlite stands for '''A'''pache, '''M'''ySQL & '''P'''HP.  Moodle is written in a scripting language called [[PHP]] and stores most of its data in a database. The recommended database is [[MySQL]]. Before installing Moodle you must have a working PHP installation and a working database to turn your computer into a functional web server platform. XAMP is a Windows and MAMP is a Mac OS version.  
Moodle does have [[Complete install packages]] in the [http://download.moodle.org/ download section] as well as the Moodle only package.
Moodle does have [[Complete install packages]] in the [http://download.moodle.org/ download section] as well as the Moodle only package.


The AMP individual applications can be tricky to set up for average computer users.  This page has been written to try to make this process as simple as possible for different platforms.     
The AMP individual applications can be tricky to set up for average computer users.  This page has been written to try to make this process as simple as possible for different platforms.     


== Links para Downloads ==


== Hosting Service ==
* Baixe o Servidor Web Apache: [http://httpd.apache.org/download.cgi Download]
 
* Baixe o PHP: [http://www.php.net/downloads.php Download]
Unfortunately hosting services vary quite a lot in the way they work. Some will even install Moodle for you.
* Baixe o MySQL: [http://dev.mysql.com/downloads/ Download]
 
* Baixe o Moodle: [http://download.moodle.org/ Download]
Most will offer a web-based control panel to control your site, create databases and set up cron. Some may also offer terminal access via ssh, so that you can use the command shell to do things.
 
You should work your way through the [[Installing Moodle|Installation guide]] and take each step at a time. Ask your hosting provider if you get stuck.
 
 
== Mac OS X ==
 
The easiest way to do this is use the [[Apache]] server that Apple provides, and add PHP and MySQL using Marc Liyanage's packages. Both of the pages below come with good instructions that we won't duplicate here:


* '''PHP''': Download from here: http://www.entropy.ch/software/macosx/php/
* '''MySQL''': Download here: http://www.entropy.ch/software/macosx/mysql/


Once these are installed the standard [[Installing Moodle|Installation guide]] should be fairly straightforward.


Go here for a [[Step-by-step Guide for Installing Moodle on Mac OS X 10.4 Client]] (not server) Mac.
== Windows XP ==
 
== Red Hat Linux ==
 
You should install all available RPM packages for Apache, PHP and MySQL. One package that people frequently forget is the php-mysql package which is necessary for PHP to talk to MySQL.
 
Once these are installed the standard [[Installing Moodle|Installation guide]] should be fairly straightforward.
 
A more detailed walkthrough is here: [[RedHat Linux installation]]
 
== Windows ==


Installing Moodle '''for the first time''' on a [[Localhost]] (a stand alone computer) is easy and can be a very useful tool even if a web based production Moodle Server is available for use. These instructions work on a Windows XP computer.
Installing Moodle '''for the first time''' on a [[Localhost]] (a stand alone computer) is easy and can be a very useful tool even if a web based production Moodle Server is available for use. These instructions work on a Windows XP computer.
Line 76: Line 55:
Start Moodle by placing localhost in the web browser or adding it as a favorite site. Whichever localhost you restarted, that is the Moodle your web browser will find.
Start Moodle by placing localhost in the web browser or adding it as a favorite site. Whichever localhost you restarted, that is the Moodle your web browser will find.


==Other install options==
==Outras opções de instalação==
Instead of using this package you can also install XAMPP and Moodle separately as explained on the page [[Windows_installation_using_XAMPP]].  
Ao invés de utilizar esse pacote, você também pode instalar o XAMPP e o Moodle separadamente como explicado na página [[Windows_installation_using_XAMPP]].  


As an alternative to the above package you could use a package like EasyPHP that bundles all the software you need into a single Windows application. Note that the EasyPHP 1.8 uses older versions of the software that are too old for Moodle 1.6. Also many menus for EasyPHP are still in French. EasyPHP may be a good option again once its version 2.0 is released.
Como uma alternativa para o pacote acima, você pode utilizar um como EasyPHP, que engloba todos os softwares necessários em uma única aplicação Windows. Note que o EasyPHP 1.8 utiliza versões antigas dos software que são muito antigas para o Moodle 1.6. Além disso, vários menus no EasyPHP ainda estão em francês. O EasyPHP pode ser uma boa opção novamente uma vez que a versão 2.0 for lançada.


Here you can find steps for an [[IIS]]: [[Windows installation]] for XAMPP or Windows 2003 .
Aqui você pode encontrar passos para uma [[IIS]]: [[Windows installation]] para XAMPP ou Windows 2003.


==Testing PHP==
==Testando se o PHP funciona==
Once you have installed your web server and PHP you should be able to create a file (for example phpinfo.php in the document root) with the following in it:
Uma vez instalado o PHP na sua máquina servidora web você estará apto a criar um arquivo (ex: info.php) e colocá-lo na raiz do seu servidor web (Apache). 


  <?php phpinfo()?>
Crie um arquivo de texto com o seguinte conteúdo:
<?php phpinfo()?>


You should be able to open this file in a web browser by going to to the URL '''localhost/phpinfo''' and see a web page that has PHP status information in it such as [[phpinfo|this]].
e salve-o como info.php no diretório raiz (root) '''C:\Arquivos de programas\Apache Software Foundation\Apache2.2\htdocs''' do seu windows. Esse é o diretório padrão das páginas do Apache.


==See also==
Para fazer a verificação entre no seu navegador preferido e digite o endereço [http://localhost/info.php InfoPHP]. Se tudo correr bem você visualizará as informações do PHP do seu servidor.


*[[Installing Moodle]]
 
*[[Installation FAQ]]
==Veja também ==
 
*[[Instalação Rápida do Moodle]]
*[[FAQ sobre instalação]]
*[[Upgrading Moodle]]
*[[Upgrading Moodle]]
*[[Debian GNU/Linux installation]]
*[[Debian GNU/Linux installation]]
*[[Complete install packages]], also includes instructions for creating a stand alone (localhost) installation on a single computer.
*[[Pacotes Completos de Instalação]], also includes instructions for creating a stand alone (localhost) installation on a single computer.
 
[[Category:Installation]]


[[es:Instalación AMP]]
[[es:Documentación para Administradores]]
[[fr:Installation de AMP]]
[[fr:Documentation administrateur]]
[[ja:AMPのインストール]]
[[Category: Administrador]]
[[ru:Установка AMP]]

Latest revision as of 12:30, 6 August 2008

O Moodle é escrito na linguagem chamada PHP e armazena a maioria dos dados em um banco de dados, o mais conhecido e recomendado é o MySQL.

PHP

PHP (um acrônimo recursivo para "PHP: Hypertext Preprocessor") é uma linguagem de programação de computadores interpretada, livre e muito utilizada para gerar conteúdo dinâmico na World Wide Web, como por exemplo a Wikipédia. Apesar de ser uma linguagem de fácil aprendizagem e de utilização para pequenos scripts dinâmicos simples, o PHP é uma poderosa linguagem orientada a objetos. PHP


MySQL

O MySQL é um sistema de gerenciamento de banco de dados (SGBD), que utiliza a linguagem SQL (Structured Query Language - Linguagem de Consulta Estruturada) como interface. É atualmente um dos bancos de dados mais populares.

MySQL

Antes de instalarmos o Moodle devemos ter o PHP e o MySQL instalados e funcionando em conjunto com o servidor web Apache. Assim, com o Apache, PHP e MySQL funcionando em seu computador você terá um servidor pronto para instalar o Moodle. Moodle does have Complete install packages in the download section as well as the Moodle only package.

The AMP individual applications can be tricky to set up for average computer users. This page has been written to try to make this process as simple as possible for different platforms.

Links para Downloads


Windows XP

Installing Moodle for the first time on a Localhost (a stand alone computer) is easy and can be a very useful tool even if a web based production Moodle Server is available for use. These instructions work on a Windows XP computer.

  1. On the Windows packages download page, choose the version you would like. Click on the download link in the rightmost column. This will download a large zip file.
  2. Unzip the downloaded file at c: and keep the path structure for all the files.
  3. Rename the just created c:\moodle to c:\xampplite (c:\xampplite will be our example) but you could rename it c:\moodle16 or c:\moodle17 or C:\testMoodle or whatever .
  4. Using Windows Explorer run the file c:\xampplite\setup_xampp.bat which will make sure all the configuration files use c:\xampplite as the home or root directory.
  5. The following steps assume that the web server will be able to use port 80 on your computer. See troubleshooting if you are running Skype which also likes to use this port as a default.
  6. Be sure that you are administrator or at least that you have rights to install new services.
  7. There many ways to start the localhost webserver from this point for the Moodle install. Here are two ways.
    1. Slightly faster
      1. Using Windows Explorer run the file c:\xampplite\restart_xampp.bat and do not close the window that opens.
    2. Still fast
      1. In Windows Explorer click on c:\xampplite\apache_start to start the Apache web server. This opens a new window that you should leave open.
      2. In Windows Explorer click on c:\xampplite\mysql_start to start the MySQL database server. This opens yet another new window that you should leave open.
  8. In your favorite Web browser, go to the address bar and type "localhost" or "127.0.0.1" and press enter or click go.
  9. This will start the Moodle Install process, which the Installing Moodle MoodleDoc page section describes in a little bit more detail. This can take some time for a new user. Don't panic, you can change things later and the install process will tell you what you absolutely have to fill in or correct.

Easier Moodle restarts

There are lots of ways to start a Moodle after an install. Most Moodlers will have one or more "localhost" links on their computer installed in "Favorites" or even as a browser's default opening screen. But first a web server has to be started. Here are two ways to start them.

Automatic Windows services startup

In order to make starting Moodle more convenient in the future you could install the web and database servers as Windows services that are started automatically. To do this go to Start -> Run... and type the command "c:/xampplite/service.exe -install" into Open box. Then click OK.

Start Moodle by typing localhost in the web browser and/or adding localhost as a favorite site.

Single button service startups

Sometimes there are more than one localhost installed on a computer. Create a shortcut on the start menu, favorites or desktop that points to each specific file like c:\xampplite\restart_xampp.bat . Label each shortcut to a localhost differently, for example C_MoodleXampp, or Moodle16 or Moodle17 or whatever.

Start Moodle by placing localhost in the web browser or adding it as a favorite site. Whichever localhost you restarted, that is the Moodle your web browser will find.

Outras opções de instalação

Ao invés de utilizar esse pacote, você também pode instalar o XAMPP e o Moodle separadamente como explicado na página Windows_installation_using_XAMPP.

Como uma alternativa para o pacote acima, você pode utilizar um como EasyPHP, que engloba todos os softwares necessários em uma única aplicação Windows. Note que o EasyPHP 1.8 utiliza versões antigas dos software que são muito antigas para o Moodle 1.6. Além disso, vários menus no EasyPHP ainda estão em francês. O EasyPHP pode ser uma boa opção novamente uma vez que a versão 2.0 for lançada.

Aqui você pode encontrar passos para uma IIS: Windows installation para XAMPP ou Windows 2003.

Testando se o PHP funciona

Uma vez instalado o PHP na sua máquina servidora web você estará apto a criar um arquivo (ex: info.php) e colocá-lo na raiz do seu servidor web (Apache).

Crie um arquivo de texto com o seguinte conteúdo: <?php phpinfo()?>

e salve-o como info.php no diretório raiz (root) C:\Arquivos de programas\Apache Software Foundation\Apache2.2\htdocs do seu windows. Esse é o diretório padrão das páginas do Apache.

Para fazer a verificação entre no seu navegador preferido e digite o endereço InfoPHP. Se tudo correr bem você visualizará as informações do PHP do seu servidor.


Veja também