To print out what version of PHP you are currently running, Create a file called
index.php
with the contents of the file being:
<?php phpinfo(); ?>
After creating the file, Browse to your website. The version will be at the top.
If using environment variables like '$_SERVER["DOCUMENT_ROOT"]', or '$_SERVER["CONTEXT_DOCUMENT_ROOT"]', You will notice that PHP cannot find files or folders. This is because of the special environment your web space is under. Your web space is under what is called a 'chroot' environment. Consider the following path:
/isp/web/domain.com/domain.com/te/testuser/public_html/var/www
The portion of the path highlighted in red cannot be seen by PHP.
The portion of the path highlighted in green can be seen by PHP.
For content to be viewable to the internet, all files and folders will need to be published to
/public_html/var/www
To reach this folder, enter it in manually or browse to
/FTP/<yourdomainname.com>
The upload_max_filesize and post_max_size have small default values. This can be overridden in a few simple steps.
First, create a hidden file named .user.ini
under /public_html/var/www
- Not to forget the dot at the beginning of the filename.
After this file has been created, populate it with your desired values:
upload_max_filesize = 15M
post_max_size = 15M
After saving the file, your new limits should be in effect.
Currently, We have 8 versions of PHP available.
PHP 5.6
PHP 7.0
PHP 7.1
PHP 7.2
PHP 7.3
PHP 7.4
PHP 8.0
PHP 8.1
These versions are interchangeable. Please contact your ISP for information regarding changing versions of PHP.
The mail()
function has been disabled due to sites that send spam out due to compromisation, or misuse. If you would like to send mail, An authenticated relay will need to be set up.
Here is an example of setting up an authenticated relay in PHP:
<?php
require_once "Mail.php";
$from = "Test <test@test.com>";
$to = "Test <test@test.com>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$host = "ssl://<URL of relay>";
$username = "<username>";
$password = "<password>";
$headers = array
(
'From' => $from,
'To' => $to,
'Subject' => $subject
);
$smtp = Mail::factory('smtp', array
(
'host' => $host,
'port' => 465,
'auth' => 'PLAIN',
'timeout' => 3,
'debug' => true,
'username' => $username,
'password' => $password
));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail))
{
echo("<p>" . $mail->getMessage() . "</p>");
}
else
{
echo("<p>Message successfully sent!</p>");
}
?>
Frequently Asked Questions
Do I need to use full email address?
Yes, A full email address is recommended when sending mail.
What ports can I use?
We recommend using explicit SSL over port 465, which can be achieved by following the above example. Ports 25 and 587 may also be used with STARTTLS, or no SSL.
What should the host be?
This will vary depending on your hosting provider. Typically this hostname will be smtp.<domain.com>
The hostname should be ftp.<domain.com>
To upload content from a mobile device, You will need an FTP client such as AndFTP.
If you are using plain FTP for the connection, The port will be 21
If you are using FTP over SSH, The port will be 22
The folder named "FTP" under your webspace contains a symlink to the correct location to publish files. When you change the working directory into this symlink, It will drop your client into the correct location. The correct location will be
/public_html/var/www
All files placed or changed here will reflect the website in question.
Currently, We do not support connections over TLS. If you would like an encrypted connection, SFTP is available. This is done by configuring your FTP client to use an SFTP connection, over port 22. This will utilize SSH to encrypt the traffic to and from your client. The SFTP option is usually located in the 'Protocols' drop down menu in common FTP clients. Below is an example screenshot.
To find out who hosts your domain, You will need to do a 'whois' lookup on the domain in question. This is done by visiting a website such as https://whois.icann.org
and entering the domain name in the search bar.
Once complete, Look for the section labelled 'Registrar'.
A DNS 'A' record is how browsers and other applications can resolve your domain name to an IP address to establish a connection with the
web server. Updating the A record for your domain can vary from registrar to registrar. If the name servers are defined as
NS1.GWTC.NET or NS2.GWTC.NET
Then that means Goldenwest is authoritative of this domain, and any changes made by them will reflect to all DNS servers around the world.
If any other name servers are listed, Check with your registrar for a control panel. Most of them will include a panel to manipulate
DNS records.
Index file
The most common reason behind this error is Apache not finding the directories index file. In order for Apache to serve the page correctly, a file that follows the guidelines of the 'DirectoryIndex' directive in apache must be in your web spaces root folder. The following are acceptable index names:
index.html
index.htm
default.htm
default.html
Default.htm
index.php
default.htm
welcome.htm
welcome.html
Permissions
If you have an Index file, but are still seeing this message, Check the permissions of the public_html folder. The permissions might of been modified by an FTP client. The correct permissions for this folder should be (in octal format) 701, or Read, Write and Execute for the owner, Only execute for the 'Other' entity.
Misconfigured .htaccess file
Another not so common issue could be a misconfigured .htaccess file, that is blocking requests. This will be a hidden file, so your FTP client might need to be configured to view hidden files.
Index File
This error could appear when PHP is active on an account, But there is no index file within the document root. To fix the issue, Create a file named index.php
under your document root.
Index File
This error could appear when PHP is active on an account, But there is no index file within the document root. To fix the issue, Create a file named index.php
under your document root.
PHP looking for nonexistent file
This also could mean PHP is trying to find a file that does not exist. Double check that your paths are correct, and that you are referencing the file from within the chroot environment. Refer to "Why cant PHP include or find files?" for more information.
No PHP on account
This error is most commonly seen when there is no PHP on the account, But a PHP driven script has been requested. To fix this issue, Have PHP added to the account in question.
This question comes up from time to time regarding Wordpress and if we can host it. We can in fact host Wordpress. However we do not support Wordpress. What does this mean? We are simply the hosting providers, and will not include any web development support.
When first setting up Wordpress, You will be prompted to enter in your database information. This includes The database name, database username, database password, database host, and the table prefix. (If running multiple Wordpress installations).
If you do not know your database name, username and/or password, Contact your ISP.
When entering in the "Database Host" information, be sure to include 127.0.0.1
, rather than localhost
.
The two terms can be slightly misleading at first. Database Name
refers to the actual name of the database. Database Username
refers to the username that you use to authenticate to the database service.
Yes, PHPMyAdmin
is available either at mysql.ispservices.us
, or mysql.<your domain>
If you would like to have web hosting through your ISP, but have your website redirect to a different location, there are quite a bit of options to accomplish this. Listed below are a few:
It is recommended to add the "Website Redirect Component" within the Customer Care Center, and supply the desired URL. This will automatically add an ".htaccess" file with the appropriate content.
To redirect in pure HTML, add the following line inside the <head> tag at the top of any HTML page like this:
<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />
To redirect in PHP, We will use the header() function call. Add this to your PHP file:
<?php header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?>
To redirect using an .htaccess file, Create a new file under /public_html/var/www called '.htaccess'. After creating the file, Populate it with this data:
Redirect 301 / http://example.com/
To enable Indexing, (Or in other words, how to browse files in a directory) create a file under the directory in question named
.htaccess
Once created, Populate this file with the following text:
Options +Indexes
The directory will now be browsable.