Search code examples
phpftpsymfony4

how to call symfony command in a FTP server?


my production server is only accessible via FTP. I need to change the logo of my team but it require to clear the cache.

In general I would like to know how to run a a php console command via a index.php file ? It would allow me to continue using some commands suche as :

$ php bin/console cache:clear

Solution

  • You can manually "clear" the cache by deleting the content of /var/cache/prod

    It won't warm up the cache, so, the first browse of any page will re create it