Helping you get the most out of DirectAdmin and your web site!
This section covers CGI scripts, program paths, viewing installed Perl modules, understanding permissions, PHP scripts, and accessing phpMyAdmin.
All CGI scripts must be placed in your cgi-bin directory. The cgi-bin folder is located in your public_html directory (e.g. public_html/cgi-bin). If you want to run CGI script in a subdomain, put the script the subdomain's cgi-bin directory.
To find more about directory structure click here.
When using FTP, it is very important to upload script files (e.g. .cgi and .pl) in ASCII mode. FTP clients will give you the option of uploading in ASCII, binary, or "auto." If "auto" is selected, then make sure .cgi and .pl are considered ASCII files by your FTP client. Scripts will not execute properly if they are uploaded in binary mode.
Be sure to follow the directions included with the CGI script.
To find more about uploading files to your server click here.
The following paths are commonly needed by scripts.
Important: If these paths don't work, it is possible that your host has installed your account on somewhere other than /home. Please contact them to get the correct paths.
From the main control panel menu click the "Advanced Tools" icon, then the "Installed Perl Modules" icon.
Picture below is a sample cutout of the perl modules list. If a CGI script requires a specific perl module, check with this list to confirm that the module is installed on the server.
File permissions define who can read, write, and execute files such as scripts. When the installation instructions ask you to CHMOD a file, you are being asked to set file permissions. File permissions can by modified by most popular FTP clients or through the control panel's built-in file manager.
Some common permission levels for files are:
Most scripts need to be set to 755. Please refer to the script's documentation for proper installation instructions.
To learn more about file permissions click here.
PHP scripts are fully supported on all servers running DirectAdmin Web Control Panel. PHP scripts may be placed and executed in any folder within your public_html directory. Please refer to the script's documentation for proper file permission and install procedures.
To access phpMyAdmin, sign into the control panel and then click on the "Extra Features" icon, followed by the "phpMyAdmin" link.
phpMyAdmin is a tool written in PHP that allows you to administrate your MySQL databases. You can execute SQL statements, work with fields (add, edit, delete), work with tables (create, alter, drop), create additional databases, and much more. Keep in mind that phpMyAdmin is designed for advanced users.
You can find more info how to use phpMyAdmin here.
Please contact your hosting company for more assistance, or visit the DirectAdmin support forum at http://forum.directadmin.com.