Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd March 2006, 11:35
linuxuser1 linuxuser1 is offline
Member
 
Join Date: Oct 2005
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default Perl and cgi script installation

Dear all,

I am trying trying to install a cgi script that provides free e-mail on my debian
server. I need to install some perl modules to get this to work. I have already installed ISPConfig, mysql and phpMyAdmin on my server as described in perfect setup debian and this is working quite fine.

I have also already installed ActivePerl on the server. It installed in /opt/Perl.
Going through the setup documentation,"Install some Perl Modules needed by SpamAssassin (comes with ISPConfig)

Installation using the Perl Shell

Login to your command line as root and run the following command to start the Perl shell:

perl -MCPAN -e shell"
. It seems that Perl is already installed on my server

How i can

(1) install DBI
(2) install DBD-Mysql
(3) How do i set /opt/Perl as a path on the server. I understand i need to set the
system path for Perl so that it can be easily used by all users.
(4) How do i set Perl as path on the server
(5) What do i need to do so that my server can run cgi scripts for myself and for
others
(6) Can i upgrade my php4 to the latest release.

By the way am running the 2.02 of ISPConfig

Thanks for your kind help
Reply With Quote
Sponsored Links
  #2  
Old 22nd March 2006, 11:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,555
Thanks: 791
Thanked 4,977 Times in 3,899 Posts
Default

First, i recommend to uninstall active perl. ActivePerl is not needed at all because Debian has its own perl packages.

If you followed the howto, perl is already installed and configured on your server. Install the additional perl module with the apt-get command.

To install DBI and DBD-Mysql:

apt-get install libdbi-perl libdbd-mysql-perl

6) run:

apt-get update
apt-get -u upgrade

to update your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd March 2006, 12:23
linuxuser1 linuxuser1 is offline
Member
 
Join Date: Oct 2005
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Till,

Will do that.

One other thing I want to confirm is that is my server now configured to run cgi and pl scripts? Can my customers (when i have one ) - also run cgi scripts securely as it is. The server is installed as par the perfect set up documents.

2) What do you think I should do to make my Debian server more secure now that am going to be allowing scripts to be run on it.

I am newbie to linux so your ISPConfig and this forum has gone a long way to help me to learn a lot. So thank you and Falko so much.



Thanks as always.
Reply With Quote
  #4  
Old 22nd March 2006, 17:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by linuxuser1
One other thing I want to confirm is that is my server now configured to run cgi and pl scripts? Can my customers (when i have one ) - also run cgi scripts securely as it is. The server is installed as par the perfect set up documents.
Yes, if you followed the "Perfect Setup". Also have a look at the test files: http://www.howtoforge.com/forums/showthread.php?t=171

Quote:
Originally Posted by linuxuser1
2) What do you think I should do to make my Debian server more secure now that am going to be allowing scripts to be run on it.
You can use suExec if you're using /var/www as web root for web sites created with ISPConfig. To do so, you must enable suExec under Management -> Server -> Setting -> Web.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 27th March 2006, 10:19
linuxuser1 linuxuser1 is offline
Member
 
Join Date: Oct 2005
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Falko,

Thanks for your response.

I have tried to test with the test script at http://www.howtoforge.com/forums/showthread.php?t=171 and am getting 500 error - Internal Server Error!. You can see the url at http://www.alpharadiotv.org.uk/cgi-bin/hello_world.pl. I have enabled "Suexec" and I used this to build my server. - http://www.falkotimme.com/howtos/per...arge/index.php.

I have also tried this http://www.alpharadiotv.org.uk/cgi-b...Change_Setings. I also got Error 500.

The only thing I have done outside the setup documentation is that I installed - apt-get install libdbi-perl libdbd-mysql-perl

6) run:

apt-get update

Thanks for your kind help.
Reply With Quote
  #6  
Old 27th March 2006, 14:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you post the full path to the hello_world.pl script? Can you also post
Code:
ls -la /path/to/hello_world.pl
?
Might be a permissions problem. The script must be owned by the site admin and the web group.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!!! - Perl hunter13605 Programming/Scripts 1 5th March 2006 15:04
Ispconfig cgi hosting Mahir General 6 21st November 2005 15:40
Internal Server Error with CGI scripts? lola Programming/Scripts 2 21st April 2005 17:00


All times are GMT +2. The time now is 06:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.