PKP PLN Plugin ask for Archive_Tar PHP extension

Now I added a line in htaccess and which allow me to see the error in
check_pear.pho as

http://aro.koyauniversity.org/check_pear.php

Warning: require_once(): open_basedir restriction in effect.
File(/usr/share/php/System.php)
is not within the allowed path(s): (/var/www/vhosts/
koyauniversity.org/:/tmp/) in /var/www/vhosts/
koyauniversity.org/httpdocs/aro/check_pear.php on line 2 Warning:
require_once(/usr/share/php/System.php): failed to open stream: Operation
not permitted in /var/www/vhosts/
koyauniversity.org/httpdocs/aro/check_pear.php on line 2 Fatal error:
require_once(): Failed opening required ‘System.php’
(include_path=’.:/usr/share/php’) in /var/www/vhosts/
koyauniversity.org/httpdocs/aro/check_pear.php on line 2

There is an answer here , see answer #9

and my php setting reads this
open_basedir /var/www/vhosts/koyauniversity.org/:/tmp/

Shall set it to NONE? Would it effect other stuff?

This Database connection failed! is enoying for our production site

You can read more about open_basedir() here:
http://php.net/manual/en/ini.core.php#ini.open-basedir

I’m surprised the include_path is not automatically included.

Your options seem to be to remove the open_basedir restriction, or to add the include_path to the open_basedir restriction. It is a tradeoff of simplicity or security.

Try restarting your database server (probably mysql?) to see if that resolves the “Database connection failed!” message. If it does not, open that question in a new posting so as to keep things organized in the forum.

I have put open_basedir = none is couple ini, but the php check still reads /var/www/vhosts/koyauniversity.org/:/tmp/ I do not know where this value come from, I think all rebooting of server has damaged our server as well.

Why would a plug in require TAR and not ZIP, I think OJS requires higher ends IT people to make use of it, and basic user like us will always have problem.

We have just been listed by Thomson Reuters and we are trying to fill the indexing requirement, but we got into these issues and spend ages to solve them with no success,

The issue is solve now, It was a security setting in Plesk which stopped the process, The plugin is now enabled,

Open basedir setting should be like this.

{WEBSPACEROOT}{/}{:}{TMP}{/}:/usr/share/php/:/var/lib/php5

Thank you for your help

1 Like

I would like to refresh this. Please note, this is specific to Plesk:
Make sure open_basedir contains:

  • files_dir as given in config.inc.php
  • folder of OJS installation (e.g. httpsdocs)
  • PATH to actually working PEAR version, e.g. /opt/plesk/php/7.4/share/pear

Make sure include_dir contains:

  • PATH to actually working PEAR version, e.g. /opt/plesk/php/7.4/share/pear
  • set this PATH as the first in the list (!)

Check to set the current version of PHP (in this example php7.4) in .bash_profile

alias php='/opt/php74/bin/php'
export PATH=/opt/php74/bin:$PATH