Foros del Web » Programando para Internet » PHP » Symfony »

permisos app/cache y app/logs

Estas en el tema de permisos app/cache y app/logs en el foro de Symfony en Foros del Web. Hola, Tengo un problema de permisos instalando Symfony2. Al hacer php app/check.php me sale lo siguiente: ******************************** * * * Symfony requirements check * * ...
  #1 (permalink)  
Antiguo 08/04/2013, 07:15
 
Fecha de Ingreso: abril-2013
Mensajes: 4
Antigüedad: 11 años
Puntos: 0
permisos app/cache y app/logs

Hola,
Tengo un problema de permisos instalando Symfony2.
Al hacer php app/check.php me sale lo siguiente:


********************************
* *
* Symfony requirements check *
* *
********************************

* Configuration file used by PHP: /etc/php5/cli/php.ini

** ATTENTION **
* The PHP CLI can use a different php.ini file
* than the one used with your web server.
* To be on the safe side, please also launch the requirements check
* from your web server using the web/config.php script.

** Mandatory requirements **

OK PHP version must be at least 5.3.3 (5.4.13-2~precise+1 installed)
OK PHP version must not be 5.3.16 as Symfony won't work properly with it
OK Vendor libraries must be installed
OK app/cache/ directory must be writable
OK app/logs/ directory must be writable
OK date.timezone setting must be set
OK Configured default timezone "Europe/Madrid" must be supported by your installation of PHP
OK json_encode() must be available
OK session_start() must be available
OK ctype_alpha() must be available
OK token_get_all() must be available
OK simplexml_import_dom() must be available
OK detect_unicode must be disabled in php.ini
OK PCRE extension must be available

** Optional recommendations **

OK Requirements file should be up-to-date
OK You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions
OK When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156
OK You should not use PHP 5.4.0 due to the PHP bug #61453
OK PCRE extension should be at least version 8.0 (8.12 installed)
OK PHP-XML module should be installed
OK mb_strlen() should be available
OK iconv() should be available
OK utf8_decode() should be available
OK posix_isatty() should be available
WARNING intl extension should be available
Install and enable the intl extension (used for validators).

WARNING a PHP accelerator should be installed
Install and enable a PHP accelerator like APC (highly recommended).

WARNING short_open_tag should be disabled in php.ini
Set short_open_tag to off in php.ini*.

OK magic_quotes_gpc should be disabled in php.ini
OK register_globals should be disabled in php.ini
OK session.auto_start should be disabled in php.ini
OK PDO should be installed
OK PDO should have some drivers installed (currently available: mysql)

Pero cuando accedo con navegador al proyecto me dice:

Major problems

Major problems have been detected and must be fixed before continuing:

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.

Recommendations

Additionally, to enhance your Symfony experience, it’s recommended that you fix the following:

Install and enable the intl extension (used for validators).
Install and enable a PHP accelerator like APC (highly recommended).
Set short_open_tag to off in php.ini*.

* Changes to the php.ini file must be done in "/etc/php5/apache2/php.ini".


Alguien sabe porqué no funcionan los permisos? Gracias anticipadas
  #2 (permalink)  
Antiguo 08/04/2013, 07:46
Avatar de masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: permisos app/cache y app/logs

El usuario que ejecuta el CLI no es el mismo que el que ejecuta apache, este último no tiene los permisos por eso el error, te sugiero que pases por la documentación http://symfony.com/doc/2.1/book/inst...tion-and-setup

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)
  #3 (permalink)  
Antiguo 08/04/2013, 12:30
 
Fecha de Ingreso: abril-2013
Mensajes: 4
Antigüedad: 11 años
Puntos: 0
Respuesta: permisos app/cache y app/logs

Muchas gracias masterpuppet. El problema era que creía que el usuario de apache era "manolo" por lo siguiente:

ps aux | grep apache

root 3794 0.0 0.5 94692 14932 ? Ss 20:11 0:00 /usr/sbin/apache2 -k start
www-data 4754 0.0 0.1 94724 5220 ? S 20:21 0:00 /usr/sbin/apache2 -k start
www-data 4755 0.0 0.1 94724 5220 ? S 20:21 0:00 /usr/sbin/apache2 -k start
www-data 4756 0.0 0.1 94724 5220 ? S 20:21 0:00 /usr/sbin/apache2 -k start
www-data 4757 0.0 0.1 94724 5220 ? S 20:21 0:00 /usr/sbin/apache2 -k start
www-data 4758 0.0 0.3 95408 9096 ? S 20:21 0:00 /usr/sbin/apache2 -k start
www-data 4759 0.0 0.1 94724 5220 ? S 20:22 0:00 /usr/sbin/apache2 -k start
manolo 4778 0.0 0.0 5632 804 pts/0 S+ 20:22 0:00 grep --color=auto apache

y por esto:

ps aux | grep httpd

manolo 4906 0.0 0.0 5628 804 pts/0 S+ 20:25 0:00 grep --color=auto httpd

Sin embargo, he probado con www-data y funciona.
¿Que pinta entonces ese "manolo" en los usuarios de apache?

Etiquetas: permisos
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:37.