• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Directories permissions in different domains for the same application

PaulinoM

New Pleskian
Folks,

I have a bad situation that's I can't find a solution.

The scenario:

I have 3 real domains (not aliases or parked): domain1, domain2 and static-domain. In domain1 and domain2 I have 2 websites running over WordPress and the static-domain I just use to put static files, e.g. javascript files, themes images, css files. This is a cookie-free domain.

I would like to use the static-domain to host the images of my texts from domain1 and domain2 but here my problems begin.

Wordpress put those files inside of wp-content/uploads directory but is possible to change to another directory, including directories outside of your structure.

I've try to change it pointing the destination to the static-domain httpdocs directory but when I try to upload an image, I receive the message that's Wordpress can't create a directory (to match my distribution system using year/month/day directories).

I try to change the permissions of this directory for any combination, including 777. I try to change the owner and group to the same owner/group of the domain1 and don't solve the situation. I try to put the users of both domains inside of the apache group and don't solve the problem. I really try a lot of different approaches but nothing happen and nothing solve this problem.

So, I ask for the forum for any clue or a different approach to my situation. Any idea is really welcome.

Thank you
 
PHP will NOT allow you to run a script on one site on your server and then write a file from that script on another site. This is a built in protection against cross site scripting. The function open_basedir prevents you from having write access on another vhost on the server.

At least what I am trying to say is that the way WordPress does things, i think you are stuck.
 
Last edited:
Back
Top