Wednesday, May 22, 2019

Port Allow Firewalld | configure firewalld

Here are few steps to allow ports or services :-

Just type these commands :-

To Allow specific port on specific IP :-

$ firewall-cmd --permanent --zone=public --add-rich-rule=' rule family="ipv4" source address="your ip" port protocol="tcp" port="8080" accept'

You can allow any port you want to allow,

To Allow port :-
$ firewall-cmd --zone=public --add-port=25/tcp --permanent

To Remove port :-
$ firewall-cmd --zone=public --remove-port=25/tcp --permanent

You can allow any service you want to allow,

To Allow service :-
$ firewall-cmd --permanent --zone=public --add-service=ftp

To Remove service :-
$ firewall-cmd --permanent --zone=public --remove-service=ftp

You can move runtime to permanent,

To move runtime to permanent :-
$ firewall-cmd --runtime-to-permanent

To save firewall rules :-
$ firewall-cmd --reload

You can check the current rules,
 vi /etc/firewalld/zones/public.xml

Tuesday, April 30, 2019

ZurmoCRM - An error has occurred. Please click here to continue to the home page. If the error persists please contact your administrator

ZurmoCRM :-


An error has occurred. Please click here to continue to the home page. If the error persists please contact your administrator


Solution :-

Just edit this file debug.php
  • vi ./zurmo/app/protected/config/debug.php
just make little changes :-

    $securityOptimized = false;        to     $securityOptimized = true;


It will works,

Cheers...

Thursday, April 18, 2019

WebHosting Support Chat Links



Fasthost.com
LiveHelp Chat

Hostgator.com
Live Help Chat


Godaddy.com
liveHelp Chat

Friday, February 15, 2019

ISPConfig on CentOS

ISPConfig on CentOS


This tutorial shows the installation of ISPConfig 3.1 on a CentOS 7.4 (64Bit) server.
ISPConfig is a web hosting control panel that allows you to configure the following services through a :-

  • web browser:
  • Apache web server,
  • Postfix mail server,
  • MySQL,
  • BIND nameserver,
  • PureFTPd,
  • SpamAssassin,
  • ClamAV,
  • Mailman,
  • and many more.

To install such a system you will need the following:-


  • A Centos 7.4 minimal server system. This can be a server installed from scratch as described in our Centos 7 minimal server tutorial or a virtual-server or root-server from a hosting company that has a minimal Centos 7.4 setup installed.
  •     A fast Internet connection.

  • #localectl set-keymap en
  • #localectl list-keymaps
  • #yum -y install net-tools
  • #systemctl stop firewalld.service
  • #systemctl disable firewalld.service

  • #iptables -L

  • [root@server1 ~]# iptables -L
  • Chain INPUT (policy ACCEPT)
  • target prot opt source destination

  • Chain FORWARD (policy ACCEPT)
  • target prot opt source destination

  • Chain OUTPUT (policy ACCEPT)
  • target prot opt source destination

  • #firewall-cmd --state

  • [root@server1 ~]# firewall-cmd --state
  • not running
  • [root@server1 ~]#

  • #yum -y install nano wget NetworkManager-tui

  • If you did not configure your network card during the installation, you can do that now. Run...

  • #nmtui

  • #vi /etc/sysconfig/network-scripts/ifcfg-ens33
  • and set ONBOOT to yes:

  • [...]
  • ONBOOT=yes
  • [...]


For more information,
please read this article. its very helpful.





Wednesday, February 13, 2019

How to in stall ISPConfig on CentOS 7


ISPConfig is an open source hosting control panel for Linux,
licensed under BSD license and developed by the company ISPConfig UG.

Just follow these commands to install ISPConfig on your centos 7 machine.

  1. setenforce 0
  2. sed -i 's/enforcing/disabled/' /etc/sysconfig/selinux
  3. sed -i 's/enforcing/disabled/' /etc/selinux/config
  4. yum -y install yum-priorities groupinstall 'Development Tools' epel-release wget nano
  5. yum -y install ntp httpd mod_ssl mariadb-server php php-mysql php-mbstring php-ldap php-mysql php-odbc php-pear php php-devel php-gd php-imap php-xml php-xmlrpc php-pecl-apc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel mod_fcgid php-cli httpd-devel php-fpm perl-libwww-perl ImageMagick libxml2 libxml2-devel python-devel phpmyadmin dovecot 
  6. nano /etc/php.ini date.timezone = "Asia/Kolkata"
  7. systemctl start httpd.service && systemctl enable httpd.service && systemctl start mariadb.service && systemctl enable mariadb.service
  8. mysql_secure_installation
  9. touch /etc/dovecot/dovecot-sql.conf
  10. ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf
  11. systemctl start dovecot.service && systemctl enable dovecot.service
  12. yum -y install amavisd-new spamassassin clamav clamd clamav-update unzip bzip2 unrar perl-DBD-mysql pure-ftpd bind bind-utils
  13. wget https://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
  14. tar -zxvf ISPConfig-3-stable.tar.gz
  15. cd ispconfig3_install
  16. cd install
  17. php -q install.php

Thursday, January 31, 2019

Convert *.vmdk using VMware vmkfstools

Convert *.vmdk using VMware vmkfstools


Use vmkfstools command, to convert old_os.vmdk to New_OS.vmdk 



To get the desired files use this commands:

cd /vmfs/volumes/datastore1/yourVM/

vmkfstools -i old_os.vmdk  -d thin New_OS.vmdk


[root@VmSrv1:/vmfs/volumes/datastore1/yourVM] vmkfstools -i old_os.vmdk  -d thin New_OS.vmdk

Wednesday, December 19, 2018

Take mysqldump with separate databases/files

Take mysqldump with separate databases/files


To take a back-up, run the mysqldump tool on each available databases,

[root@akwal ~]# mysql -N -e 'show databases' | while read dbname; do mysqldump --complete-insert --routines --triggers --single-transaction "$dbname" > "$dbname".sql; done




Here is the screenshot with all related commands,

Mysqldump each database and compress the SQL file

[root@akwal ~]# mysql -N -e 'show databases' | while read dbname; do mysqldump --complete-insert --routines --triggers --single-transaction "$dbname" > "$dbname".sql; [[ $? -eq 0 ]] && gzip "$dbname".sql; done





Enjoy...!!!