Perl - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/perl/ Dedicated Servers, Private Cloud & Colocation Mon, 18 Dec 2023 21:50:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 Steps to install Perl on a Linux dedicated server https://www.hivelocity.net/kb/steps-to-install-perl-on-a-linux-dedicated-server/ https://www.hivelocity.net/kb/steps-to-install-perl-on-a-linux-dedicated-server/#respond Wed, 30 Jan 2013 14:20:27 +0000 https://kb.hivelocity.net/?p=11101 Please refer the following steps: 1. Login to your server as root user. 2.Fire the following commands: wget https://layer1.cpanel.net/perl588installer.tar.gz tar -xvzf perl588installer.tar.gz cd perl588installer ./install You are done with installing Perl on your server.

The post Steps to install Perl on a Linux dedicated server appeared first on Hivelocity Hosting.

]]>
Please refer the following steps:

1. Login to your server as root user.

2.Fire the following commands:

wget https://layer1.cpanel.net/perl588installer.tar.gz
tar -xvzf perl588installer.tar.gz
cd perl588installer
./install

You are done with installing Perl on your server.

The post Steps to install Perl on a Linux dedicated server appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/steps-to-install-perl-on-a-linux-dedicated-server/feed/ 0
How to Re-install Perl on a FreeBSD cPanel server? https://www.hivelocity.net/kb/how-to-re-install-perl-on-a-freebsd-cpanel-server/ https://www.hivelocity.net/kb/how-to-re-install-perl-on-a-freebsd-cpanel-server/#respond Wed, 30 Jan 2013 14:01:09 +0000 https://kb.hivelocity.net/?p=11025 Reinstall perl using the following command : [root@server:~]# cd /usr/ports/lang/perl5 [root@server:/usr/ports/lang/perl5]# make install clean Above commands could be used If easyapache, upcp or any other cPanel scripts are giving perl error while executing them on a FreeBSD server.

The post How to Re-install Perl on a FreeBSD cPanel server? appeared first on Hivelocity Hosting.

]]>
Reinstall perl using the following command :

[root@server:~]# cd /usr/ports/lang/perl5
[root@server:/usr/ports/lang/perl5]# make install clean

Above commands could be used If easyapache, upcp or any other

cPanel scripts are giving perl error while executing them on a

FreeBSD server.

The post How to Re-install Perl on a FreeBSD cPanel server? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-re-install-perl-on-a-freebsd-cpanel-server/feed/ 0
Setup Remote Access Key https://www.hivelocity.net/kb/overview-dns-clustering-allows-you-to-keep-dns-records-synchronized-across-multiple-servers-steps-1-to-access-the-cluster-remote-access-menu-click-on-cluster-remote-access-on-the-mai/ https://www.hivelocity.net/kb/overview-dns-clustering-allows-you-to-keep-dns-records-synchronized-across-multiple-servers-steps-1-to-access-the-cluster-remote-access-menu-click-on-cluster-remote-access-on-the-mai/#respond Sun, 14 Nov 2010 07:20:18 +0000 https://kb.hivelocity.net/?p=2133 Overview A Remote Access Key is used for automatic account creation scripts, external billing software, and various other applications that need to call WebHost Manager to create, remove, or modify accounts. A Perl and a PHP module are both available for applications using those technologies. Steps 1 To access the Cluster / Remote Access Menu, …

Setup Remote Access Key Read More »

The post Setup Remote Access Key appeared first on Hivelocity Hosting.

]]>
Overview

A Remote Access Key is used for automatic account creation scripts, external billing software, and various other applications that need to call WebHost Manager to create, remove, or modify accounts. A Perl and a PHP module are both available for applications using those technologies.

Steps

1 To access the Cluster / Remote Access Menu, click on Cluster / Remote Access, on the main screen of your WebHost Manager interface.

2 Click on Setup Remote Access Key.

3 To generate a new key, click on Generate New Key. Otherwise, you can copy and paste the current key, if that is what you need.

The post Setup Remote Access Key appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/overview-dns-clustering-allows-you-to-keep-dns-records-synchronized-across-multiple-servers-steps-1-to-access-the-cluster-remote-access-menu-click-on-cluster-remote-access-on-the-mai/feed/ 0
Troubleshoot perl scripts https://www.hivelocity.net/kb/trying-to-troubleshoot-perl-scripts/ https://www.hivelocity.net/kb/trying-to-troubleshoot-perl-scripts/#respond Sat, 13 Nov 2010 21:35:34 +0000 https://kb.hivelocity.net/?p=1834 Solution edit perl / cgi script, at top of file … #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); then errors should be redirected to browser rather then getting a 500 error. ALSO, check if the script runs on the command line, perl -w ./scriptname.cgi and see if it gives you errors.  

The post Troubleshoot perl scripts appeared first on Hivelocity Hosting.

]]>
Solution

edit perl / cgi script, at top of file … #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); then errors should be redirected to browser rather then getting a 500 error. ALSO, check if the script runs on the command line, perl -w ./scriptname.cgi and see if it gives you errors.

 

The post Troubleshoot perl scripts appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/trying-to-troubleshoot-perl-scripts/feed/ 0
How can I install a Perl Module ? https://www.hivelocity.net/kb/how-can-i-install-a-perl-module/ https://www.hivelocity.net/kb/how-can-i-install-a-perl-module/#respond Sat, 13 Nov 2010 21:08:13 +0000 https://kb.hivelocity.net/?p=1797 SolutionOn a server with CPanel, you can log into the WHM and install it there. If that for some reason doesn’t work for you, you can log into the shell as root and install it via the command line. Once logged in, from any directory, type: echo "HTML::Template" | /usr/local/cpanel/whostmgr/bin/perlmod -i (in this case, the …

How can I install a Perl Module ? Read More »

The post How can I install a Perl Module ? appeared first on Hivelocity Hosting.

]]>
SolutionOn a server with CPanel, you can log into the WHM and install it there. If that for some reason doesn’t work for you, you can log into the shell as root and install it via the command line. Once logged in, from any directory, type: echo "HTML::Template" | /usr/local/cpanel/whostmgr/bin/perlmod -i (in this case, the module we want to install is HTML::Template).

The post How can I install a Perl Module ? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-can-i-install-a-perl-module/feed/ 0
What permissions needs to be configured for web directories? https://www.hivelocity.net/kb/what-folder-permissions-needs-to-be-configured-for-web-directories/ https://www.hivelocity.net/kb/what-folder-permissions-needs-to-be-configured-for-web-directories/#respond Sat, 13 Nov 2010 13:44:16 +0000 https://kb.hivelocity.net/?p=1536 Read and Execute is all you need for the install folders (you can use HCGroup in lieu of Everyone). For the web you may need Scripts and Executables for perl (pl) files – if there are compiled files and Scripts permission for php (already Scripts by default). The webadmin will let you know. NTFS permission …

What permissions needs to be configured for web directories? Read More »

The post What permissions needs to be configured for web directories? appeared first on Hivelocity Hosting.

]]>
Read and Execute is all you need for the install folders (you can use HCGroup in lieu of Everyone).

For the web you may need Scripts and Executables for perl (pl) files – if there are compiled files and Scripts permission for php (already Scripts by default). The webadmin will let you know. NTFS permission ought to be OK by default.

The post What permissions needs to be configured for web directories? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/what-folder-permissions-needs-to-be-configured-for-web-directories/feed/ 0
Install Perl Module https://www.hivelocity.net/kb/how-to-install-a-perl-module-2/ https://www.hivelocity.net/kb/how-to-install-a-perl-module-2/#respond Sat, 13 Nov 2010 12:44:20 +0000 https://kb.hivelocity.net/?p=1473 On a server with CPanel, you can log into the WHM and install it there. If that for some reason doesn’t work for you, you can log into the shell as root and install it via the command line. Once logged in, from any directory, type: echo "HTML::Template" | /usr/local/cpanel/whostmgr/bin/perlmod -i (in this case, the …

Install Perl Module Read More »

The post Install Perl Module appeared first on Hivelocity Hosting.

]]>
On a server with CPanel, you can log into the WHM and install it there. If that
for some reason doesn’t work for you, you can log into the shell as root and install
it via the command line.
Once logged in, from any directory, type:

echo "HTML::Template" | /usr/local/cpanel/whostmgr/bin/perlmod -i

(in this case, the module we want to install is HTML::Template).

On a RedHat server, you can install it with up2date if you know the name of the RPM. If you don’t know it you can run ‘up2date --showall | grep -i perl‘. Then select the RPM you want and install it via up2date.

If the module you want still isn’t present you can install it manually via CPAN. Note that these modules are completely unsupported. If you wish to procede with the installation you can run ‘perl -MCPAN -e shell’ and interactively install the module. For example if you wanted to install Time::HiRes you would type ‘install Time::HiRes’ on the CPAN prompt.

The post Install Perl Module appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-to-install-a-perl-module-2/feed/ 0
MRTG installation and configuration. https://www.hivelocity.net/kb/mrtg-installation-and-configuration/ https://www.hivelocity.net/kb/mrtg-installation-and-configuration/#comments Sat, 13 Nov 2010 10:34:01 +0000 https://kb.hivelocity.net/?p=1188 Standardized Procedure for MRTG Installation on Windows Servers: 1. Download the MRTG Bundle file on the server from the following URL: https://www.openinnovations.com/mrtgbundle.html 2. Check if the Perl Installation on the server. Basically the Bundle install above comes with its own Perl install and it doesn’t interfere with the ActiveState Perl of Ensim Perl on the …

MRTG installation and configuration. Read More »

The post MRTG installation and configuration. appeared first on Hivelocity Hosting.

]]>
Standardized Procedure for MRTG Installation on Windows Servers:

1. Download the MRTG Bundle file on the server from the following URL: https://www.openinnovations.com/mrtgbundle.html

2. Check if the Perl Installation on the server. Basically the Bundle install above comes with its own Perl install and it doesn’t interfere with the ActiveState Perl of Ensim Perl on the server. But you may need perl installed on the server anyway (especially if this is a plain server.). If you are planning to install a control panel on the server, recommended policy is to first do the CP install and then take MRTG as the last install in your group of installations on the server.

3. Install SNMP services on the server. SNMP can be installed by opening add-remove programs, add-remove windows components, Highlight Monitoring and management Tools, Detail, Enable SNMP and click ok. Remember to have the windows server cd or I386 folder handy.

4. Open services and go to properties of SNMP service. Click on security, enable send authentication trap. Accepted Community Names– click ADD–public–read only mode–add Click on Accept SNMP packets from these hosts.. click add- localhost as well as the main IP of the server and any internal Ip that the server has (in case of two nic) such as 192.168.1.8. click ok and close the property sheet of the service and restart the service.

6. Unpack the downloaded file MRTG_Bundle_v1.0.exe. While unpacking, it will prompt for the path. Remember to always specify path as c:\ as the MRTG config files and binaries built into the package look for the path c:\mrtg. So if you unpacked to D:. the folder would be d:\mrtg and the binaries and config would throw errors.

7. Decide on how you want to access the MRTG web part. The bundled install above comes with its own Apache module. So if the default install is selected, the Apache will run as a separate web service on 8080 and mrtg can be accessed as https://IP:8080/mrtg. However, for ensim and plesk servers, another Apache service can be damaging as they have their own Apache for accessing Control Panel and there may be conflicts.

Recommendation: Choose the modified install method below so that we completely remove Apache installation and execution with MRTG. So we access MRTG through IIS itself. Safer, easier and hassle free.

a) go into c:\mrtg and edit install.bat
b) edit the line that says c:\mrtg\bin\instsrv Apache c:\mrtg\bin\srvany.exe
c) remove the lines which mention Apache, leave the rest as it is.
d) Copy the crontab file from c:\mrtg\bin to c:\windows\system32\ folder (this is win2k3. for win2k use c:\winnt\system32\).
e) Decide where you want to place the MRTG graphs and archives (accessible thru web). Since this may come to be a very large sized folder after a few months of operation, you should place it or create it on a drive with a sufficient amount of free space. If you decide that its needed to run from d:\mrtg\wwwroot, then there are some more editing to be carried out in the install.bat file.
f) Find the line that says workdir: c:\mrtg\wwwroot in the install.bat and change the path to D:\mrtg\wwwroot (create the folder before hand though). Change all the entries in the file that says the old wwwroot on c: to point to d: otherwise the graphs aren’t going to show. You should see 4 entries of the old path there. And take care to maintain the forward or backward slashes as the case may be.

8. Now, run c:\mrtg\install.bat from command prompt so that you can view all the error messages if any.

9. Open IIS, create a Virtual Directory under the default website pointing to D:\mrtg\wwwroot. (Assuming that Step 7.e.11 has been implemented, otherwise its c:\mrtg\wwwroot).

10. Open Windows services, and stop SNMP, MRTG, CRON services. Then start SNMP, MRTG and CRON again.

That is it you have a working MRTG available. You should now be able to view it at https://IP_of_Server/MRTG and in a couple of hours, you can find it populated properly.

The post MRTG installation and configuration. appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/mrtg-installation-and-configuration/feed/ 1
Install a Perl Module https://www.hivelocity.net/kb/install-a-perl-module/ https://www.hivelocity.net/kb/install-a-perl-module/#respond Wed, 10 Nov 2010 00:22:44 +0000 https://kb.hivelocity.net/?p=752 On a server with CPanel, you can log into the WHM and install it there. If for some reason doesn’t work for you, you can log into the shell as root and install it via the command line. Once logged in, from any directory, type: echo "HTML::Template" | /usr/local/cpanel/whostmgr/bin/perlmod -i (in this case, the module …

Install a Perl Module Read More »

The post Install a Perl Module appeared first on Hivelocity Hosting.

]]>
On a server with CPanel, you can log into the WHM and install it there. If for some reason doesn’t work for you, you can log into the shell as root and install it via the command line. Once logged in, from any directory, type:

echo "HTML::Template" | /usr/local/cpanel/whostmgr/bin/perlmod -i

(in this case, the module we want to install is HTML::Template).

On a RedHat server, you can install it with up2date if you know the name of the RPM. If you don’t know it you can run
up2date --showall | grep -i perl

Then select the RPM you want and install it via up2date.

If the module you want still isn’t present you can install it manually via CPAN. Note that these modules are completely unsupported. If you wish to procede with the installation you can interactively install the module by running

perl -MCPAN -e shell

For example if you wanted to install Time::HiRes you would type
install Time::HiRes
on the CPAN prompt.

The post Install a Perl Module appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/install-a-perl-module/feed/ 0
Manage the ‘qmail’ message queue using qmHandle https://www.hivelocity.net/kb/how-to-manage-the-qmail-message-queue-using-qmhandle/ Tue, 09 Nov 2010 14:07:19 +0000 https://kb.hivelocity.net/?p=657 Solution qmHandle, a perl script which gives you greater functionality – allows you to view and manage the ‘qmail’ message queue. It can be install by excuting the following commands cd /usr/bin wget -O – “https://easynews.dl.sourceforge.net/sourceforge/qmhandle/qmhandle-1.2.0.tar.gz” | tar xzf Following commands are useful to manage the queue # List emails by subject wise: qmHandle -l …

Manage the ‘qmail’ message queue using qmHandle Read More »

The post Manage the ‘qmail’ message queue using qmHandle appeared first on Hivelocity Hosting.

]]>
Solution

qmHandle, a perl script which gives you greater functionality – allows you to view and manage the ‘qmail’ message queue.

It can be install by excuting the following commands

cd /usr/bin

wget -O – “https://easynews.dl.sourceforge.net/sourceforge/qmhandle/qmhandle-1.2.0.tar.gz” | tar xzf

Following commands are useful to manage the queue

# List emails by subject wise:

qmHandle -l |awk ‘/Subject/ {print}’|sort | more

#qmHandle -tX ‘string’ ( delete all messages with matching headers, where string to match and X specifies:

‘f’ : Who the message is from,

‘t’ : Who the message is to; or,

‘s’ : What the message’s subject is

#qmHandle -M ( delete all msgs in the queue from MAILER-DAEMON@hostname)

# Forcefully send emails.
qmHandle -a

# List message queues
qmHandle -l

# delete all messages in the queue
qmHandle -D

# list local message queue
qmHandle -L

# list remote message queue
qmHandle -R

# display message number N
qmHandle -mN

# delete message number N
qmHandle -dN

# delete all messages that contain text as Subject
qmHandle -Stext

# delete all messages that contain text as From email address
qmHandle -Ftext

# delete all messages that contain text as To email address
qmHandle -Ttext

The post Manage the ‘qmail’ message queue using qmHandle appeared first on Hivelocity Hosting.

]]>
Basics of installing CGI & Perl scripts https://www.hivelocity.net/kb/what-are-the-basics-of-installing-cgi-perl-scripts/ https://www.hivelocity.net/kb/what-are-the-basics-of-installing-cgi-perl-scripts/#respond Tue, 09 Nov 2010 11:03:48 +0000 https://kb.hivelocity.net/?p=545 1) Be sure the file permissions are set correctly on the cgi that you are trying to run start with 755. 2) Always upload and download a cgi in ASCII transfer mode.

The post Basics of installing CGI & Perl scripts appeared first on Hivelocity Hosting.

]]>
1) Be sure the file permissions are set correctly on the cgi that you are trying to run start with 755.

2) Always upload and download a cgi in ASCII transfer mode.

The post Basics of installing CGI & Perl scripts appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/what-are-the-basics-of-installing-cgi-perl-scripts/feed/ 0