Set default php-version for command line Plesk
$ which php
/usr/bin/php
$ mv /usr/bin/php /usr/bin/php-backup
$ ln -s /opt/plesk/php/7.3/bin/php /usr/bin/php
$ php -v
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…
Retrieving the current Plesk administrator password depends on the operating system and Plesk version. For Windows servers: Connect to the server via Remote Desktop. Open Command Prompt: From the Start menu, select “Run…” and type cmd. Navigate to the Plesk bin directory: Code cd “C:\Program Files (x86)\Plesk\admin\bin” (Note: The path might vary slightly depending on…
The warning “Unable to determine the TCP port number used by Microsoft SQL server ‘.\MSSQLSERVER2016′” indicates that the SQL Server instance is either not configured to use TCP/IP, or it is configured to use dynamic TCP ports. To resolve this and enable automatic firewall configuration for remote access, the SQL Server instance needs to be…
How to adjust your spam settings via Plesk Introduction This is a quick step-by-step walkthrough for adjusting spam settings on a Reseller Hosting account, via the Plesk Onyx control panel. STEP 1 Login to your account Firstly you’ll need to log in into your Plesk Onyx control panel, which will be at a URL…
Performing a MySQL Database Dump From your SSH command prompt type … mysqldump -u {username} -p {password} {databasename} > {databasename.sql} Replace the parameters with the appropriate values {username} – this is your database username {password} – this is the password for your database {databasename} – the name of your database {databasename.sql} – the file to…
Importing a MySQLDUMP From your SSH command prompt type … mysqladmin -u {username} -p {password} create {databasename} mysql -u {username} -p {password} < {databasename.sql} Replace the parameters with the appropriate values {username} – this is your database username {password} – this is the password for your database {databasename} – the name of your database {databasename.sql}…