
VN Business Webhosting FAQ
*Please note that this section is only for VN Business Webhosting Accounts,
and not for personal/commercial (www.voicenet.com/~username) dialup accounts.
Click here to contact Voicenet for any additional help.
How
do I use SSL(https) on my website?
You can fill out the SSL
form in VAM to obtain
a Geotrust certificate containing your private encryption
data. If you opt purchase your own private certificate, configuration
and availability information will be emailed to you as stated
on the SSL certificate order form. You can also contact Voicenet`s sales
department at 800.835.5710 to inquire about the current pricing and availability.
How
do I setup a DSN or DSN-less database connection?
Database
connectivity is very similar using a dsn and a dsn-less
connection. Two main differences between these connections
are 1.) a system dsn prevents the need to include the database
server name and the database username/password in the connection
string within your scripts. This can be deemed as an additional
security measure in the rare event someone may have gained
access to the source code of your ASP files/apps. 2.) a
system dsn has been noted on many asp development sites
as a 'Fast Code Tip', meaning access time using a system
dsn to connect to a database is faster.
Provided below are a few samples using a system dsn and
a dsn-less connection. If you need a system dsn setup for
your website simply fill out the ODBC form in VAM.
Access
ODBC Driver via DSN
conn.Open "PROVIDER=MSDASQL;" & _
"DSN=OLE_DB_NWind_Jet;UID=admin;PWD=;"
Oracle
ODBC Driver via DSN
conn.Open "PROVIDER=MSDASQL;" & _
"DSN=dseOracle;UID=demo;PWD=demo;"
SQL
Server ODBC Driver via DSN
conn.Open "PROVIDER=MSDASQL;" & _
"DSN=LocalServer;DATABASE=pubs;UID=sa;PWD=;"
Access
ODBC Driver via DSN-Less
conn.Open "PROVIDER=MSDASQL;DBQ=D:\web\userdir\NWind.mdb;"
& _
"DRIVER={Microsoft Access Driver (*.mdb)};UID=admin;PWD=;"
Oracle
ODBC Driver via DSN-Less
conn.Open "PROVIDER=MSDASQL;SERVER=MyOracleServer;" & _
"DRIVER={Microsoft ODBC for Oracle};UID=demo;PWD=demo;"
SQL
Server ODBC Driver via DSN-Less
conn.Open "PROVIDER=MSDASQL;DRIVER={SQL Server};" & _
"SERVER=MySQLServer;DATABASE=pubs;UID=sa;PWD=;"
What
is the full path for my website directory?
For
a Windows NT/2000 hosted website, the homedir follows this syntax:
D:\web\<username>\
Websites hosted on a Linux webserver contain the following
syntax:
/home/webusers/<firstletterofdomain>/<firsttwolettersofdomain>/<domainname>/htdocs
Websites hosted on a UNIX webserver contain the following
syntax:
/usr/local/etc/httpd/htdocs/<domainname>/
<username> = the username used to ftp to your website
<domainname> = your fully qualified domain name without
the www. and .com|net|org etc.
How
do I send email using forms on my website?
There
a plenty of ways to send email using a web-based form. We'll
cover three of the simplest ways; standard formmail script,
FrontPage's form template and CDONTS.
1.) You are provided with a standard formmail script when
your website is setup. This script, formmail.pl, resides
within the /cgi-bin directory of your website. Click here
to read the complete documentation on the formmail configuration.
To utilize this script, simply add the following form tag
in your webpages:
<form method=POST action="/cgi-bin/formmail.pl">
... <options> ...
</form>
Note:
If you experience difficulty receiving emails from the formmail
script be sure the temp directory specified in your formmail
script is set for a writeable directory. The line of code
in the script may look like:
$tempdir = "d:/web/<username>\_private";
change this to look like:
$tempdir = 'd:/web/<username>/_vti_txt';
OR
$tempdir = 'd:/web/<username>/_vti_log';
Formmail Variables: |
|
Unix |
Windows |
| SendMail
|
/usr/lib/sendmail |
c:/winnt/system32/blat.exe |
| Perl
Path |
/usr/local/bin/perl |
not needed for .pl,.plx,.cgi files |
2.) Front Page provides form templates to create webpages
with forms. To create a form to send email using FP:
- Click
FILE, NEW, PAGE view
image
- Select
Feedback Form, click OK view
image
- Right-click
on the form, click Form Properties view
image
- Enter
the email address, click OK view
image
Note: If you intend on saving form results to a file,
be sure to specify a directory with WRITE permissions
as described here. Otherwise leave
the Filename field empty.
- You
can also specify additional settings in the Form Properties
window by clicking on Options or Advanced.
- Save
the file and test it
3.) Another
option to send email via a webform is to use CDONTS in your
asp code. An advantage of using CDONTS is, you don't need
Frontpage, you don't need formmail.pl and it's more reliable
than the other methods mentioned above. The best way to learn
about CDONTS is to read Microsoft's documentation on using
the CDONTS.NewMail
Object. Provided below is a simple code snippet to use CDONTS:
VBScript
Set myCDO = CreateObject("CDONTS.NewMail")
myCDO.From = "youremail@yourdomain.com"
myCDO.To = "recipient@somedomain.com"
myCDO.Subject = "Test using CDONTS"
myCDO.Body = "This is a test sending email using CDONTS"
myCDO.Send
.........
Set myCDO = CreateObject("CDONTS.NewMail")
myCDO.Send "youremail@yourdomain.com", "recipient@somedomain.com", _
"Hello", "I sent this using CDONTS"
PerlScript
$mail = $Server->CreateObject("CDONTS.NewMail");
$mail->{From} = 'youremail@yourdomain.com';
$mail->{To} = 'recipient@somedomain.com';
$mail->{Subject} = 'Test using CDONTS';
$mail->{Body} = 'This is a test sending email using CDONTS';
$mail->{Send};
How do I put a counter on my website?
Linux hosted websites use the following syntax:
<img src="http://linux-counter.voicenet.com/cgi-bin/Count.cgi?df=domain-x.dat">
<domain> = your domain name without the www and .com|net|org
<x> = the number of your counter, you may use many separate counters if you wish to
---
Windows hosted
websites use the following syntax:
<img src="http://count.voicenet.com/cgi-bin/Count.exe?df=domain-x.dat">
<domain> = your domain name without the www and .com|net|org
<x> = the number of your counter, you may use many separate counters if you wish to
Click here
for more information on the NT counter
Click here
for more info on the Linux counter
I need 'write' access to my website
If
you are receiving errors in the webbrowser relating to permissions
or write access when running scripts within your website,
follow these steps:
On Unix you can enable this simply by changing the permissions
on the directory or file you need update to: rw-rw-rw
On Windows NT/2000, front page extension based webs contain the following
directories which allow access to updating files/databases:
/_vti_pvt
/_vti_log
/_vti_txt
Depending on how your site is designed, the directory /_private
may also contain write permissions. Put your files/databases
in these directories and specify these directories within
your scripts, ie. D:\web\username\_vti_txt
Note: [1]Only the updatable files should be placed within
these directories. You can keep the script/executable files
anywhere in your site. [2]Special directory permissions
are not provided due to the defaults already provided by
the front page extensions, additional access configurations
are not necessary. Click here
for a complete list of FrontPage specific directories.
Windows NT/2000
Directory Permissions
Here
are the basic directory permissions for a typical webuser
preset on a new Windows NT/2000 hosted website.
|
/ |
READ/SCRIPT |
| _private |
Frontpage
specific. |
| _vti_cnf |
Frontpage
specific. |
| _vti_log |
Frontpage
specific.
READ/WRITE |
| _vti_pvt |
Frontpage
specific.
READ/WRITE |
| _vti_script |
Frontpage
specific.
READ/SCRIPT |
| _vti_txt |
Frontpage
specific.
READ/WRITE |
| anonftp |
Root
directory used if you request anonymous ftp access. |
| cgi-bin |
READ/EXECUTE |
| images |
READ/SCRIPT |
| log |
NO
PERMISSION |
| ssl |
If
you request a custom ssl certificate, this directory
permits https access only. |
How do I access my MySQL database?
There are many ways to connect to a MySQL database server. It really depends on
which technology you are planning on using in order to integrate database funtionality into your
website.
If you are planning on using Perl scripts that utilize your database, you will
most likely need support for the DBI and DBD::MySQL modules -- which all of Voicenet's
UNIX and Linux servers
do support.
Here is a
brief tutorial
breif tutorial on how to write perl code that can utilize the DBI/DBD API.
The PHP scripting language is one of the most popular ways of acheiving fast, dynamic
database-driven websites. All of Voicenet's UNIX/Linux webservers that support PHP also
support the built-in MySQL functionality of PHP. Please see the following
tutorial for more information about using PHP in conjunction with MySQL.
However, for those who would prefer some type of "graphical" interface that they can use
on their own local computer -- here is a list of some graphical Win32 clients that you
can use to connect to the database server:
How
do I access my MSSQL database?
Using
MS SQL Enterprise Manager:
- Click
on Microsoft SQL Servers, Action,
New SQL Server Registration view
image
- OR - Right click on SQL Server Group,
New SQL Server Registration view
image
- If
the Register SQL Server Wizard opens, Click Next
view image
- In
Available Servers type VNDB.VOICENET.COM,
click ADD view
image
- Click
Next view
image
- Select
SQL Server Authentication Mode, click Next view
image
- Fill
in your SQL username and password, click Next view
image
- Select
a Group, click Next view
image
- You
should see VNDB listed, now click Finish view
image
- Once
it Registered successfully, click Close view
image
- If
the Registered SQL Server Properties window opens,
Enter VNDB.VOICENET.COM in the Server field
Click on Use SQL Server authentication
Fill in your username and password
Uncheck Automatically start SQL Server when connecting
Click OK view
image
- After
completing these steps, you should see VNDB in your
SQL Server Group view
image
Does Voicenet support the use of FrontPage 2002?
MS FrontPage 2002 Server Extensions:
Yes! Voicenet currently offers MS FrontPage 2002 support for it`s Windows and Linux
hosted websites only. Unfortunately Voicenet can not offer support for MS FrontPage
for our UNIX hosted websites.
Voicenet offers MS FrontPage 2000 support by default for it`s Windows-hosted virtual
websites, and will upgrade your site to FP2002 by request only. Voicenet`s Linux hosted
websites do not come with any MS FrontPage support by default, but can have FP 2002 support added by request.
Please click here to make a request.
Click
here to contact Voicenet for any additional help.