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.

 

Removing AWstat Password in Plesk

Removing AWstat Password in Plesk

For those who want to see website statistics, it may be familiar with AWStats, an open source Web analytics reporting application, suitable for analyzing data from Internet services such as the web, streaming media, mail, and FTP servers.

Here’s how to see AWStats in Plesk.

  1. Login to the Plesk account and select Statistics.
  2. There are 3 choices for viewing traffic, namely FTP, Data and Web. For FTP, I ignore this.

  1. Data Transfer Statistics are used to view monthly reports. Click Data Transfer Statistics and select View on the domain whose statistics you want to see.

  1. Select Statistics again, then Web Statistics SSL / TLS and select View on the domain whose statistics you want to see.

  1. If the display appears as follows and you do not know the login, you will not be able to see the report.

  1. To deactivate the login, click Websites & Domains and select Hosting Settings.

  1. Uncheck the Web Statistics (Protect access to your web statistics with your FTP username and password) then click OK. This method also applies if you choose Webalizer.

  1. Return to step 4 then try again, it should have appeared without having to log in first.

  1. I suggest still to give a password, because anyone will be able to see the page if you know the link. To provide a password, click Websites & Domains and select FTP Access.

  1. Select the user you want to add or change the password for, then click OK. Please try again and the login window should appear like step 5.

Good luck, thank you.

 

Solution The link you followed has expired in Plesk

Solution The link you followed has expired in Plesk

If you find an error like the picture above, hopefully this article will be one of the solutions and the solution is similar to this article.

Here are the steps:

  1. Login to Plesk, click Domain and click on the domain that is having problems, then click PHP Settings.
  2. Change post_max_size and upload_max_filesize to the desired size and click OK.

Before

After

  1. Try uploading the file again in WordPress.

Note: if the upload_max_filesize size is bigger than post_max_size, then WordPress will still follow the post_max_size size, in this case I changed both to 16MB.

You can see the upload file size limit by visiting the Media – Add New page, here are the before and after results.

Before

After

Please try and good luck, thank you.

 

Masking Domain in Plesk

Masking Domain in Plesk

I have 2 domains, say domain A already has a website and domain B is just a domain. I want when typing domain B in the browser, it will lead to domain A but the address bar in the browser still says domain B.

Oh yes, please pay attention to the paragraph above, because it is almost similar to domain forwarding, but what I will do here is masking the domain. The different is :

Domain forwarding : URL and display according to the redirected domain.

Domain masking : Fixed URL, the display will change according to the redirected domain.

I’ve used cPanel before, but it seems that the method is more difficult compared to the Plesk I’m currently using, but cPanel has the advantage that it doesn’t delete content from the domain you want to redirect to, in Plesk the entire domain content will be deleted.

Here’s the configuration in Plesk :

  1. Login to Plesk then click Domains – the domain name you want to redirect to – Hosting Settings.

  1. In Hosting type, click Change and select Forwarding and in Forwarding type select Frame forwarding then click OK.

  1. Plesk will give a warning about the forwarding, click Yes.

  1. Please try typing domain B in the address bar and make sure the contents of website A appear.

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.