MyTrueHost launched Web Hosting for Indian clients just in Rs 60/Month with various payment options(netbanking, debit card, credit card,cash card or paypal).
Please Visit at https://www.mytruehost.in

How to configure email address in Outlook Express

Here is how to configure your email address in Outlook Express:

1)Click Start, point to All Programs, and then click Outlook Express
2)On the Tools menu, click Accounts.
3)Click Add, and then click Mail
4)Type Your name in Display name as you would like it to appear.
5)Type your email address people use to send email messages to you.
6)Type mail.domainname under incoming mail(POP3, IMAP OR HTTP) server as well as under Outgoing mail SMTP server.
For example if your domainname is example.com then type under incoming mail(POP3, IMAP OR HTTP) server, mail.example.com and under Outgoing mail SMTP server, mail.example.com.
7)Follow the instructions as above in the Internet Connection Wizard until you reach the Internet Mail Logon page
8)In Account name, type your POP3 service user name, followed by the domain, for example, someone@example.com.
In Password, type the password associated with your POP3 service e-mail account.
9)Click on properties button.
10)Enable: My servers requires authentication in servers tab
11)Enable: Leave a copy of message on the server in advanced tab.
12) Click Apply and then click OK.

 

Rkhunter Installation

RKHunter – (RootKit Hunter) is a security scanning tool which will scan for rootkits, backdoors, and local exploits. It is an intrustion detection program for Linux OS which has been widely used by many server administrators. Sometimes there is a false alarm but most of the time you need to check the problematic areas Rkhunter points out.

Use these commands to install it:

http://kent.dl.sourceforge.net/project/rkhunter/rkhunter/1.3.4/rkhunter-1.3.4.tar.gz

tar zxf rkhunter*
cd rkhunter-1.3.4
./installer.sh –layout default –install

Let’s set up RKhunter to email you daily the scan reports via email

pico /etc/cron.daily/rkhunter.sh

add the following replacing your email address:

#!/bin/bash
(/usr/local/bin/rkhunter -c –cronjob 2>&1 | mail -s “Daily Rkhunter Scan Report” email@domain.com)

chmod +x /etc/cron.daily/rkhunter.sh

Now you can run a test scan with the following command:

/usr/local/bin/rkhunter -c

 

ffmpeg.so: undefined symbol: av_free_static

This is a common error when we hit “php -v” over command line or when we browse a phpinfo.php on a site.

To fix this problem you will need to recompile your ffmpeg-php again.

To fix this:

Go to the source directory ffmpeg-phpXX.XX

#vi ffmpeg-php.c

remove/comment the call to av_free_static()

Save.

Now rebuild ffmpeg-php and place the new ffmpeg.so on your extension directory.

 

FFmpeg error

After installing FFMpeg , when you execute the command : ffmpeg or ffmpeg -v, you may receive an error.

 

ffmpeg: error while loading shared libraries: libavformat.so.50:

Solution :

Execute the following command :

 

export LD_LIBRARY_PATH=/usr/local/lib:LD_LIBRARY_PATH

But this value will be cleared once you log off that session.

So it is recommended to save this value in bashrc.

 

vi .bashrc

LD_LIBRARY_PATH=/usr/local/lib

 

 

Error from domain wrapper: domain.com is owned by another user.

Error:

Error from domain wrapper: domain.com is owned by another user.

If you are getting this error when trying to add subdomains from your cPanel, here is how to fix it:

1. Remove domain.com from /var/cpanel/users/cpanel-username

2. Run /scripts/updateuserdomains as root user on the server.

3. Remove the virtualhost for domain.com on /usr/local/apache/conf/httpd.conf

4. Remove /var/named/domain.com.db if the file exists. (generally it exists)

5. Remove domain.com from /etc/named.conf

You are now good to add the domain from cPanel.

 

#2002 – The server is not responding (or local MySQL server’s socket is not correctly configured).

#2002 – The server is not responding (or local MySQL server’s socket is not correctly configured).

While accessing PhpMyAdmin you may see the above error. This is due to the missing socket file in the location /tmp.

Here is how to fix it:

The socket path which is specified in the phpMyAdmin configuration file is /tmp/mysql.sock.

$ vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
cfg[‘Server’][‘socket’]         = ‘/tmp/mysql.sock’;

If mysql.sock is missing in /tmp, then create a link to the mysql.sock file in /var/lib/mysql.

$ ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

Login back to PhpMyAdmin and you should no longer see the error.

 

How to access your database remotely on a cPanel hosting.

How to access your database remotely on a cPanel hosting

First of all, it is important to explain how the database & database user names are formed. The names consist two parts — your cPanel username and the actual database username name. For example — if your username is “user” and if you named your database “databasename” you should use:

user_databasename

Same for database username:

user_username

Now, if you would like to access your database remotely you should add your IP to remote hosts list first. This can be done via your cPanel -> MySQL database. You will see on the bottom of your page Access Hosts section.

You can see your IP at http://www.whatismyip.com. If you have dynamic IP address you can add % instead which will allow connections from every IP.

As soon as you have your IP added, you can access your database using the following information:

MySQL host: your doamin name or the server hostname/IP address
MySQL port: 3306 ( 99% chance to be 3306) :)
MySQL database:  user_databasename
MySQL name: user_databaseuser
MySQL password: the password for the database applied for the user.

 

Horde Webmail error – Warning: Failed opening ‘Net/Socket.php’ for inclusion

The Horde webmail interface may throw an error as –

Warning: Failed opening ‘Net/Socket.php’ for inclusion
(include_path=’.:/usr/share/pear’) in /usr/share/pear/Net/SMTP.php on line 93
Fatal error: Cannot instantiate non-existent class: net_socket in
/usr/share/pear/Net/SMTP.php on line 95

To fix this, you can do the following –

First check if the Pear package Net_Socket is present on the server. You can verify this by –

# pear list | grep Netpear list|grep Net_Socket

Net_Socket       1.0.9   stable

In case this is not installed, you can install it-

pear install Net_Socket

If it is already present, check if the file Socket.php is present in /usr/share/pear/Net/ folder. Most probably this will be missing.

In case this is missing, download the package Net_Socket –

wget http://download.pear.php.net/package/Net_Socket-1.0.8.tgz

tar -xzvf Net_Socket-1.0.8.tgz

cd Net_Socket-1.0.8

cp Socket.php /usr/share/pear/Net/

You can now login to Horde Webmail Interface and no more see the error.

 

Mail Error message: Error 550 The recipient cannot be verified

On servers running cPanel, you may find that mail sent to valid user is bounced back will an error message which will be similar to the following:

PERM_FAILURE: SMTP Error (state 9): 550-”The recipient cannot be verified.
Please check all recipients of this550 message to verify they are valid.

If this is occurring, you will need to check your exim_mainlog file for entries
similar to the following.

<emailaddress@gmail.com> rejected RCPT
<emailAccount@domainName>: No Such User Here

If you are sure that email account does indeed exist, you will need to run the
following commands to correct the issue.

/scripts/updateuserdomains
/scripts/mailperm

Alternatively, you can also check the /etc/localdomains file and verify that the domain name is present. Also verify that the DNS line in your
/var/cpanel/user/username contains the domain name as well.

 

 

“ffmpeg headers not found” error while installing ffmpeg on cPanel servers

The error received is:

checking for ffmpeg support…checking for ffmpeg headers… configure: error: ffmpeg headers not
found. Make sure you’ve built ffmpeg as shared libs using the –enable- shared option

This is due to missing header files in  “/usr/local/include/ffmpeg” directory.

Check whether the directory “/usr/local/include/ffmpeg” exists else create it.

mkdir /usr/local/include/ffmpeg

Then copy the header files.

cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg

You need to reinstall ffmpeg. After installing ffmpeg, install ffmpeg-php.