Programming
& Database FAQ:
What version
of FrontPage do you support?
What is the server path for Sendmail?
What is the server path for Perl?
What is the server path for Python?
Does Atlas Hosting allow Cron jobs?
How do I setup my own 404 page?
How do I use CGI?
Where should I place CGI scripts?
Do you provide any database solutions?
How do I create a database?
How do I use MySQL?
How do I use PHP?
What is Secure Shell Access (SSH)?
How do I password protect directories
( .htaccess)?
How can I secure my website content?
What version of FrontPage does Atlas Hosting support?
We support Frontpage 2002. If you
would like your account to be set up to use Frontpage
Extensions, simply login to your control panel and request
it under the website options area. You can also email
us to request it as well.
What is the server path for
Sendmail?
/usr/sbin/sendmail
What is the server path for
Perl?
/usr/bin/perl
What is the server path for
Python?
/usr/local/bin/python
Does Atlas Hosting allow Cron
jobs?
Yes, Atlas Hosting permits Cron jobs.
However, we do reserve the right to shut down any Cron
jobs that place too much load on our servers. Cron job
functionality is automatically activated for every account
upon signup.
How do I setup my own 404 page?
An "error404.html" page
is located in the root of your /htdocs directory when
your account is configured. You can edit this page at
your convenience.
How do I use CGI?
In order to execute your CGI scripts
or programs, they must have the correct permissions.
To make something executable, it must
have a bitmask of 750, or rwxr-x---, or "Owner:Read,Write,Execute;
Group:Read,Execute; Other:No Access" Your FTP
client software should have an option to use chmod
or set file permissions, and within those options,
you should recognize one of the above conventions
You may also need to customize your
scripts for our particular environment. Here are some
common items used in CGI:
Physical path to your cgi-bin directory:
/www/www.yourdomainname/cgi-bin/
Path to Perl: /usr/bin/perl
Path to Sendmail: /usr/sbin/sendmail
Path to MySQL: /usr/local/bin/mysql
If we determine your script to have
a security vulnerability, or it is consuming large amounts
of resources on the server, the CGI will be disabled
and we will notify you of our actions and possible solutions
immediately.
Where should I place CGI scripts?
If you have a custom CGI script that
you need to use, simply upload it to your cgi-bin.
How do I use PHP?
Your PHP files must be named with
an extension of ".php". Please refer to http://www.php.net/
for documentation and tutorials on how to use PHP.
Does Atlas Hosting provide any
database solutions?
Yes, Atlas Hosting supports MySQL
and it can be easily setup by selecting the MySQL check
box in the "Site Options" area of your account
control panel.
How do I create a database?
Once you have selected the MYSQL
check box in the "Site Options" area of your
account control panel, we will automatically create
the database for you. You will receive an email from
support when this has been setup.
How do I use MySQL?
You may request a MySQL database
created for your use. Go to your Control Panel and select
Options, then check the MySQL box. You will receive
a confirmation email with the necessary information
to login to your database. Please see http://www.mysql.com/
for documentation about using MySQL.
What is Secure Shell
Access (SSH)?
We require using SSH, instead of
telnet or rlogin, to gain shell access to our servers.
Normally, when using telnet or rlogin, data is sent
over the network in a clear, un-encrypted form. Network
sniffers anywhere in between the client and server can
steal your user/password information or data transferred
in your session. OpenSSH offers a variety of authentication
and encryption methods to prevent this from happening.
Encryption is started before authentication, and no
passwords or other information is transmitted in the
clear. Encryption is also used to protect against spoofed
packets.
When you login with your SSH client, use the following
settings:
Remote Host Name: www.YOURDOMAIN
User Name: (same as your FTP user name)
Password: (same as your FTP password)
SSH is disabled by default for all accounts. Please
use our support contact form
to request activation.
How do I password protect directories ( .htaccess)?
You may use htaccess to provide access
control for your website or any subdirectory within.
How to password protect a directory
of your website:
1) Create a text file called ".htaccess"
with the following contents:
AuthUserFile /www/www.YOURDOMAIN/etc/htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Area"
AuthType Basic
require valid-user
2) Now you need to generate a password
file called "htpasswd":
You can generate the file in an SSH session directly
on the server, by typing the following at the command
prompt:
htpasswd -bc /www/www.YOURDOMAIN/etc/htpasswd USERNAME
PASSWORD
How can I secure my website content?
We've done our best to ensure the security of your information
and content. There are some things you should also do
to protect your files.
Passwords- Your password should be at
least 6 characters and include a random mix of upper-case,
lower-case, as well as numerals and special characters
(such as &, ^, $, etc). You should never use a
password based on a word that can be found in the
dictionary, they may be guessed by a cracker.
File Permissions- The following table
will give you the correct file permissions depending
on the type of file:
| Use this
mode: |
For: |
| 644 or
rw-r--r-- |
HTML files, images,
static content |
| 750 or
rwxr-x--- |
CGI scripts and programs |
| 640 or
rw-r----- |
Data files that are
accessed by the CGI and not directly by the web
server |
Directory Structure- The following table
shows your default directories and their intended
purpose
| Directory name: |
Purpose: |
| /cgi-bin |
CGI scripts go here |
| /htdocs |
Web content goes here (HTML files,
images, etc) |
| /etc |
CGI configuration files, password
files for .htaccess |
|