Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/12/2012, 01:54
user404
 
Fecha de Ingreso: diciembre-2012
Mensajes: 3
Antigüedad: 11 años, 4 meses
Puntos: 0
2 Problema con permisos en Fedora

Hola a todos, soy nuevo en el foro, les comento, utilizo Fedora 17 con gnome 3, no utilizo lampp, instale todo por separado, descargue symfony segui todos los pasos, si hago "php app/check.php" me marca todo OK, pero cuando entro a "http://localhost/html/symfo/web/config.php" me salen los clasicos errores de permisos:

Change the permissions of the "app/cache/" directory so that the web server can write into it.
Change the permissions of the "app/logs/" directory so that the web server can write into it.
y un warning:
Install and enable a PHP accelerator like APC (highly recommended).

Probe todo lo que pude y no puedo hacerlo funcionar, estos son los ultimos pasos que realice:
Active el mod_rewrite
AllowOverride All

Di permisos, mascara y cambie al propietario de apache
1 rm -rf app/cache/*
2 rm -rf app/logs/*
3 sudo setfacl -dR -m u:apache:rwx -m u:`whoami`:rwx app/cache app/logs (en Fedora el usuario de Apache es apache)
4 sudo setfacl -R -m u:apache:rwx -m u:`whoami`:rwx app/cache app/logs (en Fedora el usuario de Apache es apache)
5 umask 0000 -R symfo/
6 chmod 777 -R symfo/
7 chown apache:apache -R symfo/

Hasta intente con un Virtual Host

y a pesar de todo eso sigo teniendo errores de permisos, el comando "ls" me marca todo verde y ls -l me dice que son todos de propiedad de apache apache, si entro a "http://localhost/html/symfo/web/app_dev.php" me sale esto:

Whoops, looks like something went wrong.
1/1 RuntimeException: Unable to create the cache directory (/var/www/html/symfo/app/cache/dev)

in /var/www/html/symfo/app/bootstrap.php.cache line 918
at Kernel->buildContainer() in /var/www/html/symfo/app/bootstrap.php.cache line 859
at Kernel->initializeContainer() in /var/www/html/symfo/app/bootstrap.php.cache line 571
at Kernel->boot() in /var/www/html/symfo/app/bootstrap.php.cache line 614
at Kernel->handle(object(Request)) in /var/www/html/symfo/web/app_dev.php line 25

Ayuda, ya no se que hacer, gracias!

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
EDIT:
Encontre un comando: "app/console cache:clear", despues de escribirlo en la consola y querer ingresar al "app_dev.php", recibi 4 errores dos increiblemente largos y dos cortos
Whoops, looks like something went wrong.

1/1 RuntimeException: Failed to write cache file "/var/www/html/symfo/app/cache/dev/classes.php".

1
in /var/www/html/symfo/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php line 205

4
at Kernel->loadClassCache() in /var/www/html/symfo/web/app_dev.php line 23


Alguna idea? Gracias otra vez

Última edición por user404; 30/12/2012 a las 02:54