April 30, 2011 | Posted by
admin | Category: Linux Administration
There are various ways to download and install perl modules from CPAN. In general it’s a good idea to download and install the perl module but we will see the different ways of installing the perl module.
Method 1. The easiest way is to use the perl CPAN module. SSH to the server as root and execute:
# cpan
if you are running this for the first time, it will prompt you for a few questions (default answers are fine) before providing you with the “cpan >” prompt. To install a module, say for example “Perl::OSType”, execute
cpan > install Perl::OSType
this will download and compile the module and install it server wide. To know more commands/options of cpan, type question mark ( ? ) at the cpan prompt.
Method 2. The second and the quickest method is to use perl CPAN module from the bash prompt instead of ‘cpan’ prompt. If you are on the command line of Linux, just execute
# perl -MCPAN -e 'install Perl::OSType'
Method 3. The above 2 methods are the easiest one but it is recommended to install the module manually as the above methods may not always work.
Search and download the module from http://search.cpan.org/ and then wget it on your server. Once done, extract it:
# tar -zxf Perl-OSType-1.002.tar.gz
Untar the downloaded file and go to the extracted directory. There is a README file inside the directory with the installation steps, however, here are they:
# perl Makefile.PL
# make
# make test
# make install
That is it.
April 17, 2011 | Posted by
admin | Category: Plesk Management
You may see an “Unable to exec utility packagemng” error message while accessing the Plesk control panel. The error generally occurs after performing a Plesk control panel upgrade and the complete error message looks like follows:
Components::componentUpdate() failed: Unable to exec utility
packagemng: file does not exist or is not executable:
/usr/local/psa/admin/bin/packagemng 0: auth.php3:551
This is due to the “packagemng” file is symlinked to the “wrapper” file and the ‘wrapper’ file don’t have the executable permissions for it’s group user “psaadm”.
The permissions of ‘packagemng’ file are (symlink):
# ls -la /usr/local/psa/admin/bin/packagemng
lrwxrwxrwx 1 psaadm psaadm Jan 01 packagemng -> ../sbin/wrapper
In my case the permissions of wrapper file were ( there was no executable permission)
# ls -la /usr/local/psa/admin/sbin/wrapper
---s------ 1 root psaadm Jan 01 /usr/local/psa/admin/sbin/wrapper
The correct permissions of the wrapper files are ( —s–x— ) which can be set using the following command:
# chmod 4110 /usr/local/psa/admin/sbin/wrapper
so it should look like
---s--x--- 1 root psaadm 19760 Jan 01 05:20 wrapper
Once done, you should be able to access the Plesk control panel.
4110
April 9, 2011 | Posted by
admin | Category: Plesk Management
If you perform a Plesk upgrade, you may notice you are unable to unsuspend a domain from the Plesk control panel resulting in the following message:
Warning: The domain is still suspended for the following reason:
Domain is temporarily suspended for backing up or restoring.
Looking at the message, it appears that a backup process is running for the domain on the Plesk server but it is not, thus making things look complicated. In such a case, unsuspend the domain on the Plesk server from shell.
SSH to the server as root and execute:
# /usr/local/psa/bin/domain -u domain.tld -status enabled
This will un-suspend/enable the domain.
Sometimes a “Segmentation fault” message appears while unsuspending the domain via SSH. It indicates that the Plesk upgrade didn’t go through successfully and there is a problem with plesk binaries. You now need to install the Plesk base packages again from Plesk –> Updates, section.
Once the update is performed, reconfigure the domain:
# /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost \
--vhost-name=domain.tld
and enable it
# /usr/local/psa/bin/domain -u domain.tld -status enabled
This will un-suspend the domain and will leave you with a message “Object successfully enabled”.