icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » CGI: Uploading Perl Scripts

Shared Hosting Questions about your shared hosting account.

Closed Thread
 
LinkBack Thread Tools Search this Thread
Old October 3rd, 2003, 12:13 AM   #1 (permalink)
Marketing Maven
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
To install your Perl scripts, follow these steps:



Open the script files with an editor such as Notepad or BBEdit and make sure that the server paths are correctly entered (See Server Paths below).

Upload the script files to your server in ASCII mode. The script will NOT work if you upload the files in BINARY mode. You need to place the script files in the public_html sub-directory named "cgi-bin". Remember, ASCII!!

Change the permissions for your script files. Most scripts require that you make them executable (CHMOD 755). Many FTP applications allow you to change a file to executable by right-clicking the file on the remote system and clicking CHMOD (Refer to the readme file that came with the script for more information on CHMOD settings.)
You can use File Manager in the CPanel to change the permissions of a file as well if you think your FTP program may not be doing it correctly.


Server Paths:


Path to Perl:
/usr/bin/perl




Path to PHP:
/usr/bin/php




Path to Sendmail:
/usr/sbin/sendmail




Path to Date:
/bin/date




Full path to your domain:
/home/yourusername/public_html
__________________
Follow Surpass on Twitter and Facebook
Check out the Surpass Blog



Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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