• 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

Question Plesk add extra $_SESSION var for uploaden to mount (disk)

dataconnect

New Pleskian
I have added a new disk and setup a mount in linux. Everything is working and I can write files in linux to the disk.
The thing is.

There is a $_SESSION var that is called HOME. it's pointing to the home dir of the domain (its working fine). In my home dir I have the uploads directory. So that it is outside httpdocs. So far so good.

However de disk is almost full so I want to move every upload dir to the new disk.

the idea;

$_SESSION['UPLOADS'] > /mnt/VHOST/

/mnt/domain-example1/
/mnt/domain-example2/
/mnt/domain-example3/
/mnt/domain-example4/

Is there a way to get that working per domain php or apache?
 
I think it would be far easier to just mount --bind those upload dirs into your domain directories.
 
Back
Top