PHP Startup: Unable to load dynamic library
-
… yes, Plesk install his own PHP-Version. I tried to install the mapi.so under this version, but it failed. All my server have a installed Plesk and i read about people they have installed kopano/zarafa under plesk. Maybe i have to recompile the sourcecode. I don’t know … i think there are many admins they wan’t to install a “cool” webapp like kopana under plesk, because horde under plesk is … without words …
-
@omoc said in PHP Startup: Unable to load dynamic library:
Plesk install his own PHP-Version
Ok, then this is the source of your error. If you want to run Kopano with a different PHP version you have to compile php-mapi indeed yourself.
-
… but the kopano.ini not listed in the plesk php-configuration. it seems that kopano use his own php because i get no “no mapi.so found” - error, but a “mapi.so found, but not correct” ;) to use the mapi.so in the plesk php i have to installed this into a different location. so, my opionion, everything looks fine, but the mapi.so is broken
-
… this is the error-message when i rename the /usr/lib/php/20151012/mapi.so into _mapi.so:
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20151012/mapi.so’ - /usr/lib/php/20151012/mapi.so: cannot open shared object file: No such file or directory in Unknown on line 0
that the evidence that kopano use his own php-version ;)
-
Yes and no. We have to compile our php extension against a specified abi. For this we always choose the default php version for the given distribution. So as long as you use the default php of your os you are fine. If you want to use a different php version you have to compile php-mapi yourself.
I’d still recommend to setup kopano on a system without Plesk, though.
-
… okay, that isn’t practible, because for easy systemadminstration many server have a installed tool like plesk. there have to be a workaround. if i compile the mapi.so with using the plesk-php, i have to configurate kopano to use the plesk-php also. maybe found one who installed kopano under plesk. i will give you a feedback.
thx!
-
@omoc
Which Plesk-PHP-version did you enable for Webapp?
Plesk/Odin allows you to install arbitrary PHP-handlers in parallel: You can choose from Plesk-provided ones, the system-default PHP-handler or custom-installations/ PHP source-builds etc.It’s definitely unnecessary to recompile php-mapi in order to run Webapp on a plesk/onyx administrated website.
Here you go:
How to install additional PHP-versions provided by Plesk
Adding custom PHP-handlers++umgfoin.
-
… thank you very mutch! I think i have found the problem:
All my domains running under plesk php “7.0.30”, installed under /opt/plesk/php/7.0. BUT this is unnecessary. because this is not the version that kopano use under mydomain.tld/webapp! Kopano use the version “7.0.30-0ubuntu0.16.04.1” installed under /usr/lib… (a phpinfo() in config.php give me the info about the version, but not about the install-path). The problem is - the default version on command-line is 7.1.17 (php-i). So the mapi.so seems to be compiled under 7.1 and NOT 7.0.
So, the only what i have to do is to use the php 7.1 handler in the apache-conf for /webapp. i hope i will find this …
-
… hihihi … cool. That was the problem :) I desintalled every packages and changed the default PHP-Version with
sudo update-alternatives --config php
to PHP 7.0 and installed everything once again.
Kind regards,
Andreasbtw. i don’t know if kopano runs, but i see the login …
-
… after adding a MySql-User different from root-user kopano runs :) The thread can be closed …
Many THX,
Andreas