The Blog

PLESK

(Errcode: 24 – Too many open files) [23] – Plesk Onyx 17.5.3 and Ubuntu 16.04.2 LTS‬

Posted on

As of MySQL 5.7.7, this is what the documentation recommends for Red Hat Enterprise Linux 7, Oracle Linux 7, CentOS 7, SUSE Linux Enterprise Server 12, Fedora 24 and 25:

https://dev.mysql.com/doc/refman/5.7/en/using-systemd.html

On Ubuntu 16.04 the service is called mysql, not mysqld, so this is what I did:

sudo mkdir /etc/systemd/system/mysql.service.d
sudo vi /etc/systemd/system/mysql.service.d/override.conf
Added this in the new file override.conf:

[Service]
LimitNOFILE=1024 4096

Then restarted the service:

sudo systemctl daemon-reload
sudo systemctl restart mysql

and test it with

cat /proc/$(pgrep mysql)/limits | grep files

Posted in Linux, PLESK 2 Comments

Adding dbase.so to php7.x in PLESK

Posted on

First install DEV for the PHP you are using. In my case that would be PLESK PHP 7.1

apt-get install make gcc plesk-php71-dev

Next use PECL to install dbase extension.

/opt/plesk/php/7.1/bin/pecl install dbase-7.0.0beta1

If all goes good, you should see this:

Build process completed successfully
Installing '/opt/plesk/php/7.1/lib/php/modules/dbase.so'
install ok: channel://pecl.php.net/dbase-7.0.0beta1
configuration option "php_ini" is not set to php.ini location
You should add "extension=dbase.so" to php.ini

Last step is to register the extension:


echo "extension=dbase.so" > /opt/plesk/php/7.1/etc/php.d/dbase.ini

plesk bin php_handler --reread

Posted in PHP, PLESK 2 Comments
Next Page »