|
216.
|
|
|
This section assumes you have installed and configured Apache 2 Web Server and MySQL Database Server. You can refer to Apache 2 section and MySQL sections in this document to install and configure Apache 2 and MySQL respectively.
|
|
|
|
Esta seção assume que você já instalou e configurou o Servidor Web Apache 2 e o Servidor de Banco de Dados MySQL. Você pode consultar a seção do Apache 2 e as seções do MySQL neste documento para instalar e configurar o Apache 2 e o MySQL, respectivamente.
|
|
Translated and reviewed by
Welliton Sá
|
|
|
|
217.
|
|
|
The PHP5 is available in Ubuntu Linux.
|
|
|
|
O PHP5 está disponível no Ubuntu Linux.
|
|
Translated and reviewed by
Alex Rocha
|
|
|
|
Located in
serverguide/C/web-servers.xml:676(para)
|
|
218.
|
|
|
To install PHP5 you can enter the following command in the terminal prompt: <screen>
<command>sudo apt-get install php5 libapache2-mod-php5</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
Para instalar o PHP5 você pode entrar o seguinte comando no terminal: <screen>
<command>sudo apt-get install php5 libapache2-mod-php5</command>
</screen>
|
|
Translated by
Leonardo Bernardes
|
|
Reviewed by
Laudeci Oliveira
|
|
|
|
Located in
serverguide/C/web-servers.xml:678(para)
|
|
219.
|
|
|
You can run PHP5 scripts from command line. To run PHP5 scripts from command line you should install <application>php5-cli</application> package. To install <application>php5-cli</application> you can enter the following command in the terminal prompt: <screen>
<command>sudo apt-get install php5-cli</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
Você pode executar scripts PHP5 a partir da linha de comando. Para executar scripts PHP5 da linha de comando você deve instalar o pacote <application>php5-cli</application>. Para instalar <application>php5-cli</application> você pode digitar o seguinte comando em um terminal: <screen>
<command>sudo apt-get install php5-cli</command>
</screen>
|
|
Translated and reviewed by
Andre Noel
|
|
|
|
Located in
serverguide/C/web-servers.xml:687(para)
|
|
220.
|
|
|
You can also execute PHP5 scripts without installing PHP5 Apache module. To accomplish this, you should install <application>php5-cgi</application> package. You can run the following command in a terminal prompt to install <application>php5-cgi</application> package: <screen>
<command>sudo apt-get install php5-cgi</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
Você pode também executar scripts PHP5 sem instalar o módulo PHP% para o Apache. Para fazer isso, você deve instalar o pacote <application>php5-cgi</application>. Você pode executar o seguinte comando em um terminal para instalar o pacote <application>php5-cgi</application>: <screen>
<command>sudo apt-get install php5-cgi</command>
</screen>
|
|
Translated by
Daniel Neis
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
serverguide/C/web-servers.xml:696(para)
|
|
221.
|
|
|
To use <application>MySQL</application> with PHP5 you should install <application>php5-mysql</application> package. To install <application>php5-mysql</application> you can enter the following command in the terminal prompt: <screen>
<command>sudo apt-get install php5-mysql</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
Para usar o <application>MySQL</application> com o PHP5, você deve instalar o pacote <application>php5-mysql</application>. Para instalar o pacote <application>php5-mysql</application>, digite o seguinte comando em um terminal: <screen>
<command>sudo apt-get install php5-mysql</command>
</screen>
|
|
Translated and reviewed by
Alex Rocha
|
|
|
|
Located in
serverguide/C/web-servers.xml:706(para)
|
|
222.
|
|
|
Similarly, to use <application>PostgreSQL</application> with PHP5 you should install <application>php5-pgsql</application> package. To install <application>php5-pgsql</application> you can enter the following command in the terminal prompt: <screen>
<command>sudo apt-get install php5-pgsql</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
Da mesma maneira para usar o <application>PostgreSQL</application> com o PHP5, você deve instalar o pacote <application>php5-pgsql</application>. Para instalar o pacote <application>php5-pgsql</application>, digite o seguinte comando em um terminal: <screen>
<command>sudo apt-get install php5-pgsql</command>
</screen>
|
|
Translated and reviewed by
Alex Rocha
|
|
|
|
Located in
serverguide/C/web-servers.xml:714(para)
|
|
223.
|
|
|
Once you install PHP5, you can run PHP5 scripts from your web browser. If you have installed <application>php5-cli</application> package, you can run PHP5 scripts from your command prompt.
|
|
|
|
Uma vez instalado o PHP5, você pode rodar scripts PHP5 no seu navegador. Se você instalou o pacote <application>php5-cli</application>, você pode rodar scripts PHP5 em comando prompt.
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
serverguide/C/web-servers.xml:727(para)
|
|
224.
|
|
|
By default, the Apache 2 Web server is configured to run PHP5 scripts. In other words, the PHP5 module is enabled in Apache2 Web server automatically when you install the module. Please verify if the files <filename>/etc/apache2/mods-enabled/php5.conf</filename> and <filename>/etc/apache2/mods-enabled/php5.load</filename> exist. If they do not exists, you can enable the module using <command>a2enmod</command> command.
|
|
|
|
Por padrão, o Servidor Web Apache 2 é configurado para executar scripts PHP5. Em outras palavras, o módulo PHP5 é habilitado no servidor Web Apache2 automaticamente quando você instalar o módulo. Por favor verifique se os arquivos <filename>/etc/apache2/mods-enabled/php5.conf</filename> e <filename>/etc/apache2/mods-enabled/php5.load</filename> existem. Se eles não existirem, você pode habilitar o módulo usando o comando <command>a2enmod</command>.
|
|
Translated and reviewed by
Welliton Sá
|
|
|
|
Located in
serverguide/C/web-servers.xml:734(para)
|
|
225.
|
|
|
Once you install PHP5 related packages and enabled PHP5 Apache 2 module, you should restart Apache2 Web server to run PHP5 scripts. You can run the following command at a terminal prompt to restart your web server: <screen><command>sudo /etc/init.d/apache2 restart</command> </screen>
|
|
|
|
Uma vez que você instala os pacotes relacionados ao PHP5 e habilitar o módulo do PHP5 para o Apache 2, você deve reiniciar o servidor web Apache2 para executar scripts em PHP5. Você pode executar o seguinte comando em um prompt do terminal para reiniciar seu servidor web: <screen><command>sudo /etc/init.d/apache2 restart</command> </screen>
|
|
Translated and reviewed by
Lucas Arruda
|
|
|
|
Located in
serverguide/C/web-servers.xml:745(para)
|