HostOnNet Blog

Author Archives: admin

Cpanel rebuildhttpdconf Missing owner for domain server20.hostonnet.com, force lookup to root

After upgrading Cpanel server, i got following error when rebuilding httpd.conf server20.hostonnet.com is the hostname for the server. To fix, you need to edit the file /var/cpanel/userdata/nobody/server20.hostonnet.com Add At the end of the file. Once edited, file will look like


Find List of Resellers from Commandline in Cpanel Server

In Cpanel Server, resellers and privileges are stored in file Content of the file look like To get list of all reseller user names, use cut command.


Cpanel Transfer Tool – Failed to transfer site

When i transfer some sites from one server to another using Cpanel WHM > Transfer Tool, restore failed with following error The error was I checked the Cpanel user file on source server (/var/cpanel/users/USERNAME), it was present and dont see


Setting TimeZone in CentOS 7

To see current timezone, run To set timezone to UTC, run To See all available timezones, run


Redirect web site to SSL using .htaccess

To redirect web site to SSL using .htaccess, create .htaccess file with following content. For blog.hostonnet.com, i use following .htaccess


Browse Securely with SSH Tunnel on Ubuntu

Browsing over normal internet connection is not safe as network traffic is sent as pain text (no encryption). If anyone decided to get your password, they can by monitoring your traffic. This is important if you are using sites that


Cpanel Server Update Preferences

To select Cpanel version, enable automatic update, go to WHM Home > Server Configuration > Update Preferences I use following settins


Setting Time in Cpanel Server

To set time in Cpanel server, go to Home > Server Configuration > Server Time It is better set time to UTC as it will be able to handle timezones properly.


fabric

fabric is a tool for system administration/DevOps. It allows you to manage multiple servers with single command. You can find more information about fabric at http://www.fabfile.org/ fabric work over SSH, using SSH Keys. No special software needed to be install


lftp

lftp is a command line FTP program. Download All Content of a Website Lets say we want to download all content of web site client-website.com, run following commands Now we have all web site files on our computer. Upload All