Te estado mirando ese error,bueno encontre algo lo dejo aqui:
Persona que tiene el error ->
He encontró con un gran problema.
On my website all the pages have '.html' extensions.
En mi sitio web todas las páginas'. Html 'extensiones.
They're all capable of running php because of my '.htaccess' file.
Son capaces de correr a causa de mi php '. Htaccess en el 'archivo.
I also have a feed that updates itself automatically by using php and pulling information from a database.
También tengo un alimento que se actualiza automáticamente utilizando php y tirando de la información desde una base de datos.
Below is my '.htaccess' file.
Que figura a continuación es mi '. Htaccess en el 'archivo.
Code:
Código:
Addhandler application/x-httpd-php .html .php Addhandler application/x-httpd-php .xml .php
Addhandler solicitud / x-httpd-php. HTML. Php Addhandler solicitud / x-httpd-php. XML. Php
I want to run PHPBB 2 on my website and when I install it and try to log in I get this error:
Quiero correr PHPBB 2 en mi sitio y cuando me instalarlo e intentar acceder me sale este mensaje de error:
'Fatal error: SUHOSIN - Use of eval is forbidden by configuration in /home/halonirv/public_html/phpBB2/includes/template.php(174) : eval()'d code on line 174'
'Error fatal: SUHOSIN - El uso de eval es prohibido por la configuración en / home/halonirv/public_html/phpBB2/includes/template.php (174): por eval () "d código, en la línea 174'
I asked my host about it because I thought it had something to do with them and I got this response:
Le pregunté a mi anfitrión acerca de ello, porque pensé que tenía algo que ver con ellos y tengo la respuesta:
'The problem was with your PHP handlers in your .htaccess file.
'El problema es con tu versión de PHP en sus manejadores. Htaccess.
I commented them out and it should work now.'
Me comentó a cabo y que deben trabajar ahora. '
He took my '.htaccess' and put '#'s in front of the commands.
Entiende mi '. Htaccess en 'y poner' # 's delante de los comandos.
This made PHPBB 2 work but it made it so the pages with '.html' extensions were no longer capable of running PHP.
Esto hizo PHPBB Febrero trabajo, sino que lo hizo con las páginas'. Html 'extensiones ya no eran capaces de correr PHP.
I'm not sure about my feed.
No estoy seguro acerca de mi feed.
(It's file extension was '.xml' and it was RSS version 2)
(Se trata de la extensión de archivo es ". XML y RSS es la versión 2)
So what do I do to make it so I can run PHP on pages that end with '.html' and '.xml' and make PHPBB 2 work as well?
Por tanto, ¿qué puedo hacer para que por lo que puede correr PHP en las páginas que terminan en '. Html 'y'. XML 'y hacer PHPBB Febrero funciona tan bien?
El que intenta ayudarle -->
Lo primero que quiero tratar es el cambio de las ocurrencias de "Addhandler" a la "AddHandler". Htaccess en comandos distinguen entre mayúsculas y minúsculas.
Another thing to check is how PHP is running on your host, is it running as CGI or as an Apache module?
Otra cosa es cómo comprobar que PHP es ejecutado en su anfitrión, se ejecuta como CGI o como módulo de Apache?
If it's running as CGI then use AddHandler, however if it's running as an Apache module then you could instead try:
Si se está ejecutando como el uso AddHandler CGI entonces, sin embargo, si se está ejecutando como módulo de Apache, entonces usted podría probar:
Code:
Código:
AddType application/x-httpd-php .html .xml
AddType solicitud / x-httpd-php. HTML. XML
El que tiene el error -->
La evolución de los Addhandler 'a la' AddHandler 'no hacer nada y que sustituye a todo lo que en mi'. Htaccess en 'archivo' AddType solicitud / x-httpd-php. HTML. XML 'hizo el foro de trabajo, pero el sitio web tiene un 500 internos Error en el servidor.
UPDATE: I found out that if I deleted everything from my '.htaccess' file and replaced it with 'AddHandler application/x-httpd-php .html .xml' it made the forum and the website work like a wanted.
UPDATE: me enteré de que, si todo lo que he suprimido de mi ". Htaccess en 'el archivo y lo sustituyó por "AddHandler solicitud / x-httpd-php. HTML. XML 'que hizo el foro y el sitio de trabajo como una quería.
Am I putting myself at a security risk or anything because this seems to good to be true.
Estoy poniendo yo en un riesgo para la seguridad o nada porque esto parece bueno para ser cierto.
Is there any fault that can come of putting
¿Hay algún fallo que puede venir de la puesta
Code:
Código:
AddHandler application/x-httpd-php .html .xml
AddHandler solicitud / x-httpd-php. HTML. XML
instead of
En lugar de
Code:
Código:
Addhandler application/x-httpd-php .html .php Addhandler application/x-httpd-php .xml .php
Addhandler solicitud / x-httpd-php. HTML. Php Addhandler solicitud / x-httpd-php. XML. Php
?
El que intenta ayudarle -->
Usted sólo necesita una declaración y sólo una lista de todas las extensiones que desea mapa en el extremo.
Mapping .php is redundant since it is already mapped correctly and trying to map it again may be puting it into an infinite loop and causing the error you were having.
Cartografía. Php es redundante puesto que ya está asignada correctamente e intentando de nuevo el mapa que puede ser puesta en un bucle infinito, y ha causado el error que estaban teniendo.
Un posteador que intenta ayudarle tambien -->
Creo que en general es una mala cosa para aplicar el intérprete PHP para tipos de archivos no diseñados para ello.
It's not impossible as you show, but it's not recommended.
Es imposible que usted no se presenta, pero no es recomendable.
El que tiene el error -->
¿Cuál sería su método alternativo se aedrin?
My website depends on everything being able to run php.
Mi sitio depende de todo lo que es capaz de ejecutar PHP.
El que intenta ayudarle -->
Cita:
I think generally it is a bad thing to apply the PHP parser to filetypes not designed to handle them.
Creo que en general es una mala cosa para aplicar el intérprete PHP para tipos de archivos no diseñados para ello. It's not impossible as you show, but it's not recommended.
Es imposible que usted no se presenta, pero no es recomendable.
Nonsense, there's no reason whatsoever (other than confusion for future developers, so no 'technical' reason) why you shouldn't setup PHP to parse any text file you like.
Tonterías, no hay razón alguna (distinta de confusión para los futuros desarrolladores, por lo que no "técnica" razón) por qué usted no debe configurar PHP para interpretar cualquier archivo de texto que usted quiera.
The extension is just a dot and some characters, it has no meaning.
La prórroga es sólo un punto y algunos caracteres, no tiene sentido.
Having php parse .html, .css and .js, and image files (jpg, gif, png etc.) is fairly common.
Habiendo php analizar. Html. Y css. Dj's, y los archivos de imagen (jpg, gif, etc) es bastante común.
El que intenta ayudarle -->
La única razón para no crear PHP para interpretar todo es que esto significa que cada pedazo de su página se analiza para PHP, aun cuando no contiene ninguna.
If all your .html file contain PHP then it makes sense to parse .html files, if only one or two .html files contain PHP and the other thousand .html pages don't then it makes sense to change the extension on those couple of files rather than have PHP parsing all the others unnecessarily and slowing everything down.
Si todas tus. Archivo html contener PHP entonces tiene sentido analizar. Los archivos del HTML, aunque sólo uno o dos. Contienen los archivos del HTML PHP y otros mil. Páginas html, entonces, ya no tiene sentido cambiar la extensión de los dos En lugar de tener archivos PHP al analizar todos los demás y retrasando innecesariamente todo.
Ya no hay mas post,espero que te sirva de ayuda o algo.