• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Alias & open_base_dir - Why isn't this simple?

D

desoto0311

Guest
Okay, I've found about 5 or so people with similar problems and posted questions there, but to no avail.

I have several sites that share scripts. I created an alias in vhost.conf (and vhost_ssl.conf) files. I added open_basedir in directory.

What I'm simply trying to do is have an include folder within domain A be shared with domain B, C, etc. I'm half-way there, as I can access the php file, but unfortunately it prompts me to download it instead of parsing it. Not sure at this point what I'm missing. I've tried about 15 or so variations based on other posts but it's simply no cooperating.

Here is my site2 vhost.conf file (complete):

Alias /includes/folder /var/www/vhosts/site1.com/httpdocs/includes/folder

<Directory "/var/www/vhosts/site2.com/httpdocs">
php_admin_value open_basedir var/www/vhosts/site1/httpdocs
</Directory>

Again, the alias "seems" to be working. If I go to site2.com/includes/folder/file.php it's "there" as I can download it, but it's not parsing the PHP. Note that once I add this, I lose the rest of the site; ie site1.com is just blank, which is strange, since if it's a php issue, I'd then think that the index.php page would ALSO prompt for download, right? Assuming the vhost.conf file is overwriting all previous basedir settings.

Also as a test, I set basedir to none. The site would still function then (good), but the page accessed from the /includes/folder directory would still prompt for download.

I've tried modifying with 'ifmodule' , safe_mode, etc ad nauseum and simply cannot get this to work.

I also tried using /includes/folder (full path) in base_dir with same effect. No site, and download prompt.

Any help would be much appreciated.

Thanks,
-D
 
Back
Top