UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Tutorials / How to?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-02-2007, 12:17
Junior Member
 
Join Date: Feb 2007
Posts: 15
Cool Perl Tips

CGI queries and their solutions

For some reasons I cannot execute and run my CGI/Perl script. Why do I get a 500 Error Page?

Follow the following steps:

1. Make sure the Perl path is set to /usr/bin/Perl
2. Make sure the .cgi/.pl file was uploaded to cgi-bin folder
3. Make sure the .cgi/.pl file was uploaded in ASCII mode.
4. Make sure to CHMOD the script to 755.

If this does not works contact your web hosting company 24×7 technical support.

I edit my CGI script, and then it no longer functions. Why?

Perl CGI scripts must be uploaded to your account via FTP as ASCII files to run properly. Also, all CGI hosting scripts must be executable. This requires setting the permissions on the file using your FTP hosting program and making sure the script is world executable (CHMOD).
If you are getting an “Internal Server Error” and you have verified the CGI script was uploaded as an ASCII file and it is executable, there may be a syntax error in the code. The easiest way to determine this is to telnet into your web website hosting account, go to the directory that contains the script (cd www/directory), and run the program from the prompt by typing in the name of the script. This will show the error in the program.
Why is it that my CGI script will not write to a file on the dedicated server?
All CGI scripts that are called from the web do not run with your account’s permission by default. This is for security reasons. The CGI scripts run as the user ‘nobody’, which is a fake username with no permissions. Because of this, any file or directory that you want a script to write to must be world writeable (CHMOD 777). This includes files such as .rdb, .dat, .txt etc.

What is mod_perl?

Mod-Perl is an add-on for the Apache web server software, which makes it possible to use the Perl language to add new features for the Apache server, and to increase the speed of Perl applications by as much as 30 times. In other words mod_perl is a perl interpreter which is built into the Apache web server. Mod_perl brings together Apache and Perl, two of the most powerful and mature technologies available to the online world today.
Mod_perl gives the Apache server the ability to execute Perl code directly without having to call a CGI which reduces the startup burden associated with running Perl scripts from the web server. It also allows variables to persist across multiple requests, and lets user authentication be extended to anything that can be written in Perl i.e authenticate web access against an SMB or RADIUS server without having to write an Apache module to do the job.

For CGI/PERL script issues

1. Upload all CGI/Perl files in the ‘cgi-bin’ directory, which is in the ‘public_html’ directory.2. Check Permissions for “cgi-bin” directory. (It should be 755)
3. Check Permissions for all the cgi/perl files. (It should be 755)
4. Make sure that files are uploaded in ASCII format. If uploaded through
File Manager then there is no such issue of upload file format.
5. Check the PERL interpreter path. It should be !#/usr/bin/perl
6. Check the path of sendmail (if used). It should be /usr/sbin/sendmail
For PHP issue :
1. If page is not getting loaded, make sure that the include path is correct in clients code or may be he is using fsockopen() function, which can cause problems.
2. If the issue is with PHP-MySQL, then you can confirm the database name, username and password that client is using in his configuration file. You can confirm that info with the SQL Server database section in Control Panel.

CPAN

CPAN stands for Comprehensive Perl Archive Network. It is a canonical location for Perl code and modules & a source for for knowledge, software and documentation for the Perl programming language.
Cpan plays an important role in providing modules & scripts which are not included in the Perl standard distribution.
Cpan Search:
CPAN Search is a search engine for the distributions, modules, docs, and ID’s on CPAN. It was conceived and built by Graham Barr as a way to make things easier to navigate. Originally named TUCS [ The Ultimate CPAN Search ] it was later named CPAN Search or Search DOT CPA .
Site: www. cpan.org

ImageMagick

ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that can be freely used, copied, modified and distributed. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or the features can be used from programs written in any programming language.
ImageMagick, version 6.2.9, is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. ImageMagick can be use to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Features:
Format conversion: convert an image from one format to another (e.g. PNG to JPEG).
Transform: resize, rotate, crop, flip or trim an image.
Transparency: render portions of an image invisible.
Draw: add shapes or text to an image.
Decorate: add a border or frame to an image.
Special effects: blur, sharpen, threshold, or tint an image.
Text & comments: insert descriptive or artistic text in an image.
Image identification: describe the format and attributes of an image.
Animation: create a GIF animation sequence from a group of images.
Composite: overlap one image over another.
Site: www. imagemagick.org

Python

A popular, object-oriented scripting language used for writing system utilities and Internet scripts. Python’s design is notably clean, elegant, and well thought through. It can used for different types of softwares development. Python offers a strong support for inregation with other languages and tools & comes with extensive standard libraries.
Python runs on Windows Servers, Linux Servers /Unix Servers, Mac OS X, OS/2, Amiga, Palm Handhelds, and ***** ****** phones. Python has also been ported to the Java and .NET virtual machines. Python is distributed under an OSI-approved open source license that makes it free to use, even for commercial products.
Site: www. python.org
Documentaion: www. python.org/doc

Goodluck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:15.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service