• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

auto_prepend_file

I use the same symlink and it just works. Did you restart apache after creating the link?

You could probably also write a one-liner using sed to replace /var/www/vhosts with /home/httpd/vhosts in all vhost.conf files.

And our spamfiltering is working just fine. :)
 
unfortunately the symlink doesn't work for me, ran websrvmngr, restarted httpd, etc...nothing...tried countless variations.

i could search and replace i guess...hrmph.

DC
 
Just to confirm - using a symlink will not work in this case. I had someone else try on a different server.

So I put this together to update the paths in all my vhost.conf files from /home/httpd/vhosts/ to /var/www/vhosts:

find . -name "vhost.conf" -print -maxdepth 3 -exec sed -i 's/\/home\/httpd\/vhosts/\/var\/www\/vhosts/' {} \;

Let the nightmare that is Plesk migration continue!
 
Back
Top