|
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)
|
|
226.
|
|
|
Testing
|
|
|
|
Testando
|
|
Translated and reviewed by
Og Maciel
|
|
|
|
Located in
serverguide/C/web-servers.xml:753(title) serverguide/C/mail.xml:320(title) serverguide/C/mail.xml:1569(title) serverguide/C/dns.xml:343(title) serverguide/C/clustering.xml:184(title)
|
|
227.
|
|
|
To verify your installation, you can run following PHP5 phpinfo script:
|
|
|
|
Para verificar a sua instalação, você pode executar o seguinte script phpinfo do PHP5:
|
|
Translated and reviewed by
Rafael Proença
|
|
|
|
Located in
serverguide/C/web-servers.xml:754(para)
|
|
228.
|
|
|
<?php
print_r (phpinfo());
?>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
<?php
print_r (phpinfo());
?>
|
|
Translated and reviewed by
Alex Rocha
|
|
|