• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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