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

Question set handler for .php in symlinked directory

christian

Basic Pleskian
in my centos7 plesk server onyx 17.5.3 i was created 2 differrents users/domains and subscritions.
42discount.net
and 42discount.org
for test and learn.
my goal is to allow differents domains to use same php files by subdirectory acces like /licence438/.

the two domains are filled with plesk default files, except one thing.

in /var/www/vhosts/42discount.org/licence438 i created two file,
a basic index.html,
a basic indexinfo.php who just contain <?php phpinfo(); ?>
i can acces this two files from
42discount.org/licence438/index.html
42discount.org/licence438/indexinfo.php

i created a symlink in /var/www/vhosts/42discount.net/httpdocs like this
Code:
ln -s /var/www/vhosts/42discount.org/httpdocs/licences438 licence438
to allow acces to 42discount.org/httpdocs/licences438 files from 42discount.net/licence438.
in command line this symlink work perfectly.

i was added additionnal directives for apache in 42discount.net like this
Code:
<Directory "/var/www/vhosts/42discount.net/httpdocs">
    Options +ExecCGI +FollowSymLinks -SymLinksIfOwnerMatch
    AllowOverride All
</Directory>
this additionnal directive allow to acces html files from 42discount.net/licence438/index.html ,
BUT the problem is here,
trying to acces the .php file by 42discount.net/licence438/indexinfo.php return error.

if i set in php setting, "FPM applications served by apache" in 42discount.net, i get "File not found."
if i set in php setting, "FasCGI served by apache" in 42 discount.net , i get "No input file specified."

the "no input file specified" show that apache don't know handler to use with .php file.
but this part of apache is unknow for me.

this server is a test and forget server to learn.
at this time, links are real and functionnal,

anyone can help me??
 
Back
Top