If you get the following error when running a Symfony command through the command line (like doctrine:schema:update): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ Try configuring app/config/parameters.yml with the server hostname where your account resides (ie. sg112.servergrove.com) instead of localhost. This will force the ORM to connect through . . . Read more
In this case you need to change the permissions of the symfony script file by running: chmod u+x app/console Related Articles Cannot connect to MySQL when running Symfony2 commands How do I schedule Symfony2 commands on shared hosting?
The cron task runs in a different environment that the shell access does, and this might provoke an error related to the project paths. This is why you have to set the full path for the Symfony2 console script, just as the cron sees it. php /var/www/vhosts/example.com/symfony_projects/myProject/app/console my:command Related Articles . . . Read more
To configure Symfony2 to send email you need to use transport: mail http://symfony.com/doc/master/cookbook/email/email.html#configuration Go to the configuration file. Search for swiftmailer and change the transport. swiftmailer: transport: mail
View the original article on our blog, HERE What is Maestro? Maestro is a tool ServerGrove built to help the deployment of symfony projects on shared hosting accounts. In a few simple steps you will have your project up and running. Maestro will only work on ServerGrove shared hosting accounts. . . . Read more