• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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