Acme::Sporke version v0.0.8 required

Written by AlanV on April 13, 2009 – 2:29 am -

If you receive error while compiling easyapache shown at following image then run following cPanel scripts and then run easyapache

1)/scripts/checkperlmodules
2)/scripts/upcp –force

error Acme::Sporke version v0.0.8 required


Posted in Dedicated Server Hosting, linux, Linux VPS Hosting, VPS hosting | 1 Comment »

Couldn’t load Template::Stash::XS 2.20

Written by AlanV on April 1, 2009 – 10:15 pm -

If you are receiving following errors while running easyapache or any other script then go through following solutions to fix this issue.

=====================================================
Can’t locate loadable object for module Template::Stash::XS in @INC (@INC contains: /usr/local/cpanel /scripts /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/5.8.8/i686-linux/DynaLoader.pm line 31

BEGIN failed–compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Template/Stash/XS.pm line 31.
Compilation failed in require at /scripts/cPScript/Template.pm line 14.
BEGIN failed–compilation aborted at /scripts/cPScript/Template.pm line 14.
Compilation failed in require at /scripts/cPScript/AdvConfig.pm line 9.
BEGIN failed–compilation aborted at /scripts/cPScript/AdvConfig.pm line 9.
Compilation failed in require at /scripts/cPScript/AdvConfig/apache.pm line 19.
BEGIN failed–compilation aborted at /scripts/cPScript/AdvConfig/apache.pm line 19.
Compilation failed in require at /scripts/cPScript/EditHttpdconf.pm line 37.
BEGIN failed–compilation aborted at /scripts/cPScript/EditHttpdconf.pm line 37.
Compilation failed in require at /scripts/fixmailmanwithsuexec line 14.
BEGIN failed–compilation aborted at /scripts/fixmailmanwithsuexec line 14.
======================================================

Solution: Read more »


Posted in Dedicated Server Hosting, linux, Linux VPS Hosting, VPS hosting | 1 Comment »

SSH Error: /etc/shells is either world writable or not a normal file

Written by Mike on February 26, 2009 – 11:52 pm -

Recently while trying to login into a VPS; SSH was not accepting Password for the user root. So, I logged into the VPS from Hardware Node (Host Server) and checked /var/log/messages to get exact Error. Following are the logs which were stored in /var/log/messages file

Feb 23 23:51:10 server PAM-shells[13512]: /etc/shells is either world writable or not a normal file
Feb 23 23:51:14 server PAM-shells[13512]: /etc/shells is either world writable or not a normal file
Feb 23 23:51:17 server PAM-shells[13535]: /etc/shells is either world writable or not a normal file
Feb 23 23:52:49 server sshd(pam_unix)[15414]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=server.example.com user=root

When I checked the permissions of the file /etc/shells and it was set to 777 (universal writable).

root@server [~]# ll /etc/shells
-rwxrwxrwx  1 root root 32 Feb 23 23:54 /etc/shells*

So, I changed the permission of the file to 644 and able to login into SSH.

root@server [~]# chmod 644 /etc/shells
root@server [~]# ll /etc/shells
-rw-r--r--  1 root root 32 Feb 23 23:55 /etc/shells
root@server [~]#

Hope this fix will work for you too… waiting for your comments.


Tags: , , , , ,
Posted in linux, Linux VPS Hosting | No Comments »

CPanel Error: Error while connecting to MySQL. Failover enacted

Written by Mike on February 21, 2009 – 12:36 pm -

CPanel of any domain shows following Error on MySQL Databases Section of Left Hand Side Panel

Error while connecting to MySQL. Failover enacted.


SOLUTION:

This error comes when Perl modules for database are outdated OR not installed. You can install them using following Commands:

root@server [~]# perl -MCPAN -e shell

cpan> install Bundle::CPAN
cpan> reload cpan
cpan> install HTTP:ateate
cpan> install HTTP:Date
cpan> install Net::AIM::Connection
cpan> install Net::AIM
cpan> install Tie::IxHash
cpan> install DBI
cpan> install DBD::mysql

Restart MySQL.


Tags:
Posted in Linux VPS Hosting | 3 Comments »

ERROR: “/lib/cpp” fails sanity check

Written by Mike on November 20, 2008 – 12:00 pm -

ERROR:

Recently while running “./configure” while installing a component on a Server I got following Error.

checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... unsupported
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
[root@server1 ]#

_
SOLUTION:

I have checked and found that gcc and cpp modules are already installed on the server. This can be checked using command “rpm -qa | grep gcc” “rpm -qa | grep cpp“. I have searched on many websites and found that glibc-headers were not installed on the server. I have installed glibc-headers using command “yum install glibc-headers“. If you face this problem please make sure that following components are installed on the server:

1) GCC and GCC-C++

[root@server1 ~]# rpm -qa | grep gcc
gcc-c++-4.1.2-42.el5
compat-gcc-34-c++-3.4.6-4
libgcc-4.1.2-42.el5
gcc-4.1.2-42.el5
compat-gcc-34-3.4.6-4
compat-libgcc-296-2.96-138
gcc-objc-4.1.2-42.el5
compat-gcc-34-g77-3.4.6-4
gcc-objc++-4.1.2-42.el5
[root@server1 ~]#

_

2) CPP

[root@server1 ~]# rpm -qa | grep cpp
cpp-4.1.2-42.el5
[root@server1 ~]

_

3) GLIBC, GLIBC-DEVEL and GLIBC-HEADERS

[root@server1 ~]# rpm -qa | grep glibc
glibc-2.5-24
glibc-headers-2.5-24
compat-glibc-headers-2.3.4-2.26
glibc-common-2.5-24
glibc-devel-2.5-24
compat-glibc-2.3.4-2.26
[root@server1 ~]#

_


Tags: ,
Posted in Dedicated Server Hosting, Linux VPS Hosting | 7 Comments »

How to use Apache mod_ssl/OpenSSL to generate CSR ?

Written by Pravin on November 14, 2008 – 11:55 pm -

Certificate Signing Request (CSR) contains all the information regarding certificate application. It also includes the Public key.

Following steps will show how to generate a pair of private key and public Certificate Signing Request (CSR) for a webserver, “server” using Apache mod_ssl/OpenSSL.

root@vps [~]# openssl req -new -nodes -keyout vps.key -out vps.csr

This creates a two files. The file vps.key contains a private key;

Following is the output from the above command, you will have to fill some of the fields here:

root@vps [~]# openssl req -new -nodes -keyout vps.key -out vps.csr

Generating a 1024 bit RSA private key
……………++++++
……++++++
writing new private key to ‘vps.key’
—–
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [GB]:GB
State or Province Name (full name) [Berkshire]:Berkshire
Locality Name (eg, city) [Newbury]:Newbury
Organization Name (eg, company) [My Company Ltd]:Trulymanaged
Organizational Unit Name (eg, section) []:Webhosting
Common Name (eg, your name or your server’s hostname) []:vps.server.com
Email Address []:vps@server.com

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:sdfhsdfj
An optional company name []:

Your CSR will now have been created. Open the vps.csr in a text editor and copy and paste the contents into the online enrollment form when requested.


Tags: , , ,
Posted in linux, Linux VPS Hosting, Plesk For Linux, VPS hosting | No Comments »

make: *** [libavdevice/v4l.o] Error 1

Written by Mike on November 13, 2008 – 6:08 pm -

ERROR:

While installing FFMPEG on a server when we run “make” after “./configure” it gives following error:

math-errno       -c -o libavdevice/v4l.o libavdevice/v4l.c
In file included from libavdevice/v4l.c:32:
/usr/include/linux/videodev.h:56: error: syntax error before "ulong"
/usr/include/linux/videodev.h:72: error: syntax error before '}' token
libavdevice/v4l.c: In function `grab_read_header':
libavdevice/v4l.c:77: error: storage size of 'tuner' isn't known
libavdevice/v4l.c:141: error: invalid application of `sizeof' to incomplete type `video_tuner'
libavdevice/v4l.c:148: error: invalid application of `sizeof' to incomplete type `video_tuner'
libavdevice/v4l.c:77: warning: unused variable `tuner'
make: *** [libavdevice/v4l.o] Error 1

_

SOLUTION:

This problem can be fixed by disabling v41 and v42 for FFMPEG. This can be done when we run “./configure” for FFMPEG

./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --disable-demuxer=v4l --disable-demuxer=v4l2

_
Once this has been completed run “make” and “make install” to install FFMPEG.


Tags: ,
Posted in Dedicated Server Hosting, Linux VPS Hosting | 7 Comments »

Getting 404 error to “jsp” pages, even though Tomcat was auto-configured by [WHM/cPanel] installation

Written by Jahangir on November 8, 2008 – 12:31 am -

Error
Apache Web Server was not passing servlet requests to Apache Tomcat. It served 404 errors to jsp pages, even though the Apache Tomcat was auto-configured by the WHM / Cpanel installation.

SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base ççç does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)

Cause
This was occurring because Tomcat could not read from the “public_html” directory for the site. This was a result of file protect being enabled in easyapache. This option causes all public_html directories to be owned by the user and the group nobody, leaving all other users unable to index those directories. Unfortunately this leaves tomcat, which runs as the user tomcat, unable to access those files as well.

Solution
It should be addressed by executing following script.

/scripts/disablefileprotect

Restart Tomcat service

/scripts/restartsrv_tomcat

Issue Fixed, now “jsp” pages works fine.

Enjoy :)


Tags: , , ,
Posted in Dedicated Server Hosting, Linux VPS Hosting | No Comments »

How to login webmail directly without acessing cPanel?

Written by Jahangir on November 7, 2008 – 5:35 am -

How to login direct using “webmail.domain.com” in to Squirrelmail or Horde of any account?

First you need to create a subdomain that you want to redirect to your preferred Webmail client [Squirrelmail /Horde].

Following are the steps to create subdomain.

1. Login in to your cPanel interface.

2. Select the Subdomain option, and create the subdomain. (For eg: webmail.domain.com)

3. Once it has been created, go to the File Manager option of the cPanel.

4. Change path to “public_html” by selecting the folder image beside the text “public_html”

5. Now change the path to folder that was create by your subdomain. (as per our example it would be the “ebmail” folder)

6. Once inside this directory webmail you will see “.htaccess” file, if it’s not there then you need to create it manually.

* If it is not there then create new using below steps : (if it already exists proceed to step 10)

7. Create it [.htaccess] by selecting the “Create New File” option.

8. A menu appears in the top right corner of the File Manager interface. Choose “Text Document” and name it “.htaccess” [without quotes]

9. Now refresh File Manager and you will then see your new file [.htaccess] in the listing of that directory.

10. Click on the text title for the .htaccess file on the left side of the screen and a menu appears in the top right of the screen.

11. Choose the “Edit File” option, a new window opens.

12. Add the following lines:

If You Want To Redirect “webmail.domain.com” to the Squirrel Mail Client

RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$
RewriteRule ^(.*)$ http://domain.com:2095/3rdparty/squirrelmail/index.php$1 [R=301,L]


If You Want To Redirect “webmail.domain.com”to the Horde Webmail Client

RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$
RewriteRule ^(.*)$ http://domain.com:2095/horde/$1 [R=301,L][/QUOTE]


NOTE
:-
replace “domain.com” above with your actual domain name.
Enjoy Direct Webmail Client Login.


Tags: , ,
Posted in Dedicated Server Hosting, linux, Linux VPS Hosting | 112 Comments »

What is SPF?

Written by Jahangir on November 1, 2008 – 4:42 am -

What is SPF? [Sender Policy Framework]
SPF (Sender Policy Framework) is a standard that was created in order to stop and eliminate the forged or spoofed sender email addresses in the mail envelope SMTP MAIL FROM or Return-Path that commonly used in spam message. SPF is not directly about stopping spam – junk email. SPF works as an extension to the Simple Mail Transfer Protocol (SMTP), and allows relay MTA (Mail Transport Agent) to identify and reject those e-mail spam sent from unauthorized and unapproved mail server. SPF was created in 2003 to help close loopholes in email delivery systems that allow spammers to “spoof” or steal your email address to send hundreds, thousands or even millions of emails illicitly.

How SPF Work?
SPF enable domain’s email delivery operation works in such a way, Owner of an Internet domain name defines SPF records using a special format of TXT records in the domain zone DNS name server. The SPF specifies which machines are authorized to transmit e-mail for that domain. When an email is received by a mail server, the MTA will query the SPF records from DNS resolver to determine whether the email is originated from a legitimate server. If SPF PASS result is returned, the email is accepted and got delivered. Else if SPF FAIL result is returned, the email is rejected and bounced.

Is SPF is Must?
SPF records is not must, but it’s a good to set up the SPF records to stop spam fault from illegally spoofing. If your domain does not have an SPF record. This means that spammers can easily send out E-mail that looks like it came from your domain, which can make your domain look bad (if the recipient thinks you really sent it), and can cost you money (when people complain to you, rather than the spammer).
Now many mail servers such as AOL and Hotmail now require valid SPF record for inclusion in their whitelist program so if you don’t have one your email will probably not be delivered to that server.

How to Set up SPF record for a domain?
The major issue for SPF records are how to write and create a properly SPF record which is valid and correct for the domains, as all SMTP server that sends email for the domains must be defined.

For SPF to work you have to add, to each DNS zone a record similar to this:

domain.com. 14400 IN TXT "v=spf1 a mx -all"

note:- “.” is necessary after the “domain.com” otherwise SPF fails to work.
“domain.com” is the domain for which you were adding SPF record.
Syntax used is as follows,
You will notice that all SPF record start with v=spf1. “v=” defines the version of SPF used, and is mandatory to identify it’s the SPF record. Currently only the only version supported is spf1.
A :- If the domain name has an A record corresponding to the sender’s address, it will match. (That is, the mail comes directly from the domain name.)
MX :- If the domain name has an MX record resolving to the sender’s address, it will match. (That is, the mail comes from one of the domain’s mail servers)
ALL :- Matches always, used for a default result like -all for no other IP’s are allowed to send emails.

You can read all the options that you have by visiting: http://www.openspf.org/SPF_Record_Syntax


Tags: , , , , ,
Posted in Dedicated Server Hosting, linux, Linux VPS Hosting | 1 Comment »
RSS

  • Subscribe Me

  • Tag Cloud

  • Archives