Showing posts with label cpanel. Show all posts
Showing posts with label cpanel. Show all posts

Saturday, August 27, 2011

[checkperlmodules] The perl module Mysql could not be installed.

Salam,

Selepas upgrade perl dari version 5.8.8 ke 5.14 ... ada beberapa isu yang timbul... seprti sebelum ni berkaitan symlink exceutable file untuk perl.

sekali dgn itu gak ada 1 lg isu, isu berkaitan Mysql.PM ... Tajuk error dia

[checkperlmodules] The perl module Mysql could not be installed.

This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:

Test Run
==============
Can't locate Mysql.pm in @INC (@INC contains: /opt/perl5.14/site/lib /opt/perl5.14/lib .) at - line 1. BEGIN failed--compilation aborted at - line 1.

nampak seperti module utk perl ber kumunikasi dgn mysql ada masalah. tetapi aku dah install DBD::mysql & DBI tanpa ada masalah. kalau tgk dr log klau dia exec $>cpan install Mysql dia akan mencari module DBD::mysql version 4.**38** idicate version lama punya perl module yg ada Mysql.PM di main lib dia.

Aku try post dkt forum cPanel.. tapi hampeh x de respond... mentang2 la aku noob kat situ... haram depa nak layan... x per.....

as aku punya script semua jalan without a problem... apa aku buat utk counter bende ni adalah... aku edit file

/scripts/checkperlmodules

pegi ke line 132, dah remove line yg ada "Mysql" dlm qw(). so far aku tak dpt lg notification failure tu lg...

aku akan update klau ada error lain timbul plak nanti....

Tuesday, August 23, 2011

cPanel - PERL not properly linked

Aku dpt error ni dari cPanel server client.

ini berpunca dari aku update PERL version dkt server cPanel tu.

ERROR 1,

The perl binary at /usr/bin/perl should be a symlink to /usr/local/bin/perl to ensure that all scripts execute with the same perl version. This condition has been linked to a number of hard-to-diagnose issues in the past.

To resolve this issue, rename the current /usr/bin/perl and create a symlink pointing to /usr/local/bin/perl.

cd /usr/bin
    mv perl perl-backup
    ln -s /usr/local/bin/perl perl

ERROR 2,

This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:

Test Run
==============

Can't locate Mysql.pm in @INC (@INC contains: /opt/perl5.14/site/lib /opt/perl5.14/lib .) at - line 1.
BEGIN failed--compilation aborted at - line 1.

after tanya pakcik google, aku jumpa satu tips/rujukan yang mengatakan /usr/bin/perl mestilah symlink ke /usr/local/bin/perl ataupun /usr/bin/local/perl symlink ke /usr/bin/perl .... dimana salah satu mestilah symlink dah satu lagi executable file.

kalau megikut post aku berkaitan update PERL diserver cPanel sebelum ni mmg x da masalah utk script semua run. cuma cPanel ada isu bila kedua2 perl file di /usr/bin/perl & /usr/local/bin/perl merupakan symlink yg aku point ke location baru perl version 5.14.* di /opt/perl5.14/bin/perl

So apa aku buat. juat copy perl execytable file dr /ot/perl5.14/bin/perl ke /usr/local/bin/perl

so far x de masalah.

Saturday, August 20, 2011

Cpanel - Apache's vhosts logs file

cPanel's location for apache logs are as follows:

Vhost logs:

/usr/local/apache/domlogs

Apache main logs:

/usr/local/apache/logs

Wednesday, August 17, 2011

Perl Upgrade on CentOs + cPanel

Salam,

subscribe VPS utk client, hari ahad lg dah dpt server. ada few issue yg melambatkan prosess configuration. paling tension issue perl + imagemagick. imagemagick ni mmg mengarut skit dia punya setting. dari windows, macos & linux.... bernasib baik la sapa2 yang boleh install berjaya pada cubaan pertama..

this issue aku dpt solve dgn upgrade perl v5.8.8(yg dtg sekali dgn server) ke perl v5.14 latest version dari ActiveState.

bawah step2 utk upgrade perl ke version 5.14

Check the current version of Perl

perl -v

If the older version of Perl is running on server, you get an output something like,

This is perl, v5.8.8 built for x86_64-linux-thread-multi

Steps to Upgrade perl version

1) Download the latest perl installer from ActiveState site.
http://www.activestate.com/activeperl/downloads

wget http://downloads.activestate.com/ActivePerl/releases/5.12.4.1205/ActivePerl-5.12.4.1205-x86_64-linux-glibc-2.3.5-294981.tar.gz

2) Extract the archive file as,

tar -zxvf ActivePerl-5.12.4.1205-x86_64-linux-glibc-2.3.5-294981.tar.gz

3) Change the directory to ActivePerl-5.12.4.**

cd ActivePerl-5.12.4.**

4) Now run the installer file as,

./install.sh

5) Check perl modules

/scripts/checkperlmodules

6) Force cPanel update

/scripts/upcp -–force

7) Check the new installed perl version using “perl -v” and you get an output something like,

This is perl 5, version 14, subversion 1 (v5.14.1) built for x86_64-linux-thread-multi

complete...