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