PHP sobre Apache
Tengo instalado el servidor Apache en mi máquina pero no consigo ejecutar código PHP. ¿Que pasos he de realizar para, despues de instalar Apache, poder llegar a ejecutar PHP?
Muchas gracias.
Muchas gracias.
He escrito un tutorial sobre eso mismo. Puedes verlo en
www.flipis.net/programacion_tuts.php
fLIPIS (www.flipis.net)
www.flipis.net/programacion_tuts.php
fLIPIS (www.flipis.net)
LA solucion es simple.
Una vez instalado el PHP (preferentemente en c:PHP), añade estas linea en el archivo httpd.conf , en el directorio conf de Apache:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
En la zona de AddType, justo de bajo de estas lineas:
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
Si tienes algun problema dimelo
Una vez instalado el PHP (preferentemente en c:PHP), añade estas linea en el archivo httpd.conf , en el directorio conf de Apache:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
En la zona de AddType, justo de bajo de estas lineas:
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
Si tienes algun problema dimelo
