• 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.

php include path

gggino

New Pleskian
I have a website with multiple subdomains. All the pages of the principal domain and of all the subdomains need to access an include folder, where are the core php files of the website.

the include directory is in domain.com/httpd/include/

To avoid having to upload multiple copies of such folder, at the moment the solution I have found is to place all the directories of the subdomains inside the httpd directory of the domain

for example the directory for subdomain1.domain.com is in domain1.com/httpd/subdomain1

and then the subdomain pages include the files by putting include('../include/nameoffile.php');

Is it possible obatin the same result, but without putting the subdomain webfolders inside the httpd folder of the main domain?

i would prefer to keep the standard directory structure, also to avoid that somebody will access the pages by getting maindomain.com/subdomain/nameofpage.php instead of subdomain1.domain.com/nameofpage.php
 
Back
Top