LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-03-2009, 01:56 PM   #1
grantg
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
Installing AXPS on Linux 2.6.9 Enterprise VPS Server


Hello.

I have purchased a VPS from WebFusion which runs Linux version "Linux 2.6.9-023stab048.4-enterprise"

I need to install mod_perl on the server but require AXPS to be installed first (apparently).

I also had a few other modules installed by a company so would like to have the installations tested to ensure the modules really were installed.


I am looking for somebody to either help me install AXPS and mod_perl on the VPS, or advise how I can install mod_perl - I am not 100% sure if I actually need AXPS - but I have been told it is required to install mod_perl.


I would really appreciate it if somebody with experience of installing modules on an Apache (Apache2) server could advise me on what to do.

Kind regards,
Grant
 
Old 03-04-2009, 03:00 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
apxs is found in the httpd-devel package thats what you need to install.
 
Old 03-04-2009, 03:13 AM   #3
grantg
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by datopdog View Post
apxs is found in the httpd-devel package thats what you need to install.
Thanks datopdog, I have downloaded the module but am unsure how to install the module - can anyone offer a module installation service?

Thanks
 
Old 03-04-2009, 03:15 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Actually you do not need to download stuff you can just run

Code:
yum install mod_perl -y
 
Old 03-04-2009, 08:10 AM   #5
grantg
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by datopdog View Post
Actually you do not need to download stuff you can just run

Code:
yum install mod_perl -y
Thanks for your assistance, it is much appreciated.

I have logged in as root to the server using Putty software.

After entering the username and password, I get a prompt:

root@lvps212-241-214-240:~#


I entered the command you said and I got the following error:

-bash: yum: command not found


All of the modules are stored in /.cpan/build/ - I have moved into the /build/ directory and typed:

install mod_perl-2.0.4

But I get the following error:

install: missing destination file operand after `mod_perl-2.0.4'. Try `install --help' for more information.


Any ideas?

Thanks,
Grant
 
Old 03-04-2009, 08:18 AM   #6
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Quote:
Originally Posted by grantg View Post
Thanks for your assistance, it is much appreciated.

I have logged in as root to the server using Putty software.

After entering the username and password, I get a prompt:

root@lvps212-241-214-240:~#


I entered the command you said and I got the following error:

-bash: yum: command not found


All of the modules are stored in /.cpan/build/ - I have moved into the /build/ directory and typed:

install mod_perl-2.0.4

But I get the following error:

install: missing destination file operand after `mod_perl-2.0.4'. Try `install --help' for more information.


Any ideas?

Thanks,
Grant
What distro are you using ? i thought you are using RHEL ?
 
Old 03-04-2009, 08:46 AM   #7
grantg
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by datopdog View Post
What distro are you using ? i thought you are using RHEL ?
I have no idea what I am using - how would I find this out?

Thanks,
Grant
 
Old 03-04-2009, 08:48 AM   #8
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Code:
cat /etc/redhat-release
cat /etc/debian_version
Try those to check if it is redhat or debian based
 
Old 03-04-2009, 11:33 AM   #9
grantg
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by datopdog View Post
Code:
cat /etc/redhat-release
cat /etc/debian_version
Try those to check if it is redhat or debian based
Hi there.

I just tried cat /etc/*release and got this:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=6.06
DISTRIB_CODENAME=dapper
DISTRIB_DESCRIPTION="Ubuntu 6.06.2 LTS"


Unfortunately that doesn't mean much to me as I am not familiar with linux.

What do you suggest is the best way forward?

Thanks again,
Grant
 
Old 03-05-2009, 01:46 AM   #10
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Code:
apt-get install libapache-mod-perl
 
Old 03-05-2009, 06:33 AM   #11
grantg
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by datopdog View Post
Code:
apt-get install libapache-mod-perl
root@lvpsserverip:~# apt-get install libapache-mod-perl
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
apache-common
Suggested packages:
apache apache-ssl apache-perl apache-dev libapache-mod-perl-doc
The following NEW packages will be installed:
apache-common libapache-mod-perl
0 upgraded, 2 newly installed, 0 to remove and 50 not upgraded.
Need to get 1326kB of archives.
After unpacking 4379kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 ftp://ftp.hosteurope.de dapper-security/universe apache-common 1.3.34-2ubu ntu0.1 [837kB]
Get:2 ftp://ftp.hosteurope.de dapper-security/universe libapache-mod-perl 1.29.0 .4-2ubuntu0.1 [489kB]
Fetched 1326kB in 0s (3079kB/s)
Preconfiguring packages ...
Selecting previously deselected package apache-common.
(Reading database ... 51008 files and directories currently installed.)
Unpacking apache-common (from .../apache-common_1.3.34-2ubuntu0.1_i386.deb) ...
Selecting previously deselected package libapache-mod-perl.
Unpacking libapache-mod-perl (from .../libapache-mod-perl_1.29.0.4-2ubuntu0.1_i3 86.deb) ...
Setting up apache-common (1.3.34-2ubuntu0.1) ...

Setting up libapache-mod-perl (1.29.0.4-2ubuntu0.1) ...



----------------------------------------

Does this mean mod_perl has installed successfully? Is there a way to 'test' the installation?

Many thanks,
Grant
 
Old 03-06-2009, 01:53 AM   #12
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Yes it means it is installed you need to write your perl scripts and have them run under your apache
 
Old 03-06-2009, 02:42 AM   #13
grantg
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by datopdog View Post
Yes it means it is installed you need to write your perl scripts and have them run under your apache
Hi, thanks alot

I only have one domain on my VPS, the perl scripts run in the cgi-bin folder - I assume this means they will then take advantage of the new modules? I was told to install a few modules which will increase the performance of the perl scripts which are in the cgi-bin folder.

Thanks again,
Grant
 
Old 03-06-2009, 03:34 AM   #14
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
actually mod_perl is used to run perl scripts outside the cgi-bin in the normal web root.
 
Old 03-06-2009, 05:51 AM   #15
grantg
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by datopdog View Post
actually mod_perl is used to run perl scripts outside the cgi-bin in the normal web root.
When I first read your post I was slightly confused - it turns out the full solution is by installing mod_perl and making edits to the httpd.conf file, which I have listed below, I have to add these lines to the httpd.conf file:

<IfModule mod_perl.c>
Alias /perl /var/www/perl/
<Directory /var/www/perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Directory>
</IfModule>

<Directory "/var/www/virtsrv/domain.com/cgi-bin">
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
Options ExecCGI -Indexes
</Directory>

However, my server isn't set up this way. 'var/www/perl' does not exist (there is no perl folder in the www folder?) and 'var/www/virtsrv/domain.com/cgi-bin' doesn't exist because my server is set up 'var/www'vhosts/domain.com/cgi-bin')

Where would 'perl' be installed, because I need to reference it in the httpd.conf file, but the paths I have been given do not match what I can see going through the server as the root user.


Thanks,
Grant
 
  


Reply

Tags
install, linux, modperl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing SUSE Linux Enterprise Server 10 on RAID 10 Array linux_linux Linux - Newbie 2 03-15-2008 08:52 PM
Trouble in Installing Redhat Linux Enterprise Server 4 AS on Acer Aspire 5004 Laptop sridhar2000 Linux - Laptop and Netbook 1 10-24-2006 04:38 PM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM
Installing postgresql in a VPS server - cannot find 'createlang' command jbsarma Linux - Newbie 2 08-18-2005 08:11 AM
installing Linux SERVER on a M$ enterprise network Avatar Linux - Networking 10 06-30-2003 12:06 AM


All times are GMT -5. The time now is 05:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration