Replace PHP 5.4 with 5.6 in CentOS 7.x

How to replace php 5.4 with php 5.6. Before installing PHP 5.6, apply any existing updates available for your distribution: Also, this is a good moment to get (and save somewhere) a list of our installed packages (in case we need to rollback): Download and install the “repos” package: Now enable the repository in Yum … Read more

Stress Test CentOS with Stress

First, you need to download the file using Wget and then install it using RPM on your system to enable the EPEL repository. RHEL/CentOS 7 64 Bit ## RHEL/CentOS 6 64-Bit ## Check the installation Now, install stress To test, first run the uptime command and note down the load average. Next, run the stress … Read more

Set up Sendgrid on Plesk

This is used to set up Sendgrid in Plesk for Azure email functionality. Set up a sendgrid account and set up the first email:  Ssh to the Azure server and make the following modifications: Find your Postfix config file, typically /etc/postfix/main.cf, and add the following: smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options … Read more

Check CPU Type

Here is how to check the CPU type in CentOS: # dmidecode –type processor Output: # dmidecode 2.12 SMBIOS 2.7 present. Handle 0x0004, DMI type 4, 42 bytes Processor Information Socket Designation: CPU 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: D7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, … Read more

Check if a Package is Installed

One of the most common requests and inquirys is “Do I have the …xyz package or program installed?” Here is how to check. Ubuntu/Debian List all packages # dpkg -l | less # dpkg -s apache-perl To check whether a package is installed or not: dpkg -l | grep vlc Use file /var/lib/dpkg/available to find … Read more

Enable TLS version 1.2 on Plesk

Enabling TLS 1.2 and disabling other versions on Plesk. In order to use the steps outlined below, you will need to upgrade Plesk to it’s most recent version. You can do so within the System Overview section of the Home screen in Plesk Panel or by running # /usr/local/psa/admin/bin/autoinstaller Once you have completed the upgrade … Read more

Nginx fails to start when Centos/Plesk migrated to Azure

There is a small issue where a Plesk/CentOS 7 system is migrated to Azure and nginx fails to start. This is the error in the nginx log # cat /var/log/nginx/error.log 2018/06/14 22:11:41 [emerg] 9341#0: bind() to 10.144.114.11:443 failed (99: Cannot assign requested address) If so then to edit: # /etc/sysctl.conf And add: # net.ipv4.ip_nonlocal_bind = … Read more

Installation for Proxmox

Install 3 nodes. Each node specs: Since our host acts as a router we have to make sure it’s kernel has all IP packet forwarding features activated. Take a look at ‘/etc/sysctl.conf’ and make sure that the following two lines aren’t commented out: net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1 Lastly make sure your host won’t send ICPM “redirect” messages … Read more

Windows Admin Prompt Greyed Out or Missing

If the Admin prompt has a greyed out or missing Yes button but no password entry box, use the Built-In Admin account in Safe mode to create two new Admin accounts. https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/if-the-admin-prompt-has-a-greyed-out-or-missing/21053df9-39fb-4395-be3c-7f1797dc145b Mine was missing so I did this: Boot into Safe mode by following this procedure. There is also an illustrated and well-explained procedure … Read more

See IP’s Accessing Website

Here is a way to see what IP’s are accessing the website domain.com. Find the location of the access logs. In a cpanel account: # cd /home/domain.com/access-logs Now run the following on the access logs… # cat domain.com | awk '{print $1}' | sort | uniq -c | sort -rn | head Here is the … Read more