The following are frequently asked questions related to setting up you CGI scripts. CGI scripts can be written in a variety of languages including Perl, PHP and more. In this section we also cover how to setup a MySQL database.
CGI Scripts Enquiries:
- What are the CGI basics that I should know?
- What's the path to Perl, Sendmail, CGI-bin?
- How do I set up a new MySQL database?
- How do I maintain an existing database?
Click here to go back to the list of FAQs
What are the CGI basics that I should know?
1. Ensure to change the default transfer mode for FTP to ASCII.
2. Ensure to set permissions to 755 by using the chmod command in FTP.
3. Ensure the permissions of the script and the CGI-bin are set no higher than 755.
What's the path to Perl, Sendmail, CGI-bin?
1. Location/path to Perl - #!/usr/bin/perl or /usr/bin/perl
2. Location/path to Sendmail - /usr/sbin/sendmail or /usr/local/psa/qmail/bin/sendmail
3. Location/path to CGI-bin - /usr/local/psa/home/vhosts/your-name.com/cgi-bin
How do I set up a new MySQL database?
1. Log in to your control panel
2. Click on your domain name
3. Click on "Databases"
4. Enter desired database name (the database name has to be unique on the server)
5. Click on "Add"
6. Enter desired username
7. Click on "Add"
8. Enter desired password (always remember to set a secure password for the account, and never leave an account without password)
9. Click on "Update"
How do I maintain an existing database?
You can maintain your database(s) in an easy way using phpMyAdmin program accessible from the Control Panel
1. Log in to your control panel (https://www.YOURDOMAIN.com:8443)
2. Click on Home/Your Domain name
3. Click on "Databases"
4. Select the database that you want to change/update
5. Click on "PhpMyAdmin"

