共有サーバー VPS(仮想専用サーバー) VPS windows 専用サーバー
共有サーバー
s

Using TsukaeruNet Shared Server Plan


s s s
s
s
Setting CGI in Shared Server

img
1. Setting .htaccess

Create .htaccess in your httpdocs directory to be able to use CGI in your server root with other scripts.

Options +ExecCGI
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
  • Check that file you created is .htaccess, NOT .htaccess.txt
  • Check that the file is plain text, NOT rich text.
  • If your server already has a .htaccess, create a backup and add rules above.



img
2. Use FTP to upload .htaccess

FFFTP is available in Windows XP, ME, 98 as FTP Client. For Linux or Mac OSX user, use Filezilla or any FTP client you like. Click the FFFTP icon and connect to your server.
お申し込み



img
3. Find httpdocs
Click httpdocs for normal http protocol data

img
4. Create folder for CGI in httpdocs
In your httpdocs, create folder with right click > create new folder.


img
5. Give a name for your CGI folder
You can use any name you like but we suggest you name it something easy to understand like [ cgi ]. Do not use cgi-bin as the name.


img
6. Move to the folder created
Double click the folder you just created.

img
7. Uploading CGI scripts
Drag and drop your CGI scripts into your FTP client window.

img

8. Setting Permission 1

Right click on files to set the right permission.



img

9. Setting Permission 2

Double check the files and folders permission. Consult the developer for the right settings.


img
10. Uploading .htaccess

Change upload mode to ASCII mode and upload it to your server. If you use different name, change it to .htaccess with right click > change file name.


img
11. Check your CGI

Check your scripts from web browser. If you find errors, consult the developer or use our premium support to fix it.

Common Problems Found in CGI
img
Download prompt for CGI files or viewing it as text
There's something wrong with your .htaccess. Try to reupload it in ASCII mode.
  • Check that the filename is .htaccess
  • Check the file content.
  • Reupload in ASCII mode.
  • Check that the file is created as text, not in binary.


img
Check the file path
Double check your scripts path. When you use apache's mode_rewrite the path will be changed as in your settings.

img
Error Internal Server Error(500)
Possible reasons:
  • Wrong perl path. Check your scripts for perl's path. We use「#!/usr/bin/perl
  • Coding error. Check your scripts for coding error.
  • File Permission and group error. Check the file permission and file's owner.
  • Uploaded in binary mode. Reupload your scripts in text mode.

Login to your CP. Go to System > Domain Name > Log Manager to view details on your errors to give you hints how to fix it.
log
Check our users forum or use our premium support to fix your problems.