Lunarpages Web Hosting Forum

Author Topic: Installing a Perl application from a script  (Read 1009 times)

Offline kc2

  • Newbie
  • *
  • Posts: 4
Installing a Perl application from a script
« on: May 22, 2003, 12:37:42 PM »
Hello, I want to try to install a perl application (Called "@mail" http://www.webbasedemail.com/)

I'm not very knowledgeable about perl, or server things so please be gentle on me, if this is a stupid question!

Given, we havent got shell access, I'd have to do it manually or try to run the installation script from ftp (is that possible?).  An excerpt from the installation documentation is below, showing the sorts of things the install script wants to do. My question is, can anybody think it there's any reason I shouldn't be able to get it going?


Quote

If you have difficulty running the install.pl script you can install @Mail manually. The steps required to complete the installation of @Mail are as follows:

Change the ownership of the @Mail directory (to the owner of the webserver; see below).
Configure your Webserver to execute @Mail (httpd.conf).
Configure the SMTP server (sendmail.cf).
Visit the @Mail WebAdmin to define @Mail's settings & preferences.

Changing the ownership of the @Mail directory:

Correct permissions must be set for @Mail to run on your server. Type the following (where 'username' is the owner of the web server):

root:/www/atmail# chown -R username /www/atmail

Configure your WebServer to execute @Mail

Your webserver must be configured to execute .pl files as scripts. Depending on the version of your web server, the following modifications will need to be made in either httpd.conf or srm.conf. Newer versions of Apache use httpd.conf. If your webserver is using Virtual Hosts, make these modifications only within the Virtual Host statement which represents your website. If you add the following lines outside the scope of your Virtual Host configuration, the changes will be made system wide. Check with your hosting provider if you are unsure.

# Allow .pl files to be executed as a perl script
AddHandler cgi-script .pl

<Directory "/www/atmail"> # Replace this with your @Mail directory
Options ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<Files ~ ".pm > # Deny files ending in .pm
order allow,deny
deny from all
</Files>

You must now restart your web server.


Failing that, do you think the administrator / SysOp / tech support people would be able to help me do it?