Search results

  1. francis

    Transparently redirect a visitor to a wordpress in a subfolder

    If you have installed Wordpress in a subfolder, add this to your .htaccess file RewriteEngine on RewriteCond %{REQUEST_URI} !^/wp(/|$) RewriteRule (.*) /wp/$1
  2. francis

    Default Wordpress .htaccess code

    # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
  3. francis

    Redirect to WWW and HTTPS

    Add this to the .htaccess file at the root of your website: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} If you want to specify the domain: RewriteEngine On RewriteCond %{HTTP_HOST} ^mydomain\.com$ [OR] RewriteCond %{HTTP_HOST}...
  4. francis

    Fix NRPE Problem with Mariadb 10.2

    Problem: check_mysql.c:61: error: ‘MYSQL_PORT’ undeclared here (not in a function) make[1]: *** [check_mysql-check_mysql.o] Error 1 make[1]: Leaving directory `/xxxxx/linux-nrpe-agent/subcomponents/nagiosplugins/nagios-plugins-2.2.1/plugins' make: *** [install-recursive] Error 1 Solution...
  5. francis

    DHCP Server on CentOS

    yum install dhcp nano /etc/dhcp/dhcpd.conf systemctl enable dhcpd.service systemctl restart dhcpd.service conf: option domain-name "domain.com"; option domain-name-servers 8.8.8.8, 4.2.2.1; default-lease-time 600; max-lease-time 7200; subnet 10.0.0.0 netmask 255.255.255.0 { #...
  6. francis

    OpenVPN-AS Installation

    Installation yum -y install https://as-repository.openvpn.net/as-repo-centos7.rpm yum -y install openvpn-as useradd -d /home/francis francis useradd -d /home/openvpn openvpn passwd francis passwd openvpn Change the Admin and Client Ports Install Fail2ban Update OpenVPN-as: yum update...
  7. francis

    Tor relay Installation

    yum install epel-release tor Edit /etc/tor/torrc Change: ORPort 443 Exitpolicy reject *:* Nickname XXXXXXX ContactInfo support@domain.com # Opening the communication port firewall-cmd --permanent --zone=public --add-port=443/tcp firewall-cmd --reload Install Fail2ban and Nagios...
  8. francis

    Ezeelogin Installation

    Please note that this tutorial needs some updates * yum install epel-release httpd openssl mariadb-server bzip2 mariadb mod_ssl # https://webtatic.com/packages/php70/ rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum install php70w php70w-mysql php70w-process php70w-common...
  9. francis

    Zimbra Installation

    Installation # Install Perl yum install perl # Disable Postfix systemctl stop postfix systemctl disable postfix.service # File /etc/hosts xx.xx.xx.xx mailserver1.domain.com # Download source (please use updated source, not this example) wget...
  10. francis

    Fail2ban Installation

    Install Fail2ban yum install epel-release yum install fail2ban #: CentOS yum install jwhois #: CentOS 6.X chkconfig postfix on service postfix start #: CentOS 7.X systemctl start postfix systemctl enable postfix Only make changes in the jail.local file , not inside jail.conf If...
  11. francis

    Allow only certain IP on your site

    Put this in your .htaccess to block everybody except some ip: Deny from All Allow from xx.xx.xx.xx Allow from xx.xx.xx.xx The same thing apply if you want to restrict the access to a file: <Files admin.php> Order Deny,Allow Deny from all Allow from xx.xx.xx.xx Allow from xx.xx.xx.xx </Files>
  12. francis

    Install cPanel

    To install cPanel & WHM on your server, run the following command: cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Top