Como fazer o PHP funcionar no Windows98SE e Apache

Enviada por Carlos 
Carlos
Como fazer o PHP funcionar no Windows98SE e Apache
28 de July de 2001 às 08:58PM
Ja tentei diversas vezes instalar o PHP4 no windows, utilizando o Apache1.3.20.
O Apache esta instalado e rodando.
No final do arquivo httpd.conf coloquei as seguintes linhas:

# Configuração do PHP4

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php.source .phps
Action application/x-httpd-php "/php/php.exe"

Baixei em php.net o arquivo php-4.0.6-win32 e descompactei em c:\php
Copiei o arquivo php.ini-dist para c:\windows e renomei para php.ini
Editei o php.ini e alterei as seguintes linhas

; Windows: "\path1;\path2"
include_path = ".;c:\php\includes"

; Directory in which the loadable extensions (modules) reside.
extension_dir = c:\php

Quando rodo o Apache, recebo a mensagem
Apache/1.3.20(win32) running ....

Utilizando o NOTEPAD, criei um arquivo com a seguinte linha
<? phpinfo(); ?>, salvei como teste.php em c:\apache\htdocs

Utilizando o internet explorer digito http://localhost/teste.php e este me retorna o codigo <? phpinfo ?>

Existe um arquivo install.txt em c:\php que fala sobre o que esta acontecendo
Executei o comando c:/php/php.exe -i.
Este retornos um monte de codigos, significando que o php esta funcionando.
trecho do arquivo install.txt...
Read the FAQ

Some problems are more common than others. The most common ones
are listed in the PHP FAQ, found at www.php.net/FAQ.php

Common problems with Windows

The following problems often occur with IIS/PWS, but some points may
also apply to other servers.

For test purposes it is best to use just a simple test script. One
containing just the following line will suffice:
<?php phpinfo();?>

You have installed PHP, but when try to access a php script file via your
browser, you get a blank screen:

Do a 'view source' in the web browser and you will probably find that you
can see the source code of your php script. This means that the web server
did not send the script to php for interpretation. Something is wrong with
the server configuration - double check the server configuration against
the php installation instructions.
You have installed PHP, but when try to access a php script file via your
browser, you get a server 500 error:

Something went wrong when the server tried to run PHP. To get to see a
sensible error message, from the command line, change to the directory
containing php.exe and run <literal>php.exe -i</literal>
If php has any problems running, then a suitable error message will be displayed
which will give you a clue as to what needs to be done next.
If you get a screen full of html codes (the output of the phpinfo() function) then
php is working ok, and your problem may be related to your server configuration
which you should double check.

se alguem puder ajudar obrigado.
anjo
Como fazer o PHP funcionar no Windows98SE e Apache
01 de August de 2001 às 04:32PM
Simples!!Utilize o Nusphere...
Ele é um pacote para win . que vem
Apache,PHP,Mysql,Sendmail,OpenSSL,Perl...
Vc instala o que quiser..
Simples de instalar não precisa destas configurações!!
ok!!
Vinicius Silva
RE: Como fazer o PHP funcionar no Windows98SE e Ap
27 de August de 2001 às 11:57PM
Mais algumas coisas:

copiar o arquivo php4st.dll para o diretório Windows\System, ele tá no diretório do PHP.

acrescentar no httpd.conf a linha

loadModule php4_module c:/php/sapi/php4apache.dll

Tenta ai...
Você precisa estar logado no PHPBrasil.com para poder enviar mensagens para os nossos fóruns.

Faça o login aqui.