Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How to edit the Config.php file? (Como editar el archivo Config.php)?

YAcostaYAcosta
edited December 2012 in Vanilla 2.0 - 2.8

I can not change the contents of this file because the permissions will not let me, I got to 777 and returns to its prior permission. I can manually edit the file.
I have read on other sites and suggest that this is because the Vanilla directametne install on the host that is Linux and the issue of permits is more strict.
Download the file, edit it locally and uploading it again I get this message:

So I went back to return. The line was willing to change: $Configuration['Garden']['RewriteUrls'] = FALSE;
a TRUE.
How to change permissions? or would have to reinstall everything?

Thanks

ORIGINAL:
No puedo cambiar el contenido de este archivo porque los permisos no me lo permiten, ya lo puse a 777 y vuelve a su permiso anterior. No me permite modificar manualmente el archivo.
He leido por otros sitios e indican que esto se debe a que instale directametne el Vanilla en el Host que es Linux y el tema de los permisos es mas estricto.
Baje el archivo, lo edite en local y al volver a subirlo me sale este mensaje: (Foto)

Asi que volvi a restituir. La linea que deseaba cambiar era de: $Configuration['Garden']['RewriteUrls'] = FALSE;
a TRUE.
¿Como cambio los permisos? o tendria que reinstalar todo?

Gracias

Comments

  • Options
    peregrineperegrine MVP
    edited December 2012

    You keep calling it config.sys in other discussions, but you mean config.php :)

    Talk to your host provider, about how to do it properly This is not a vanilla issue per se. It is a problem with your host provider and the ownership of the file and your ability to set permissions. re-installing won't help - you will have the same problem again down the road. next time you try to modify it.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    Excuse the bad habit of working alone in the Windows world, it is true is called config.php and config.sys,'ll be more careful.
    On talking to my hosting ... I have in my hosting 6 domains with different cms and SMF forum and I can edit all your files, even I can also edit any other file php or css Vanilla, the only thing is I can not in config.php, I do not think restricted host a single. I will keep investigating, thanks.

    ORIGINAL:
    Discúlpeme, la mala costumbre de trabajar solo en el mundo Windows, es cierto se llama config.php y no config.sys, tendré mas cuidado.
    Sobre hablar con mi hosting... en mi hosting tengo 6 dominios con diferentes cms y el foro SMF y en todos puedo editar sus archivos, incluso también puedo editar cualquier otro archivo php o css de Vanilla, con el unico que no puedo es con el config.php, no creo que el host restrinja un solo archivo. Seguiré investigando, gracias.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited December 2012

    @YAcosta El permiso anterior es 775 ? de todos modos si es posible editar el arhivo.

    Tiene que bajarlo a su computadora, cuando baja se convierte en config.php.html esto lo tiene que quitar después de editar usando algo como textedit o notepad.
    Lo guarda como config.php.
    Ya que edito lo sube de nuevo por ftp y pone over-write/sobre-escribir. Esto debe de funcionar. Guarde el original por si no funciona su edición.
    Le recomiendo FileZilla.app para uso ftp hay para todos los sistemas.

  • Options

    Hola vrijvlinder .
    Te comento que fue eso exactamente lo que hice. Lo baje (no se convirtió en config.php.html ya que siguió siendo config.php), lo edite con Notepad++ y lo grabe, verifique que la extensión seguía siendo .php, luego de eso usando filezilla lo subi y sobreescribi, cargue la web y me sigue saliendo la advertencia que muestro en la foto. La web sigue funcionando con normalidad pero me sale ese mensaje. ¿Que podra ser?

    P.D: Ya estoy haciendo la web del otro post.

  • Options
    peregrineperegrine MVP
    edited December 2012

    try changing permissions on the conf directory to 777 for grins.

    who is the owner of the file?

    display a screenshot of the ownership and permissions. so we can see without you translating.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited December 2012

    Me temo que lo único que puede ser es los permisos no quieren quedarse. Eso ya es problema que el host que usas te tiene que ayudar a resolver. En algunas veces si no sirve el sobre-escribir entonces borrar el original desde ftp y subir el nuevo.
    También hay que asegurarse que los permisos también estén en el fichero no solo el archivo. Osea hay dos lugares que se tiene que cambiar los permisos, en el directorio y en archivo. El permiso que yo tengo para el directorio es 755 y no tengo problemas de editar.

    Si nada de esto funciona ponte en contacto con tu compañía host y pedir ayuda para cambiar los permisos. Es lo único que puede evitar editar. Así se ven mis permisos para el directorio.

    image

  • Options

    @peregrine said:
    try changing permissions on the conf directory to 777 for grins.

    who is the owner of the file?

    display a screenshot of the ownership and permissions. so we can see without you translating.

    Change to 777 to file I uploaded and now if I run, before I worked for changed to 777 directly in the host, this time it went up and down and if I accept this file to 777 and now when it is editable.

    Thank you very much for your help.

    (I'm using Google Translator, I have no way to translate, but I began to study English with Duolingo)

    ORIGINAL:
    Cambie a 777 al archivo que subí y ahora si funcionó, Antes no me funcionaba porque cambiaba a 777 directamente en el archivo del host, esta vez lo baje y lo subi y a este archivo si me acepto a 777 y ahora si es editable.

    Muchas gracias por su ayuda.

    (Estoy usando Google Translator, no tengo otra forma de traducir, pero ya empece a estudiar ingles con Duolingo)

  • Options
    YAcostaYAcosta
    edited December 2012

    Gracias. Como comente en el post anterior se resolvio aplicando los permisos al archivo que baje y subi de nuevo. Lo veia imposible que sea un tema para hablar con mi hosteador porque era el unico archivo que no se podria editar ya que en este host tengo 6 dominios con varios blog y foros y todos son editables y pues no me parecia que el host me restrinja un solo archivo. El truco era en lo que comentabas antes, bajar y subir el archivo pero me habia faltado ponerle los nuevos permisos.

    Muchas gracias.> @vrijvlinder said:

    Me temo que lo único que puede ser es los permisos no quieren quedarse. Eso ya es problema que el host que usas te tiene que ayudar a resolver. En algunas veces si no sirve el sobre-escribir entonces borrar el original desde ftp y subir el nuevo.
    También hay que asegurarse que los permisos también estén en el fichero no solo el archivo. Osea hay dos lugares que se tiene que cambiar los permisos, en el directorio y en archivo. El permiso que yo tengo para el directorio es 755 y no tengo problemas de editar.

    Si nada de esto funciona ponte en contacto con tu compañía host y pedir ayuda para cambiar los permisos. Es lo único que puede evitar editar. Así se ven mis permisos para el directorio.

    image

  • Options

    Solved. awesome.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    Que bueno ! si hay varios lugares donde se tiene que cambiar vaya ahora puede publicar esto en el nuevo foro en Español :)

Sign In or Register to comment.