Category Archives: Hosting

cpanel block domain for sending emails

touch /etc/blockeddomains
echo “domain.com” >> /etc/blockeddomains
WHM > Exim Configuration Editor > Advanced Editor

domainlist blocked_domains = lsearch;/etc/blockeddomains

#route
democheck:
driver = redirect
require_files = “+/etc/demouids”
condition = “${if eq {${lookup {$originator_uid} lsearch {/etc/demouids} {$value}}}{}{false}{true}}”
allow_fail
data = :fail: demo accounts are not permitted to relay email

reject_domains:

driver = redirect
# RBL Blacklist incoming hosts
domains = blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.

manually change domain in magento

Update your core_config_data table to edit the two records for web/unsecure/base_url and web/secure/base_url
Delete the contents of WEBROOT/var/cache
Update / edit any .htaccess domain redirects you may have added
Restart Apache
Make sure Apache has write permissions to WEBROOT/var
If you created a new DB, ensure that the WEBROOT/app/etc/local.xml is pointing to it.
If you’re using Chrome, clear your browser cache! (Chrome caches 301s)

directadmin install Zend Optimizer/Guard, and/or Ioncube

For Zend, type:
cd /usr/local/directadmin/custombuild
./build set zend yes
./build zend

after changing php versions, it’s recommended you install zend again.
Note that Zend Guard is the new name for Zend Optimizer, and is used for newer versions of php. Custombuild will install the correct one for your system.

For Ioncube, type:
cd /usr/local/directadmin/custombuild
./build set ioncube yes
./build ioncube

wordpress – Notice: Undefined Index and Cannot modify header

It occurs when WP_DEBUG is enabled:

The WP_DEBUG option, added in WordPress, controls the reporting of some errors and warnings and enables use of the WP_DEBUG_DISPLAY and WP_DEBUG_LOG settings. The default value is false.

NOTE: The true and false values in the example are not set in apostrophes (‘) because they are boolean values.
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG’, false );
Additionally, if you are planning on modifying some of WordPress’ built-in JavaScript or Cascading Style Sheets, you should add the following code to your config file:

define( ‘SCRIPT_DEBUG’, true );
Then the uncompressed versions of scripts and stylesheets in wp-includes/js, wp-includes/css, wp-admin/js, and wp-admin/css will be loaded instead of the .min.css and .min.js versions.