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 |
apxs is found in the httpd-devel package thats what you need to install.
|
Quote:
Thanks |
Actually you do not need to download stuff you can just run
Code:
yum install mod_perl -y |
Quote:
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 |
Quote:
|
Quote:
Thanks, Grant |
Code:
cat /etc/redhat-release |
Quote:
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 |
Code:
apt-get install libapache-mod-perl |
Quote:
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 |
Yes it means it is installed you need to write your perl scripts and have them run under your apache
|
Quote:
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 |
actually mod_perl is used to run perl scripts outside the cgi-bin in the normal web root.
|
Quote:
<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. |