How to run a PHP script using a custom PHP executable in Plesk Scheduled Tasks?

https://support.plesk.com/hc/en-us/articles/12377377419287-How-to-run-a-PHP-script-using-a-custom-PHP-executable-in-Plesk-Scheduled-Tasks- Log into Plesk. Go to Tools & Settings > Scheduled Task > Add Task; At Script Path, specify the full path to the PHP script on the server. If arguments are needed, specify that accordingly in the with arguments field; At Run field, specify the desired frequency the task should be run; Choose the Run a PHP…

How to reset ColdFusion Administrator Password

ColdFusion: here’s how to reset the administrator password. To update a lost ColdFusion password, follow the steps below. Remote Desktop into the server. Navigate to the ColdFusion folder I.E: C:\ColdFusion10\cfusion\bin and run passwordreset.bat. Enter 1 for the option to change the administrative password for ColdFusion. Enter in the new, secure password.  Re-enter the password once more to confirm the change. You…

Install Linux Centos 7, Nginx, MySQL, Postgres, PHP 8.0

Update LANG Edit environtment vi /etc/environment add these lines… LANG=en_US.utf-8 LC_ALL=en_US.utf-8 Update and upgrade Core yum -y update yum -y upgrade Install NGINX yum install epel-release yum install nginx Start NGINX and Enable Service systemctl start nginx systemctl enable nginx Install PHP 8.0 Enable Remi Repo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm Check yum –disablerepo=”*” –enablerepo=”remi-safe” list php[7-9][0-9].x86_64…

Display the default discounted price and percentage on Woocommerce products

woocommerce version 3 as Product object properties ca’t be accessed directly. Instead you should use available WC_Product methods. To format the prices you will use wc_price() dedicated formatting function. Now you can have (3 possibilities): 1) The saving price: add_filter( ‘woocommerce_get_price_html’, ‘change_displayed_sale_price_html’, 10, 2 ); function change_displayed_sale_price_html( $price, $product ) { // Only on sale…

How to disable or customize cPanel’s Update Preferences from the Command Line

The default update settings for a cPanel installation are usually controlled from the WHM interface: WHM > Server Configuration > Update Preferences However, there are situations where a greater level of control might be required. In such cases, it is usually easier to modify the update settings right from the command line. The file that…