While testing a Symfony web application in production environment (--env=prod) I encountered an odd exception which more or less was triggered with each request: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: require(): Failed opening required 'var/cache/prod/doctrine/orm/Proxies/__CG__some-file.php' (include_path='.:/usr/share/php7:/usr/share/php') at vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 223…
Symfony authentication redirect after each request
While testing a Symfony web application on the production environment (--env=prod) I encountered an odd situation which basically redirected me to the authentication route (/login) after each request. Here is how it goes: you pass the security authentication login which…
Use Composer without SSH access
If you have to deploy a PHP application to a remote web hosting server where you do not have access to a terminal like environment, then it seems that the only remaining deployment option is the File Transfer Protocol. You…