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

Resolved Pear im Plesk Panel [DE]

Moray

New Pleskian
Ich versuche Pear unter Plest zu Installieren nach vielerlei Anleitungen im Netz!
Leider funktioniert nichts davon bei mir!
Kann mir vielleicht hier jemand helfen!

Warum unterstützt Plesk so vieles aber Pear eben nicht?

Ich habe es z.b. per SSH versucht
sudo apt-get install php-pear
]--->Reading package lists... Done
Building dependency tree
Reading state information... Done
php-pear is already the newest version.
The following package was automatically installed and is no longer required:
pure-ftpd-common
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
N: Ignoring file 'plesk.list.ai_back' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'plesk.list.ai_back' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

Also, die Version ist drauf aber wo? Und wie stelle ich es ein das es auch erkannt wird?
In der php.ini steht
include_path=".:/usr/share/php/PEAR"

Mit freundlichem Gruß und danke
 
Hi Moray,

pls. be informed, that this community is a "english" - only community ( owed to the general, worldwide understanding ). Pls. translate your issue/error/problem into english ( even a Google translation will mostly be understood ).
 
Hi Moray,

with the example "locate" - command ( requires "mlocate" to be installed on your server - consider to use the forum - search, if you need more informations to installation and usage of "mlocate" )

Code:
locate /usr/share/php/PEAR
... you are able to verify, if the standart setting meets the installation path on your server.​

In addition, Plesk provides a nice article about to to enable PEAR support:



I'm not sure, if you know, that each PHP - version has it's very own "php.ini". Depending to your server and its installed (Plesk) components and packages, the "php.ini" - locations vary. There are as well possible (sub)domain - specific php.ini 's, when you use Plesk. Again, you might be interested in the example command:

Code:
locate php.ini
... to display all existing php.ini 's on your server.​


With Plesk Onyx, you have the choice to add additional "include_path" 's or/and "open_basedir" 's to your (sub)domain php.ini 's. Pls. visit as well "HOME > Domains > (sub)domain > PHP Settings"


It might help very much, if you try to provide more informations about

Your operating system
Your current Plesk version ( incl. #MU )
Your desired ( final ) goal
 
Please translate my problem description in Google translator.
Thank you very much
-------------------------------------------------------------
Your operating system
OS: Debian 8 (64) / Debian 8.7

Your current Plesk version ( incl. #MU )
Plesk Onyx 17.0.17

Your desired ( final ) goal
ogp.example.com/install.php?
before
Pear Not Found
after that
Pear Found

Plesk Panel
PHP-Version: 5.6.30 by OS vendor
Run PHP as: FPM apache
 
[1]First try - https://support.plesk.com/hc/en-us/articles/213926565

include_path:
before
.:/usr/share/php:/usr/share/pear
after that
.:/usr/share/pear:/usr/share/php

open_basedir:
before
{WEBSPACEROOT}{/}{:}{TMP}{/}
after that
/var/www/vhosts/ogp.example.com/:/tmp/:/usr/share/php/:/usr/share/pear:/var/lib/php5

Additional configuration directives:
include_path = ".:/usr/share/php"
open_basedir = "/var/www/vhosts/ogp.example.com/:/tmp/:/usr/share/php/:/var/lib/php5"

result:
[-No change-]
 
[2]error - No input file specified

in - /var/www/vhosts/system/ogp.example.com/etc/php.ini
before
open_basedir = "/var/www/vhosts/ogp.example.com/:/tmp/:/usr/share/php/:/var/lib/php5"
after that
;open_basedir = "/var/www/vhosts/ogp.example.com/:/tmp/:/usr/share/php/:/var/lib/php5"

result:
[-No change-]
 
[3]An error that now occurs

Unable to generate the web server configuration file on the host <example.com> because of the following errors:

Template_Exception: AH00526: Syntax error on line 6 of /var/www/vhosts/system/example.com/conf/siteapp.d/main.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0

Please resolve the errors in web server configuration templates and generate the file again.
 
- SSH -
locate /usr/share/php/PEAR:
-> locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
- Folder exists
- Files and folders are available

pear config-get php_dir
-> /usr/share/php
 
php.ini
in /var/www/vhosts/system/ogp.example.com/etc

before (original)
[-PHP-]
soap.wsdl_cache_limit = 5
cli_server.color = On
mysql.allow_persistent = On
mysqli.max_persistent = -1
mysql.connect_timeout = 60
session.use_only_cookies = 1
register_argc_argv = Off
mssql.min_error_severity = 10
open_basedir = "/var/www/vhosts/example.com/:/tmp/"

after that
[-PHP-]
soap.wsdl_cache_limit = 5
include_path = ".:/usr/share/php"
cli_server.color = On
mysql.allow_persistent = On
mysqli.max_persistent = -1
mysql.connect_timeout = 60
session.use_only_cookies = 1
register_argc_argv = Off
mssql.min_error_severity = 10
open_basedir = "/var/www/vhosts/ogp.example.com/:/tmp/:/usr/share/php/:/var/lib/php5"

result:
No input file specified.[/PHP]
 
Hi Moray,

let's start with the "locate" issue:
locate /usr/share/php/PEAR:
-> locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
followed by your statement:
- Folder exists
- Files and folders are available
You missed to "update" your mlocate - database, with the command "updatedb". Without the initial creation, the "mlocate" - database is not working and without regular updates ( I normally schedule an hourly crontab with the "updatedb" - command ), the locate - command should be replaced with a "find", or "grep" - command, for example, but due to the fact "find" and "grep" need more option string, in order to search and find on the whole, I personally prefer "locate". :)


Second,
php.ini
in /var/www/vhosts/system/ogp.example.com/etc
... your additional PHP.ini ( which is from your location "/var/www/vhosts/system/ogp.example.com/etc", should be declared as an "AddON" only, to your initial PHP.ini, which you decided to use as PHP-Handler for your subdomain "ogp.example.com":
PHP-Version: 5.6.30 by OS vendor
Run PHP as: FPM apache
... so you should be aware, that the PHP.ini from "/etc/php5/fpm/php.ini" is the initial PHP.ini, while possible modification are set in your AddON. ( this is just an information for you... nothing more... ^^ ).
It looks well configured now. :) You still experience the issue, as stated:

result:
No input file specified.
... I get back to this later. ;)


Please resolve the errors in web server configuration templates and generate the file again.
You are always able to control your apache2 - webserver - configuration files with the command:

apachectl -t

If this commands doesn't result in "Syntax OK", you have misconfiguration, which have to be resolved, before Plesk is able to regenerate new configuration files, based on your modifications.​

Template_Exception: AH00526: Syntax error on line 6 of /var/www/vhosts/system/example.com/conf/siteapp.d/main.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
... points you directly your issue here: => Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
The issue could happen, if you didn't install "php5", "php5-common", or/and "libapache2-mod-php5" correctly. Pls. re-install these packages and control your apache2 - webserver afterwards with the provided command "apachectl -t".
If all goes well, pls. continue with the previous Plesk - webserver - configuration - process, with the command:

plesk repair web -y -v
or
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all


Please translate my problem description in Google translator.
Thank you very much
Well, ... sorry... , Moray, but if you don't follow the "Plesk Community rules" on your own, I can't help you here. Your thread might get closed by a Plesk-Team-Member, so pls. consider to translate your initial post. ;)
 
Back
Top