LiveZilla Live Help

Knowledgebase

Can you help me with a Step by Step cgi-script Configuration Guide?

Steps to ensure scripts run on Easyspace servers (The path to perl 5.004 on easyspace servers is :/bin/perl )

Software you will need
An FTP program will need to be used to upload your files and change permissions. We recommend the use of WS_FTP which can be obtained as a free evaluation from Ipswitch

Uploading the cgi scripts
The cgi-scripts will need to be uploaded to the cgi-bin directory in your home directory. If this directory is not present it can be created using your FTP software. When uploading the files ensure that they are transferred in UNIX ASCII mode rather than Binary mode.

Setting the script permissions
The permissions will need to be set on these scripts to allow them to be executed on the server. Using WS_FTP this can be done by right clicking on the file and selecting the CHMOD UNIX option. The script will need to have execute checked for all groups (CHMOD 755)

Setting the path to perl
Your scripts may not run correctly yet, this will be because the path to perl on our servers has not been specified in the script.
The path to perl 5.004 on Easyspace servers is :
/bin/perl
so the first line of all perl scripts will look like
#!/bin/perl
The script can be edited on the server using WS_FTP by right clicking on the file and selecting the edit option.

Using sendmail
If the script you are uploading needs to send emails from the server you will need to specify the location of the mail program. We do not supply direct sendmail access for the security of all our customers but our easymail service emulates sendmail in most respects.
The location of easymail should be specified as:
/bin/easymail
or
|/bin/easymail
if the | is not used later in the script.

This often needs to be set as the $mailprog in many formmail scripts.

The easymail program, accepts only the -t and -f options that sendmail accepts, all other options have been deactivated. Below is an example on how you can call the easymail program from your own scripts.

open( EZMAIL, "|/bin/easymail -t" ) or return 1;
print EZMAIL "From: from@easyspace.com To: to@easyspace.com ";
print EZMAIL "Subject: This is a test message ";
print EZMAIL "Cc: cc@easyspace.com, cc1@easyspace.com, cc2@easyspace.com ";
print EZMAIL "Bcc: bcc@easyspace.com, bcc1@easyspace.com,bcc2@easyspace.com ";
print EZMAIL "X-Priority: 1 ";
print EZMAIL "Reply-To: reply@easyspace.com ";
print EZMAIL "Organization: Easyspace Ltd. ";
print EZMAIL " This is a test message, to show how you can use the easymail script ";
print EZMAIL " . ";
close( EZMAIL );

Form mail
A sample form and cgi script can be downloaded from our faq section at
Sample formmail script
This will not require any modifications to run on Easyspace webservers.

Setting the absolute server path to your files
If your cgi scripts require the absolute path to your website files this will need to be specified as :
/www.yourdomainname.com/
or
/usr/local/customer/virtualfp/www.yourdomainname.com/
It is very important that the path begins with a /

If you still receive error messages please check through the steps above which will solve 99% of problems. If you continue to receive error messages please contact support with as much information as possible including script location/URL and html pages which refer to the relevant script



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
PHP and Formmail (Views: 408)
Perl (Views: 288)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Search



We cater all kinds of hosting needs from individual Web Hosting, Virtual Server Hosting to Dedicated Servers for individuals, medium scale and corporate entrepreneurs. Econs is also offering remote server management services and hosting consultancy to other hosting service providers and ISPs in Pakistan and different countries.

Website designing and development
Now a days almost no business can survive and perform well without a good looking profiessional website. If you are spending a lot on marketing of your business but donot have a proper professional website you are bound to get losses. For this reason Econs provides for its clients not only the hosting facility but also the facility of professional website deisgning and development. Econs is a leading web design and development company not only in pakistan but all across the world. During the past one year Econs has completed and delivered around 500 web deisgning/development projects. With Econs you can be sure to get best quality work done within less time. We mostly use php/mysql combination for website development. So no matter if you need a shopping cart, blog, or any other kind of static or dynamic websites developled for you, Econs is the right place for you.

Search Engine Optimization
As an Internet marketing strategy, SEO considers how search engines work and what people search for. Optimizing a website primarily involves editing its content and HTML coding to both increase its relevance to specific keywords and to remove barriers to the indexing activities of search engines. Sometimes a site's structure (the relationships between its content) must be altered too. Because of this it is, from a client's perspective, always better to incorporate Search Engine Optimization when a website is being developed than to try and retroactively apply it. To run a successfull website you need good Search Engine Optimisation (S.E.O). With good SEO you can reduce your marketing expenditure to half or even lower. We also provide this service to our clients with great success.

Domain registration
We provide domain registration service to our client on very low rates which are competitive and economical. We also provide single domain purchase facility as well as bulk purchasing.

Merchants Accounts & Credit cards processing
Econs can help you acquire your own merchant account and with which will be able to process merchant accounts online. Our solutions range from as low as $200 up to $2000 which include US company incorporation services along with your own bank account [ Not available for all countries ].

Corporate mail solutions
Electronic mail is an excellent means of communication in the 21st century. Customers can host their e-mail servers on our infrastructure, managed around the year, round the clock with unsurpassed quality, scalability and reliability. Easy POP3 access, using any e-mail client to send/receive emails from any location in the world.

Co-location of mail servers
We also provide the facility of co-location to our clients. Customer can host his mail server with us and forget about its running/maintenance and backup support. Econs has the capability to provide you uninterrupted service 24 hours a day, 7 days a week.

Shared & Dedicated web/mail servers
We provide for all Large and medium sized organizations who market their brands nationally and internationally and needs to display their products & information in any virtual store around the world web. It is ideally suitable for those organizations that need to spend their resources towards more productive assignments, instead of managing their web/mail & e-commerce related services that requires constant and secure management round the clock, and they can utilize their human resources and finances to other more productive tasks.