Rewrite “ewea.org/fileadmin” to “windeurope.org/fileadmin”

Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?ewea\.org$ [NC]
RewriteRule ^fileadmin/(.*)$ https://windeurope.org/fileadmin/$1 [L,R=301,NC]

Host: command not found

# dig centos.org
 -bash: dig: command not found
 # host redhat.com
 -bash: host: command not found
 #nslookup Ubuntu.com
 -bash: nslookup: command not found

This error indicates to the bind-utils package not installed during Operating System installation. You need to install bind-utils package using yum command like below,

# yum install bind-utils

Changing the default (root) folder in WP File Manager plugin

WordPress File Manager is a great plugin for managing sub-folders and other files in the back-end.
However, the default directory is set to the site root. If you dont want your users to have access to your WP installation files, it’s best to change this to a different folder.

To change this setting edit the plugin files (shortcut here)

'path'	=> ABSPATH.'/wp-content/uploads/',	// path to files (REQUIRED)
'URL'	=> site_url().'/wp-content/uploads/',	// URL to files  (REQUIRED)

Like this:

file-manager

Archiving an entire website with WGET

If you ever need to download an entire Web site, perhaps for off-line viewing, wget can do the
job – for example:

$ wget \
     --recursive \
     --domains website.org \
     --no-parent \
     --page-requisites \
     --html-extension \
     --convert-links \
     --restrict-file-names=windows \
     --no-clobber \
         www.website.org/tutorials/html/

This command downloads the Web site www.website.org/tutorials/html/.

The options are:

  • –recursive: download the entire Web site.
  • –domains website.org: don’t follow links outside website.org.
  • –no-parent: don’t follow links outside the directory tutorials/html/.
  • –page-requisites: get all the elements that compose the page (images, CSS and so on).
  • –html-extension: save files with the .html extension.
  • –convert-links: convert links so that they work locally, off-line.
  • –restrict-file-names=windows: modify filenames so that they will work in Windows as well.
  • –no-clobber: don’t overwrite any existing files (used in case the download is interrupted and
    resumed).

 

Saved from http://www.linuxjournal.com/content/downloading-entire-web-site-wget

Installing Yoast breadcrumbs

<?php if ( function_exists(‘yoast_breadcrumb’) ) {yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);} ?>

http://kb.yoast.com/article/245-implement-wordpress-seo-breadcrumbs

W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9TRn+Q8lPZo4GIrXo7OLBGyJd
AufxkSN+LbuCQI+0fPxsQ+gCtMgvoN3RpsZfNoEFY9n8b3LP0DFk1V7X8SZV9A6R
aDUGhr+NyUgXsWCEnNhSbOAIbB9Lvgt0DhAEVKJ+Ygh318sTbUsPK3RPwln2y3cy
9JsGE1CpL74LHqN67gMaet9IEmaeUft+
-----END PRIVATE KEY-----

Disable Firewalld and reinstate iptables on Centos 7

1. Disable Firewalld Service.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl mask firewalld

2. Stop Firewalld Service.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl stop firewalld

3. Install iptables service related packages.

[root@rhel-centos7-tejas-barot-linux ~]# yum -y install iptables-services

4. Make sure service starts at boot:

[root@rhel-centos7-tejas-barot-linux ~]# systemctl enable iptables

# If you do not want ip6tables, You can skip following command.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl enable ip6tables

5. Now, Finally Let’s start the iptables services.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl start iptables

# If you do not want ip6tables, You can skip following command.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl start ip6tables

Firewalld Service is now disabled and stop, You can use iptables.

 

http://www.tejasbarot.com/2014/08/02/rhel-7-centos-7-disable-firewalld-and-use-iptables/

Disabling automatic updates in WordPress

Configuration via wp-config.php

Using wp-config.php, automatic updates can be disabled completely, and core updates can be disabled or configured based on update type.

Constant to Disable All Updates

The core developers made a conscious decision to enable automatic updates for minor releases and translation files out of the box. Going forward, this will be one of the best ways to guarantee your site stays up to date and secure and, as such, disabling these updates is strongly discouraged.

To completely disable all types of automatic updates, core or otherwise, add the following to your wp-config.php file:

define( 'AUTOMATIC_UPDATER_DISABLED', true );

Constant to Configure Core Updates

To enable automatic updates for major releases or development purposes, the place to start is with the WP_AUTO_UPDATE_CORE constant. Defining this constant one of three ways allows you to blanket-enable, or blanket-disable several types of core updates at once.

define( 'WP_AUTO_UPDATE_CORE', false );

WP_AUTO_UPDATE_CORE can be defined with one of three values, each producing a different behavior:

EWEA Photolibrary config file

EWEA ResourceSpace config.php file. This information is key for decrypting the photo database.

<?php
###############################
## ResourceSpace
## Local Configuration Script
###############################

# All custom settings should be entered in this file.
# Options may be copied from config.default.php and configured here.

# MySQL database settings
$mysql_server   = 'localhost';
$mysql_username = 'photolib_user';
$mysql_password = '5A5wdpqG';
$mysql_db       = 'photolibrary_test';

$mysql_bin_path = '/usr/bin';

# Base URL of the installation
$baseurl = 'http://intranet/photolibrary';

# Email settings
$email_from   = '[email protected]';
$email_notify = '[email protected]';

$spider_password  = 'uqe7ySEWEvan';
$scramble_key     = 'uXeXADaqYZat';

$api_scramble_key = 'aBeGA2yBA4ed';

# Paths
$imagemagick_path      = '/usr/bin';
$ghostscript_path      = '/usr/bin';
$ftp_server            = 'my.ftp.server';
$ftp_username          = 'my_username';
$ftp_password          = 'my_password';
$ftp_defaultfolder     = 'temp/';
$thumbs_display_fields = array(8,3);
$list_display_fields   = array(8,3,12);
$sort_fields           = array(12);

Bypass the EWEA firewall

We can bypass the firewall by changing network adapter properties as follows:

No-Firewall