CAll Us: +92-3338901062 Submit Ticket   Login

Author Archives: Muhammad Jamshed

About Muhammad Jamshed

I am Level 3 Linux Server Management specialist having vast experience of managing Linxu servers and Wordpress Webdesigning.
Install CXS ( ConfigServer eXploit Scanner ) on Centos WebPanel (CWP) Server

Install CXS ( ConfigServer eXploit Scanner ) on Centos WebPanel (CWP) Server

ConfigServer eXploit Scanner (cxs) is a tool from configserver that performs active scanning of files as they are uploaded to the server along with the files already exist on the server.

This is one of the best security tool for your server and thus you should install it on your CWP (Control WebPanel) server to prevent the dangerous scripts to be uploaded on your server.

In this tutorial, I will show you how to install and configure CXS software on your CWP server.

Requirements

  • Control WebPanel (formerly known as Centtos WebPanel) Installed on Server
  • root server login
  • Active CXS license for your server IP

Step 1 - Downloading and Installation of CXS from official site

Login to your server SSH using any SSH client e.g. Putty as a root user and perform following commands

cd /usr/src
rm -f cxs*
wget https://download.configserver.com/cxsinstaller.tgz
tar -xzf cxsinstaller.tgz
chattr -i -R /usr/local/cwpsrv/htdocs/admin/
perl cxsinstaller.pl ipv4 
rm -fv cxsinstaller.*

Don’t forget to replace “ipv4” with your licensed server IP.

Step 2 - Adding clamd socket to cxs config for the scanner

sed -i '$ a clamdsock=/var/run/clamd.amavisd/clamd.sock' /etc/cxs/cxs.defaults

You may get following issue while performing the above command

sed: can’t read /etc/cxs/cxs.defaults: No such file or directory

It means that you don’t have file /etc/cxs/cxs.defaults. Actually, this exists but disabled as /etc/cxs/cxs.defaults
So, use following command to fix this issue

cd /etc/cxs
mv cxs.defaults.sample cxs.defaults

Once this has been done, then try to perform above command again.

After installation of CXS, go to CWP-admin > Configserver Scripts >> ConfigServer Exploit Scanner and go through onscreen instructions and complete the installation (Default Settings are recommended)

Known Issues

If CXS gui ask for clamd scanner socket, run the `Step 2` command again and restart cxswatch service with the command given below

service cxswatch restart

If you encounter any issue during this process, leave the comment below or send an email at info@hostinpk.com

How to get PRC (Proceed Realization Certificate) for Income Tax for Freelancers in Pakistan

How to get PRC (Proceed Realization Certificate) for Income Tax for Freelancers in Pakistan

To learn more about PRC and method of getting PRC can be learnt in this video https://youtu.be/w9G0BBPWIXg

Income Tax FBR Freelancers PakinstanIf you are a freelancer living in Pakistan and withdrawing your Online freelancing income (like from Fiverr, Upwork, Freelancer, Peopleperhour, etc..) through Payoneer or any other method to your bank, you will have to get the PRC (Proceed Realization Certificate issued) to prove the Bank withdrawals as foreign income which will, then, be exempt from tax.

As per Income Tax Ordinance of Pakistan, any foreign remittance will be exempt from tax if you have PRC (Proceed Realization Certificate issued) from your bank. Every bank is responsible for issuance of PRC for any foreign remittance.

However, if you are withdrawing payments through Payoneer in Pakistan, scenario is different. Actually, Payoneer has partnership with Mobilink MicroFinance Bank in Pakistan and when you withdraw money, Payoneer sends money to MMBL which is sent to respective banks as an IBFT (Inter Bank Funds Transfer) which is taxable according to Pakistan Income Tax Law.

So, you will have to get the PRC issued by your Bank to prove that income as foreign income instead of IBFT and also to prove it as white money.

PRC issuance method is given below

  • Contact your Bank with a written application for the issuance of PRC for your transactions
  • Prepare an excel sheet of transactions with amount and date
  • Your bank will send this request to Mobilink MicroFinance Bank for PRC
  • MMBL will issue the PRC and send to your bank
  • You can collect the PRC for free from your branch
  • Now, declare these income as Exempt in Income Tax Return and show the PRC upon FBR Request

In case of any question regarding this matter, drop an email at info@hostinpk.com

Muhammad Jamshed
TRS at Fiverr and Upwork

Configure SSL and Green Padlock on Centos Webpanel Hostname

If you want to get the fully secured hostname with green padlock on Centos Webpanel, just follow the simple two steps.

1. Change the hostname through Change Hostname option in admin panel so that you get autoSSL installed
https://server_ip_address:2031/admin/index.php?module=change_hostname

2. Reload cwpsrv service from console/ssh
service cwpsrv reload

3. and that’s it. Enjoy green padlock on hostname login panes in Centos Web Panel.

How to create wildcard Subdomains in Centos Webpanel (CWP)?

How to create wildcard Subdomains in Centos Webpanel (CWP)?

Currently, we can’t create wildcard subdomains in Free control Panel Centos Webpanel. Through this tutorial, you will be able to create wildcard subdomain in CWP.

Copy and Paste this code at the end of /usr/local/apache/conf.d/vhosts.conf file through SSH or file manager

# vhost_start *.yourdomain.com
ServerName _wildcard_.yourdomain.com
ServerAlias *.yourdomain.com
ServerAdmin hostinpk@gmail.com
DocumentRoot “/home/yourdoma/public_html”
ErrorLog “/home/yourdoma/public_html/error.log”
ScriptAlias /cgi-bin/ /home/yourdoma/public_html/cgi-bin/
# Custom settings are loaded below this line (if any exist)
# Include “/usr/local/apache/conf/userdata/yourdoma/*.yourdomain.com/*.conf
SuexecUserGroup yourdoma yourdoma
suPHP_UserGroup yourdoma yourdoma
<Directory “/home/yourdoma/public_html”>
AllowOverride All
# vhost_end *.yourdomain.com

Don’t forget to replace yourdomain.com with your own domain name and yourdoma with the user name of the account.

Save the file and start using wildcard subdomains on your account.