Server

FIX: Plesk and Sendmail Problem PHP

From the command line, enter this below. /usr/local/psa/bin/domain -u yourdomain.com -mail_service false…

From the command line, enter this below.

/usr/local/psa/bin/domain -u yourdomain.com -mail_service false

You do not need to restart the server. This tells Plesk to not use the mail server to send mail for that domain. It will then go through the correct MX entry for the domain and send it to an external domain. Specially for those who use Google Apps on Plesk.

You will need to do this for every domain hosted on the server.

Joomla

Use joomla default recaptcha plugin in Your Component or Module

1) Get reCaptcha keys from http://www.google.com/recaptcha 2) Set these keys to reCaptcha…

1) Get reCaptcha keys from http://www.google.com/recaptcha

2) Set these keys to reCaptcha plugin and activate it if it’s not.

3) Put below code where you want to show reCaptcha

//php code
JPluginHelper::importPlugin('captcha');
$dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onInit','dynamic_recaptcha_1');
//html code inside form tag
<div id="dynamic_recaptcha_1"></div>

4) Put this code where you validating/processing the form

$post = JRequest::get('post');
JPluginHelper::importPlugin('captcha');
$dispatcher = JDispatcher::getInstance();
$res = $dispatcher->trigger('onCheckAnswer',$post['recaptcha_response_field']);
if(!$res[0]){
die('Invalid Captcha');
}

Server

Configure RPMforge Repository on CentOS

Open the RPMforge configuration file /etc/yum.repos.d/rpmforge.repo Add the following text to the…

  1. Open the RPMforge configuration file
    /etc/yum.repos.d/rpmforge.repo
  2. Add the following text to the end of the RPMForge repository entry
    priority=3
  3. Check that you got the priorities set correctly
    yum check-update
    You should output similar to the following:
    Loaded plugins: fastestmirror, priorities

    469 packages excluded due to repository priority protections
Linux

How to Add User To Group in Linux

You can use the useradd or usermod commands to add a user…

You can use the useradd or usermod commands to add a user to a group. The useradd command creates a new user or update default new user information. The usermod command modifies a user account i.e. it is useful to add user to existing group. There are two types of group. First is primary user group and other is secondary group. All user account related information is stored in /etc/passwd, /etc/shadow and /etc/group files to store user information.

useradd Example – Add A New User To Secondary Group

You need to the useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. The syntax is as follows:

useradd -G {group-name} username

In this example, create a new user called neo and add it to group called matrix. First login as a root user (make sure group matrix exists), enter:

grep matrix /etc/group

Magento Logo

How To Clean Up Your Magento Store’s Database Logs For Faster and Better Performance

There are two different options to clean up your logs: Clean your…

There are two different options to clean up your logs:

  1. Clean your logs via Magento Admin Panel “Log Cleaning”
  2. Clean up your database tables directly via phpmyadmin or SSH MySQL.

The following tables are used & managed by Magento’s log cleaning functions:
log_customer
log_visitor
log_visitor_info
log_url
log_url_info
log_quote
report_viewed_product_index
report_compared_product_index
report_event
catalog_compare_item

Cleaning Logs via Magento Admin Panel

How to Set Up vsftpd on Ubuntu 12.04

How to Set Up vsftpd on Ubuntu 12.04

About vsftpd The first two letters of vsftpd stand for “very secure”…

How to Set Up vsftpd on Ubuntu 12.04
How to Set Up vsftpd on Ubuntu 12.04

About vsftpd

The first two letters of vsftpd stand for “very secure” and the program was built to have strongest protection against possible FTP vulnerabilities.

Step One – Install vsftpd

You can quickly install vsftpd on your server in the command line:

sudo apt-get install vsftpd
Once the file finishes downloading, the VSFTP will be on your server. Generally speaking, it is already configured with a reasonable amount of security. However, it does provide access on your Server to anonymous users.

Step Two – Configure vsftpd

Once vsftpd is installed, you can adjust the configuration.

Open up the configuration file:

sudo nano /etc/vsftpd.conf
The biggest change you need to make is to switch the Anonymous_enable from YES to NO:

anonymous_enable=NO

How to Create a SSL Certificate on Apache for Ubuntu 12.04

How to Create a SSL Certificate on Apache for Ubuntu 12.04

About SSL Certificates A SSL certificate is a way to encrypt a…

How to Create a SSL Certificate on Apache for Ubuntu 12.04
How to Create a SSL Certificate on Apache for Ubuntu 12.04

About SSL Certificates

A SSL certificate is a way to encrypt a site’s information and create a more secure connection. Additionally, the certificate can show the server’s identification information to site visitors. Certificate Authorities can issue SSL certificates that verify the server’s details while a self-signed certificate has no 3rd party corroboration.

What the Red Means

The lines that the user needs to enter or customize will be in red in this tutorial!

The rest should mostly be copy-and-pastable.

Set Up

The steps in this tutorial require the user to have root privileges on the server.

Additionally, you need to have apache already installed and running on your server.
If this is not the case, you can download it with this command:

sudo apt-get install apache2

Access and Use Emoji in Mac OS X

Access and Use Emoji in Mac OS X

Emoji are extremely popular picture characters and emoticons that are an integral…

Access and Use Emoji in Mac OS X
Access and Use Emoji in Mac OS X

Emoji are extremely popular picture characters and emoticons that are an integral part of Japanese tech culture and communication, and now with OS X Lion onward (yes, Mountain Lion and 10.9 too), the Emoji character set is available to everyone on a Mac regardless of your localization settings. They’re quickly taking the world by storm with their inclusion on the iPhone and iPad keyboards as well, and using them on the Mac is a fun way to emphasize dialog and messaging between people. Some of the characters are pretty funny so even if you have no intention on using them they’re fun to browse through.