This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Access to log file in production

Discuss installing Symfony 2 here

Access to log file in production

by droubaud » Sun Feb 08, 2015 4:56 pm

Hello everybody,

I just went to create my first Symphony2 bundle on my local server, and I want to put it on production on my provider's server.

I have cleaned the caches, and transferred all my Symfony directory on the provider's server.
When I try to test a page on my provider's server (so through internet, not locally), I receive an error : "'UnexpectedValueException' with message 'The stream or file "E:/David/Divers/xampp/htdocs/Symfony/app/logs/prod.log" could not be opened: failed to open Stream".

This means that somewhere in a configuration file, the local address of my prod.log has been transfered to the provider's server. I must add that the cache and log directories has been set chmod 777, so there is no problem for the provider's Apache server to write in.

Does somebody have an idea ?

Thanks in advancedavid
Junior Member
Posts: 1
Joined: Sun Feb 08, 2015 4:45 pm