Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/05/2010, 10:36
xruso
 
Fecha de Ingreso: mayo-2010
Mensajes: 2
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: Apache no muestra las páginas, sino que las descarga luego de actualizar K

Bueno te muestro como solucione momentaneamente el problema:

1)editar el siguiente arcchivo:

sudo nano /etc/apache2/mods-available/php5.conf

2) comentar todas la lineas:

<IfModule mod_php5.c>
# <FilesMatch "\.ph(p3?|tml)$">
# SetHandler application/x-httpd-php
# </FilesMatch>
# <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/ruso/public_html>
# php_admin_value engine OFF
# </Directory>
# </IfModule>
</IfModule>

3) Agregar estas 2 lineas (agrgar o modificar las extensiones que uno prefiere):

AddType application/x-httpd-php .php .phtml .php3 .html .xhtml
AddType application/x-httpd-php-source .phps

4) El archivo php5.conf quedaria así:
<IfModule mod_php5.c>
# <FilesMatch "\.ph(p3?|tml)$">
# SetHandler application/x-httpd-php
# </FilesMatch>
# <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/ruso/public_html>
# php_admin_value engine OFF
# </Directory>
# </IfModule>

AddType application/x-httpd-php .php .phtml .php3 .html .xhtml
AddType application/x-httpd-php-source .phps

</IfModule>

Salvar los cambios y reiniciar el serividor apache para que tome los cambios:

sudo service apache2 restart

Bueno espero que te sirva, saludos

Última edición por xruso; 06/05/2010 a las 21:46