[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sobre configuracion de apache2 para que funcione bien con php



Sun, 10 Oct 2010, "José Manuel (EB8CXW)":

El 07/10/10 04:05, Alejandro Matos escribió:

la página puede estar configurada con xhtml, html o como se te ocurra,
pero  el archivo físico debe tener la extensión ".php" para que el
servidor lo  puede interpretar y hacer la "magia".

Saludos !
El mié, 06-10-2010 a  las 16:36 +0200, Manel Bazalo escribió:

Hola,

Y si lo  guardas como "ejemplo.php" ??

No necesariamente ;) anyadió html en '/etc/apache2/mods-available/php5.conf' y
listo.

"AddType application/x-httpd-php .php .phtml .php3 .html"


Hola a tod@s:

Una pregunta, dónde pone eso, ya que mi php5.conf solo tiene lo siguiente:

<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
   SetHandler application/x-httpd-php
</FilesMatch>

Estas tres líneas son las responsables de que los ficheros con extensiones relacionadas con php se procesen por este. Se usan [1]expresiones regulares para esto.

<FilesMatch "\.phps$">
   SetHandler application/x-httpd-php-source
</FilesMatch>
   # To re-enable php in user directories comment the following lines
   # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
   # prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
           php_admin_value engine Off
</Directory>
</IfModule>
</IfModule>

 [1]http://httpd.apache.org/docs/2.0/glossary.html#regex
 [1]http://es.wikipedia.org/wiki/Expresi%C3%B3n_regular

--
	Saludos --- Angel

Reply to: