How to change default PHP version in plesk

How to change default PHP version in Plesk

In this article, we will see how we can change the default PHP version in plesk. The latest plesk versions come with all the php versions installed (we have the option to install all the php versions). So, there is no need to install a separate PHP in the server for setting the default PHP … Read more

MagicSpam Extension Installation fails in Plesk 17

Recently we faced the below error while trying to install MagicSpam free version via plesk interface and got installed via command line using the rpm from the plesk download section. Since the plesk download section had too old version and plesk was showing an upgrade option and free version was not working (which I installed from rpm available at plesk )

Error while trying to install / upgrade from plesk interface is the below 
Failed
 Installation of extension has failed
 
 Execution of /usr/local/psa/tmp/modulehfmXQh/plib/scripts/pre-install.php failed with exit code 1 and the output:
 Failed to find operating system package manager rpm or dpkg.
 Contact [email protected] with full details of your installation for assistance.

Normal rpm installation and yum install was working fine.

Read more

Getting nginx disabled message while trying to start nginx service in plesk.

Sometimes we get the following error message, even if nginx is enabled in plesk. [root@server ~]# /etc/init.d/nginx start Not starting nginx as it is disabled in config You can confirm the nginx service is enabled in the server using the following commands. [root@server ~]# /usr/local/psa/admin/sbin/nginxmng -s Enabled [root@server ~]# chkconfig –list | grep nginx nginx … Read more

[ERROR] /usr/sbin/mysqld: Can’t open file

 

I got this error while migrating  huge amount of accounts from one cpanel server to  another.

[ERROR] /usr/sbin/mysqld: Can’t open file: ‘./dbname/tablename.frm’ (errno: 24)

errno: 24 means there is too many open files.  There is a mysql variable named “open_files_limit"  which shows how many open files are allowed in mysql by default. We cannot update this valuse using “Set”  command as this variable is a read only variable.

Read more

How to change the Notifications Email’s Subject in Plesk.

Last day one of client asked me about this and on checking I can see the pre defined notification email has edit option for the body but not for the Subject.

To get this done, we may need to access the plesk database and change the Subject of the desired notification from “psa.notification” table

Before you start working on this, always take a mysqldump for “psa” so that if any thing goes wrong, you can simply restore from the backup.

Read more

How to check a website in a remote server before DNS change

In all migrations, we may wish to check the domain’s functionality and fix any errors preset  to make the dns change smoother and perfect. So just thought to add this in our blog too 🙂

Some control panel offer site preview, especially Plesk using which we can take a look on domain  hosted in that domain. But in others like cPanel, Directadmin and those without any control panels, we may need to check this using  local hosts file or by changing the A record on a temporary basis.

Best method is to check websites using your local “hosts” file in your PC / Laptop. Below is the steps using which one can test a website hosted in a remote server without changing the name server.

For Windows

1.  Locate the hosts file in your computer. Typically it is in one of the following locations:

Windows NT/2000/XP/2003/Vista/7   —     C:\windows\system32\drivers\etc\hosts
Windows 95/98/Me                                         —     C:\windows\hosts

Read more

Mail bouncing from Microsoft’s Exchange email service in Plesk

Mails from microsoft exchange email services are failed in plesk (qmail). Upon investigation we found that the grey list filter in plesk 10 is blocking server that are on “dsl|pool|broadband|hsd” address ranges. In this case it would be Microsofts cloud anti-spam service that is on “pool” addresses.

Some Microsofts cloud anti-spam servers are;

co9outboundpool.messaging.microsoft.com
db8outboundpool.messaging.microsoft.com
db9outboundpool.messaging.microsoft.com
am1outboundpool.messaging.microsoft.com

Log entries are like this

Read more