I am a newbie in Openlitespeed and while configuring OpenLiteSpeed to run my wordpress website, I checked the error.log and found out this error:
No request delivery notification has been received from LSAPI application, possible dead lock
and here it is the content of my stderr.log
/usr/local/lsws/lsphp73/bin/lsphp: error while loading shared libraries: libargon2.so.0: cannot open shared object file: No such file or directory
It means your OS/System need libargon2 package but not exist.
For Debian/Ubuntu, please run
apt-get update -y
apt-get install -y libargon2-0
For CentOS, please run
yum install epel-release
Best
Related
I am in the process of migrating a site to Amazon Lightsail (Bitnami LAMP) and one of the libraries used is wkhtmltopdf.
After installing wkhtmltopdf on the new server I am running into the following error:
error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
After using the strace tool I saw that the libXrender libraries were missing, so I installed them using following and then run an update:
sudo apt-get install libxrender1
sudo apt-get update
I have installed mongodb on a newly installed Ubuntu 18.04 server, and while I am able to work with mongo on the command line, I cannot seem to connect to it using PHP.
I've been following the process as per https://www.youtube.com/watch?v=RQcQ5tvb5E8&t=620s:
apt install mongodb-server
apt install php-pear # to get PECL
apt install php7.2-dev # to get phpize
pecl install mongodb
phpinfo() shows extension_dir=/usr/lib/php/20170718, and mongodb.so is indeed in that directory, with the same ownership and permissions as all other files. php -i | grep extension_dir shows extension_dir => /usr/lib/php/20170718 => /usr/lib/php/20170718
I then added extension=mongodb.so to /etc/php/7.2/apache2/php.ini, in the same location as the other extensions are listed. There is also a php.ini file under /etc/php/7.2/cli/, so I added the line there to. I then restarted the apache2 service.
I created a test file under /var/www/html/mongo.php
<?php
$m = new Mongo();
var_dump($m);exit;
When I browse to that page I get a 'This page isnt working; HTTP ERROR 500' message in Chrome. I have also tried Mongodb();, MongoClient();, MongodbClient();, mongo();, mongodb();, and mongodbclient();, but all to no avail.
Please make sure you have also installed the mongodb php driver. Please confirm the php version first.
On Ubuntu you can just do:
sudo apt-get install php-mongodb
or the same for specific PHP version:
sudo apt-get install php5.6-mongo
or
sudo apt-get install php7.0-mongodb
And then restart the service.
sudo systemctl reload nginx
You should to try some of these
https://docs.mongodb.com/ecosystem/drivers/php/
https://www.php.net/manual/en/mongodb.tutorial.library.php
they should work fine with php7 + composer
Actually with composer is pretty easy(something like this):
`$ composer require mongodb/mongodb
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing mongodb/mongodb (1.0.0)
Downloading: 100%
Writing lock file
Generating autoload files
Create a File: test.php (in the same location where you ran composer)
<?php
require 'vendor/autoload.php'; // include Composer's autoloader
$client = new MongoDB\Client("mongodb://localhost:27017");
$collection = $client->demo->beers;
$result = $collection->insertOne( [ 'name' => 'Hinterland', 'brewery' => 'BrewDog' ] );
echo "Inserted with Object ID '{$result->getInsertedId()}'";
?>
That should be enough
I am trying to run behat on my vendor folder. I have installed composer globally, have installed the behat package, but every time I run bin/behat I keep getting this message from composer
You must set up the project dependencies, run the following commands:
curl -s http://getcomposer.org/installer | php
php composer.phar install
I am not sure how to fix this. I see the files are in the vendor folder, and when I type "composer" on the terminal, I see the manual.
If anyone can help me resolve this I would really appreciate it. Thanks!
There are several possible problems leading to this situation:
Make sure that composer is installed in your $PATH. That is, running composer at a command prompt should work, and you shouldn't need to run an explicit path like ~/Downloads/composer.phar
Execute the composer install instruction as the error message suggests. A common error is the message
Mcrypt PHP extension required
in which case you need to install the specified extension. For example, brew install php56-mcrypt on a Mac or sudo apt-get install php5-mcrypt on Ubuntu.
I need to install php5 source debian package with zend thread safety enable (ZTS=1)
but in default this config is disable.
how can rebuild package with my configuration ?
Download and extract package sources with apt-get source php5
Edit debian/rules file and add --enable-roxen-zts or --enable-maintainer-zts to COMMON_CONFIG (confirm which one you need with ./configure --help).
sudo apt-get build-dep php5 to install build dependencies.
From directory where package source were extracted run dpkg-buildpackage -uc -b.
Optionally if you have devscripts package installed you may run debuild -uc -b instead of dpkg-buildpackage -uc -b.
Dont worry, it really takes a long time for the package build, and it also looks like it is in loop, but it will come to an end, eventually.
I tried to install zend framework 2 on Ubuntu 12.04.1 64 bit but have run into difficulties.
# sudo pyrus install zf2/Zend_Framework-beta#Standard
failed mid transaction with no other previous errors that I can recall other than warnings about timezone not being set. ( Unfortuantely my terminal history has lost the original output)
Pyrus\Installer\Exception: Installation failed
Pyrus\AtomicFileTransaction\MultiException: ERROR: commit failed
Pyrus\IOException: CRITICAL - unable to complete transaction, rename of actual to backup path failed
Pyrus\AtomicFileTransaction\RuntimeException: Cannot rollback - not in a transaction
Now when I try to rerun
# sudo pyrus install -f zf2/Zend_Framework-beta#Standard
it fails with
Pyrus\Registry\Exception: Cannot retrieve package file object for package packages.zendframework.com/zend_framework, it is not installed
Uninstall just tells me that it's not installed.
I restored /usr/share/.old-php to /usr/share/php however I still get the same error.
Please help.
You can just try to download and unzip Zend Framework 2 archive into your project's library folder.
It looks like it's a problem with the metapackage according the Matthew. I'm having the same problem.
Error Installing full framework with Pyrus
So if I installed pyrus here: "/usr/share/pear/pyrus" , then should I create a directory "/usr/share/pear/pyrus/zf2" and download and unzip the full Zend Framework in zf2 and it should work?
thanks