Syndicate content between Drupal websites: A how-to guide

Imagine there was a way to enter content on one Drupal website and have it automatically appear on another. Suppose you could just as easily send it to five, or for that matter a hundred other sites if you wanted, and on each one it could be edited or deleted just like you'd entered it manually...

Okay, maybe it's not that romantic after all. But assuming this site-to-site transfer of content is something you're after, you can stop imagining and start building using the instructions below.

Add more to IP Deny

You don't need to put all the IPs to one file. You can put those IPs to a seperate file then add an include to csf.deny like follows:

Include /path_to_ip_file/blacklistip.txt

xt_connlimit error CSF

DDOS Protection x_connlimit issue
February 2, 2014 Abidoon Leave a comment

Note to self:

The Linode kernels for CentOS 6 have built in support for xt_connlimit so it will not load a module. The kernel is monolithic.

Checking via the csf test script will always show:

Zurb foundation error

diff --git a/template.php b/template.php
index 1d59967..c9a5927 100644
--- a/template.php
+++ b/template.php
@@ -366,7 +366,7 @@ function zurb_foundation_preprocess_field(&$variables) {
// Add class to a specific fields across content types.
switch ($variables['element']['#field_name']) {
case 'body':
- $variables['classes_array'][] = array('body');
+ $variables['classes_array'] = array('body');
break;

Change FTP port

If you are using pure-ftpd, you need to edit /etc/pure-ftpd.conf and change the port below to something other than 21.

Code:

# IP address/port to listen to (default=all IP and port 21).

# Bind 127.0.0.1,21

If you are using protftpd, you need to edit/etc/proftpd.conf and change the port below to something other than 21:

Code:

Port 21

After making the change, you need to restart the FTP server to make the change live:

Code:

/scripts/restartsrv_ftpserver

Prevent SMTP Port 25 attack

If you want to run on 25 and 587 without starting a second instance of Exim, and assuming you have root WHM access, add this to the first text box in the Exim Advanced Configuration Editor and restart Exim.

daemon_smtp_ports = 25 : 58

Proceed to WorldPay to make your payment button not clicked automatically

diff --git a/commerce_worldpay/commerce_worldpay_bg.module b/commerce_worldpay/commerce_worldpay_bg.module
index 3da1d35..222ebd9 100644
--- a/commerce_worldpay/commerce_worldpay_bg.module
+++ b/commerce_worldpay/commerce_worldpay_bg.module
@@ -579,6 +579,14 @@ function commerce_worldpay_bg_submit_form_submit($payment_method, $pane_form, $p
* @see commerce_worldpay_bg_redirect_form()
*/
function commerce_worldpay_bg_order_form($form, &$form_state, $order, $settings) {
+
+ /**

swappiness

What is swappiness and how do I change it?

The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for system and applications if processes are too aggressively moved out of memory.

swappiness can have a value of between 0 and 100

swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible

Allow address comparison rules to check multiple values in one condition

When setting up shipping I have a need to be able to change flat rate shipping based upon a list of countries or post codes in a country.

Using rules and working with 'Order address component comparison' unless I'm missing something you have to make a separate condition for each country/postcode when it would be much easier to include a list of values in one condition.

daemon

a background process that handles requests for services such as print spooling and file transfers, and is dormant when not required.

How to permanently raise ulimit 'open files' and MySQL 'open_files_limit'

The default ulimit (maximum) open files limit is: 1024--Which is very low, especially for a web server environment hosting multiple heavy database driven sites.

This ulimit 'open files' setting is also used by MySQL. MySQL automatically sets its open_files_limit to whatever the system's ulimit is set to--at default will be 1024.

NOTE: MySQL can NOT set it's open_files_limit to anything higher than what is specified under ulimit 'open files'--you can set it lower, but not above the 'open files' limit.

Anyhow...
This is how we raise the ulimit

Omega CSS

The layer structure of the default responsive css files is (from bottom to top): global → default → narrow → normal → wide

How the CSS Files Activate

Knowing this, let's look at those five CSS files again.

global.css: This CSS file always activates. In one sense, it's the "mobile" stylesheet, since it's the only CSS that will activate for a mobile site.

But global.css is also, well, global, since it activates for every width. For instance, if you set a heading font here, the headings will be that font no matter what the size.

Altered RPM found on my server !!

Hello Everyone,

I have today received an email from my sever saying that :-

The following RPMs are found to be altered from their original install state:
cpanel-php53-PEAR,1.9.4,3.cp1136,/opt/cpanel/php/53/.registry/pear.reg

Can anybody let me know if i need to be worried about it ?

Please advice.

Thank you

Reply With Quote Reply With Quote
12-10-2013, 01:57 PM #2
cPanelMichael
cPanelMichael is offline
cPanel Staff cPanelMichael's Avatar

PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password]

Followed instructions above from Zarevac.

I only had one SQL user for that that SQL database.
I deleted the SQL user.
Re-created user – with same name and password
[Got that information from \sites\default\settings.php file]
Assigned SQL user to the database.

Everything was back to normal.