Disable PHP Mail in Plesk

Disable PHP Mail in Plesk

Several times I get emails from my own domain which is actually not registered, it can also be called a spoof email. Finally I found a solution for this problem, namely by disabling the mail function in the PHP configuration.

Here’s the guide :

Login to Plesk, click Subscriptions – domain name – PHP Settings and scroll down to the Additional configuration directives field, fill it with disable_functions = mail, then click OK.

I also disabled the Sendmail function (applicable in its entirety) :

Login to Plesk, click Tools & Settings – Mail Server Settings – Disable the Allow user and scripts to use Sendmail option and then click OK.

Or if you only want the type of service (Service Plans):

Login to Plesk, click Service Plans – service type name – Mail – Disable the Allow using Sendmail for scripts and users on this subscription option and then click Update & Sync.

Or if you only want the subscription type (Subscription):

Login to Plesk, click Service Plans – Subscriptions – select a domain name – Outgoing Mail Control – Subscription – Change Limit – Disable the Allow using Sendmail for scripts and users on this subscription option and then click OK.

After a few days the email did not appear again. Thank you.

 

PHP and SQL Update in Plesk

PHP and SQL Update in Plesk

On my dashboard, there are 2 statuses on Site Health that need special attention, namely updating PHP and SQL server. Site Health Status shows important information about WordPress configuration and items that require attention.

Here’s how to update the PHP version in Plesk :

  1. Login to Plesk, click Tools & Settings – PHP Settings to view the current version.

  1. Still on the same page, click Plesk Installer, it will be redirected to the Install or Update Plesk page as follows. Click PHP 7.4 and select Install then click Continue.

 

 

  1. Wait until the installation process is complete then click OK.

  1. Return to the Tools & Settings – PHP Settings page, then the latest PHP should appear.

  1. Click Domains and select the domain name you want to update the PHP to. Click PHP Settings.

  1. Select the latest PHP then click OK and make sure it is successful.

  1. Return to the WordPress Dashboard, then refresh (press F5 on keyboard) and make sure the PHP update info is gone.

There is only 1 left, namely the SQL server update. Before following these steps, make sure the Plesk version installed is Obsidian 18.0.30 or later.

  1. Login to Plesk, click Tools & Settings – Database Servers to view the database version.

  1. Login ssh then type (without the quotes) “wget https://plesk.zendesk.com/hc/article_attachments/360022419980/mariadb-10.5-upgrade.sh && chmod +x mariadb-10.5-upgrade.sh” wait for it to finish then type “./mariadb-10.5-upgrade.sh” and wait for the installation process to complete.

  1. Return to the Database Servers page and make sure the latest version has been updated.

  1. Return to the Dashboard again and make sure it doesn’t appear for SQL server update info.

  1. To update other versions of SQL, see here.

Good luck and thank you.

 

Solution The uploaded file exceeds the upload_max_filesize directive in php.ini. in Plesk

Solution The uploaded file exceeds the upload_max_filesize directive in php.ini. in Plesk

If you encounter an error like the image above, hopefully this article will be a solution.

Cause: the uploaded file size exceeds the predetermined configuration.

Solution: change the upload file size.

Here are the steps :

  1. Login to Plesk Panel.
  2. Select Domain and click on the domain that is experiencing problems, then click PHP Settings.

  1. At upload_max_filesize, change the upload size from the default 2M to the desired upload size, then click OK.

Please try and good luck, thank you.