easyapache4 php7.3: Fatal error: Uncaught Error: Class ‘mysqli’ not found in db_connect.php. Already enabled php73-php-mysqlnd

I am getting the below error after upgrading my php from 5 to 7.3. Fatal error: Uncaught Error: Class ‘mysqli’ not found in db_connect.php I have already enabled php73-php-mysqlnd via WHM EA4. From backend I can see the mysqli is loaded fine. # php -v PHP 7.3.13 (cli) (built: Dec 19 2019 20:13:29) ( NTS…

Details

How to fix the WC filter in the admin panel after adding the custom stock_status?

WooCommerce Version: 3.8.1 Through the filter function, added a custom field to stock_status: add_filter( ‘woocommerce_product_stock_status_options’, ‘ec_add_custom_product_stock_status_option’ ); function ec_add_custom_product_stock_status_option ($arr) { $arr[‘fororder’] = __( ‘Доступно для заказа’, ‘woocommerce’ ); return $arr; } Everything works well, except for the “stock_status” filter in the admin panel on the “All Products” page. It shows “No Products Found” even…

Details

Shrink ZFS Partition and Increase Swap Partition Size

How can I increase swap partition size? I would like to shrink the size of partition #5(/dev/nvme0n1p5 which is a ZFS partition) by 6Gb and add it to partition #3(/dev/nvme0n1p3). I’m running Xubuntu 19.10 with ZFS as root. Notes: Since none of the GUI Partition managers(GParted/Gnome Disks/KDE Partition Manager) currently support changing/moving ZFS partitions, I…

Details

Passing environment variables to httpd in centos 7

In my previous Centos 6.10 server , I have been able to pass some environment variables to httpd by adding to /etc/sysconfig/httpd . ~/.envvars .envvars content is export MY_PASSWORD=’somepassword’ and then in http.conf SetEnv MY_PASSWORD ${MY_PASSWORD} and easily accessing the variable in php trough $_SERVER[‘MY_PASSWORD’] but after upgrading to Centos 7.7 this stopped working, in…

Details