I have a symlink at /var/www/domain.example/web/MY_SYMLINK pointing to /var/www/domain.example/web/SOME_FOLDER. This is defined as my document root for the website.
Then I run ln -sfn to change the symlink to something like /var/www/domain.example/web/NEW_FOLDER. So far, so good. If I run ls -a it's possible to see that the change was applied.
If I hit the server at http://domain.example, the website still pointing to the old folder. I know that apache needs to be restarted, so I run service apache2 restart but the change isn't performed. I've tried with apache2 stop/start, reload or graceful. None of them works.
The symlink update is only applied if I go to ISPConfig's control panel and hit Resync.
I wanna be able to perform this from the command line. Anyone know how to do it?
ln -sfn
I could just access the new folder without even having to restart Apache. Are you maybe running PHP-FPM or FCGI with Apache? – Pattison