Install Mod_pagespeed on EasyApache4

$> yum install rpm-build cpio ea-apache24-mod_version
$> wget
$> rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
$> rpm -ivh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed*.rpm
$> /etc/init.d/httpd restart

Note: if you get following error on Step 3 :
“RPM build errors:
File must begin with “/”: %{_httpd_moddir}/*.so
File must begin with “/”: %{_httpd_modconfdir}/*.conf”

Just create a file named “macros.apache2” in ‘/etc/rpm/ directory and paste the below content into that and then restart from step 3.

%_httpd_mmn 20120211×8664
%_httpd_apxs /usr/bin/apxs
%_httpd_dir /etc/apache2
%_httpd_bindir %{_httpd_dir}/bin
%_httpd_modconfdir %{_httpd_dir}/conf.modules.d
%_httpd_confdir %{_httpd_dir}/conf.d
%_httpd_contentdir /usr/share/apache2
%_httpd_moddir /usr/lib64/apache2/modules

Cannot see disk space on KVM virtualizor while installing windows OS

This was a new issue which we came across while creating a Wimdows OS on KVM platform on Virtualizor

After several tries of creatng a VPS, We were able to make headway on this.

  1. Login to Virtualizor Panel
  2. Virtual Servers >> Create VPS
  3. After adding hostname bandwidth and disk space details,

Scroll to bottom to find option Advanced Options

Here you will find option Enable virtio which is already check marked

Uncheck the Enable virtio option and save

You should be able to see disk space now while creating Windows VPS

Also in network settings select Virtual Network Interface Type select Realteck

This will make network start after the VPS in installed

access denied due to user being blocked for overquota in cpanel

if you get the below error 

Access Denied

Unable to establish a PHP session.

The account must be able to write to the php session directory and must not exceed the assigned disk quota.

If you believe that this is in error or inadvertent, contact your system administrator and ask them to review your server settings.
Please check using following step 

2. Check the permission and ownership of /home/$user/tmp folder. Set ownership as $user.

# chown $user:$user /home/$user/tmp

3. Set permission of the tmp folder to 755.

#chmod -R 755 /home/$user/tmp

4. Test now to see if  PHPMyAdmin  is working fine now…if the answer is no, go to next step….

5.Check to see if there is a file like /var/cpanel/overquota/blocks_$user and removed it.

6. rm /var/cpanel/overquota/blocks_$user

Fix cPanel Error -The Email Account Already Exists

  1. Login to your Linux machine via SSH as root user.
  2. Navigate to the following path, locate and remove email account folder in question. /home/domainco/mail/
  3. Similarly, navigate to the following path, open passwd file with editor of your choice. Remove email account entry from that file and save it. /home/domainco/etc/
  4. Remove the email id from this file

error: Failed to create domain from /etc/libvirt/qemu/

We had a issue in one of the virtualizor node

Where the server on rebooting the KVM VM were not starting

With error message being

error: Failed to create domain from /etc/libvirt/qemu/
error: Cannot get interface MTU on ‘viifbr0’: No such device

ON checking around found the issue with virtnetwork

Below command fixed the issue

service virtnetwork start

~]# service virtnetwork start
Bringing up viifbr0 – OK
Waiting for 10 seconds…1…2…3…4…5…6…7…8…9…10
Internet connectivity check successful viifbr0 – OK

Open port in Centos 7

Below are the commands which are to be used in centos 7 to open port 80

[root@onlinesupport ~]# firewall-cmd --permanent --zone=public --add-port=80/tcp success

[root@onlinesupport]# firewall-cmd --reload

Mysql Upgrade Process

While upgrading mysql in server make sure you make a backup of existing mysql

using commmand mysqldump --all-databases > all_databases.sql

Once you have complete backup , You can proceed with with upgrade of mysql.