Plesk: Disable Nginx and Rebuild Httpd Configuration

You can disable Nginx on your server through command line Code: /usr/local/psa/admin/sbin/nginxmng -d And rebuild httpd configuration through command line Code: /usr/local/psa/admin/sbin/httpdmng –reconfigure-all

Encrypt and Decrypt for URL Using PHP

Here is the function for Encrypt and Decrypt (String, text, ids) for URL Using PHP. please set change $secret_key and $secret_iv for your wish to generate secure encryption and decryption keys. function encryptor($action, $string) { $output = false; $encrypt_method =…

Popular Sites run on which Platforms?

Site Up Since Server Platform Programming Language Google.com November 1998 Linux C, Java, C++, PHP & MySQL Facebook.com February 2004 Linux PHP, MySQL and C++ YouTube.com February 2005 Linux C, Java and MySQL Yahoo.com August 1995 Linux C++, C, Java,…

Add Trailing Slash to URL (.htaccess)

Some of search engines remove the trailing slash from URLs that look like directories – e.g. Yahoo does it while listing on their search engine. This could result into duplicated content problems when the same page content is accessible under…

Script to convert InnoDB tables to MyISAM

#!/bin/bash MYSQLCMD=mysql for db in `echo show databases | $MYSQLCMD | grep -v Database`; do for table in `echo show tables | $MYSQLCMD $db | grep -v Tables_in_`; do TABLE_TYPE=`echo show create table $table | $MYSQLCMD $db | sed -e’s/.*ENGINE=\([[:alnum:]\]\+\)[[:space:]].*/\1/’|grep…

E-Mail Testing

Following are the few sites from where we can test our mailserver and domain for testing, reputation and blacklsiting. Blacklist Checking https://www.blacklistmaster.com/check?t=<ip address> DKIM Testing http://dkimcore.org/c/keycheck IP/Domain Reputation and Scores http://www.senderbase.org/lookup/?search_string=<ip address or domain> https://www.senderscore.org/lookup.php?lookup=<ip address>&validLookup=true http://mxtoolbox.com/ Scan Website for…