Coltrane70
New Pleskian
Dear Community,
I'd appreciate some help with the following problem:
I've got two vhosts installed on my Plesk (Plesk Obsidian 18.0.35 Update #1). Both run a moodle instance with exactly the same PHP settings.
In order to run unoconv for moodle I installed it as root following this description: Init script example for unoconv on debian
I then adjusted the open_basedir setting in the PHP settings for both vhosts, so that the cron job can find the command, as follows:
vhost / website1: {WEBSPACEROOT}{/}{:}{TMP}{/}{:}/usr/bin/unoconv{:}/usr/bin/gs
vhost / website2: {WEBSPACEROOT}{/}{:}{TMP}{/}{:}/usr/bin/unoconv{:}/usr/bin/gs
With vhost / website 2 the cron job works fine. With website 1 I get the error message:
My idea ist that the variable {webspaceroot} does not work for website1. The reason for this might be that I installed that website after website2.
In the php setting for website 1 I get the following information at the top:
In the php setting for website 2 I get the following information at the top:
So the only reason I can see why the cron job is working for website2 and not for website1 is that the webspaceroot variable isn't set correctly for website1.
Could you tell me how to check the value of that variable and how to change it?
Any help is appreciated!
I'd appreciate some help with the following problem:
I've got two vhosts installed on my Plesk (Plesk Obsidian 18.0.35 Update #1). Both run a moodle instance with exactly the same PHP settings.
In order to run unoconv for moodle I installed it as root following this description: Init script example for unoconv on debian
I then adjusted the open_basedir setting in the PHP settings for both vhosts, so that the cron job can find the command, as follows:
vhost / website1: {WEBSPACEROOT}{/}{:}{TMP}{/}{:}/usr/bin/unoconv{:}/usr/bin/gs
vhost / website2: {WEBSPACEROOT}{/}{:}{TMP}{/}{:}/usr/bin/unoconv{:}/usr/bin/gs
With vhost / website 2 the cron job works fine. With website 1 I get the error message:
/usr/sbin/service: No such file or directory
My idea ist that the variable {webspaceroot} does not work for website1. The reason for this might be that I installed that website after website2.
In the php setting for website 1 I get the following information at the top:
You can use the following placeholders in parameter values:
{DOCROOT} for the document root directory of the website. The current value is /var/www/vhosts/website1.de/httpdocs. The HTTPS document root directory is the same as for http.
{WEBSPACEROOT} for the document root directory of the subscription's primary website.
{TMP} for the directory which stores temporary files.
In the php setting for website 2 I get the following information at the top:
You can use the following placeholders in parameter values:
{DOCROOT} for the document root directory of the website. The current value is /var/www/vhosts/website2.de/httpdocs. The HTTPS document root directory is the same as for http.
{WEBSPACEROOT} for the document root directory of the subscription's primary website.
{TMP} for the directory which stores temporary files.
So the only reason I can see why the cron job is working for website2 and not for website1 is that the webspaceroot variable isn't set correctly for website1.
Could you tell me how to check the value of that variable and how to change it?
Any help is appreciated!