Forums

Uploading to symlink (1 post)

  1. jorge2904
    Member
    Posted 8 months ago #

    Im trying to get WordPress to upload files to a directory on that is located in a different root directory.

    WordPress tries to upload to /var/www/vhosts/domain.com/httpdocs/wp-content/uploads

    I want it to upload to /var/www/vhosts/domain.com/subdomains/img/httpdocs/uploads

    I created a symlink from /var/www/vhosts/domain.com/httpdocs/wp-content/uploads -> /var/www/vhosts/domain.com/subdomains/img/httpdocs/uploads

    i can view the correct files externally but when i go to upload it does not see any of the year or month folders where the files are located. I changed the ownership of the actual folder and the symlink to 777 and used recursive but nothing.

    Any ideas?? Im doing this because images are being pulled from a subdomain that is hosted on the same server img.domain.com.

    Thanks

Reply

You must log in to post.

About this Topic