LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Installing AXPS on Linux 2.6.9 Enterprise VPS Server (https://www.linuxquestions.org/questions/linux-server-73/installing-axps-on-linux-2-6-9-enterprise-vps-server-708877/)

grantg 03-03-2009 01:56 PM

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

datopdog 03-04-2009 03:00 AM

apxs is found in the httpd-devel package thats what you need to install.

grantg 03-04-2009 03:13 AM

Quote:

Originally Posted by datopdog (Post 3464299)
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

datopdog 03-04-2009 03:15 AM

Actually you do not need to download stuff you can just run

Code:

yum install mod_perl -y

grantg 03-04-2009 08:10 AM

Quote:

Originally Posted by datopdog (Post 3464312)
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

datopdog 03-04-2009 08:18 AM

Quote:

Originally Posted by grantg (Post 3464538)
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 ?

grantg 03-04-2009 08:46 AM

Quote:

Originally Posted by datopdog (Post 3464546)
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

datopdog 03-04-2009 08:48 AM

Code:

cat /etc/redhat-release
cat /etc/debian_version

Try those to check if it is redhat or debian based

grantg 03-04-2009 11:33 AM

Quote:

Originally Posted by datopdog (Post 3464587)
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

datopdog 03-05-2009 01:46 AM

Code:

apt-get install libapache-mod-perl

grantg 03-05-2009 06:33 AM

Quote:

Originally Posted by datopdog (Post 3465439)
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

datopdog 03-06-2009 01:53 AM

Yes it means it is installed you need to write your perl scripts and have them run under your apache

grantg 03-06-2009 02:42 AM

Quote:

Originally Posted by datopdog (Post 3466589)
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

datopdog 03-06-2009 03:34 AM

actually mod_perl is used to run perl scripts outside the cgi-bin in the normal web root.

grantg 03-06-2009 05:51 AM

Quote:

Originally Posted by datopdog (Post 3466661)
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


All times are GMT -5. The time now is 01:53 AM.