Shortcut to this article: enom.help/hosting-config
We also have an FAQ on Getting started with hosting. Please read that article first.
- File management
1. How do I find/edit/create my FTP login Information?
2. How do I set the default documents for my web site on Linux web hosting?
3. How do I upload files to my web hosting account?
4. How do I back up my web files? - Configuration
5. What is .htaccess?
6. How can I modify PHP settings (like safe mode) for my hosting account?
7. How do I check the specific PHP version that's running on your web hosting servers? How do I check if a specific module is installed?
8. Can I use the CGI / Perl sendmail() or PHP mail() functions to send email from my web page?
You might also be interested in Getting started with mySQL.
1. How do I find/edit/create my FTP login Information?
The password for an FTP account cannot be recovered but can be replaced. Follow the instructions below to edit an existing FTP account or to create a new one.
- Log into the control panel for your hosting account.
- Click Websites & Domains, then scroll down and click FTP Access for the domain you want to use.
- To Edit an existing FTP account, click on the account name. To add an account, click Add an FTP Account.
- On the next page, modify the following:
- FTP Account Name: The username you will use to login to the FTP server
- You can use lowercase alphanumeric, dash, and underscore symbols in the username. The username should start with a lowercase alphabetic character and should be between 1 and 16 characters in length.
- Home Directory: Select the root directory of the website on the server.
- By default, this is the domain name
- You can leave this as "/" to give the FTP account access to all files.
- New Password: Create a password you will use to login to the FTP server
- Generate: Use this to generate a random password
- Show/Hide: Toggle the visibility of the password listed above
- Confirm Password: Reenter the password you just created
- FTP Account Name: The username you will use to login to the FTP server
- Click OK
2. How do I set the default documents for my website on Linux web hosting?
To set the default documents or "index" documents for your Linux-hosted website, create a .htaccess file and upload it to the root folder for your domain. If .htaccess already exists, you can add or modify the following line in the file:
- DirectoryIndex index.html index.htm index.php
You can modify the above example to include the name(s) of the default document(s) you would like to use.
Alternatively, if you don't specify the default documents in your .htaccess file, you can edit them within the Apache & nginx Settings for your website.
To do so, follow the steps below:
- Log into the control panel for your hosting account.
- Click on Websites & Domains on the left, then scroll down to your website and click Apache & nginx Settings
- Under Common Apache Settings > Index Files > Enter Custom Value
- Specify your index file.
- For example: index.htm, index.php or index.pl
- click OK
3. How do I upload files to my web hosting account?
Before you can upload any files to your hosting account you must first add the domain to the hosting account.
There are two options available for uploading your files to your hosting account.
Option 1 - Upload Files via FTP
- Download and install an FTP client.
- Filezilla is a popular and free client.
- To Log onto the FTP server, you will need the FTP host name, user name, and password.
- FTP hostname is listed on the top upper right side of the Plesk control panel, next to "Subscription." (see screenshot below)
- Example: hostingaccount.ehost-services###.com
- Use FTP protocol. Disable any encryption like "TLS" (Encryption is not supported)
- Upload files into the root directory of your website.
- By default, the root directory will be the domain name, e.g. example.com
Option 2 - Upload Files via the File Manager
- NOTE: This method can only be used to upload files one at a time and is not recommended for larger files.
- Log into the control panel for your hosting account.
- Click Files on the left side to open the File Manager.
- In the File Manager, click on the root directory for your website (by default this will be the domain name).
- Click on Upload At the top of the page.
- Select the file on your computer to upload.
4. How do I backup my web files?
Enom suggests that you maintain a backup of your website files on your local device and that you update this backup regularly. To backup the files, use the same FTP client that you setup earlier. Instead of uploading files to the server, however, you will be downloading from the root directory of the server to your computer.
5. What is .htaccess?
Because the Linux hosting account does not use php.ini at the domain name level, certain settings that would normally be managed through php.ini can be done through a .htaccess file.
The .htaccess file allows you to designate custom Index files for your website. You can create, and upload .htaccess files to the root folder of your website, or any subfolder depending on where you want to apply the settings defined by the .htaccess file.
NOTE: Enom Support cannot assist in the creation or scripting of a .htaccess file. However, if you want to use .htaccess to designate the default index file for your site, see here.
6. How can I modify PHP settings (like safe mode) for my hosting account?
To change PHP settings on Linux accounts, you will need to upload a .htaccess file.
Please note that unlike php.ini, not every PHP setting can be changed in .htaccess. With .htaccess, only user settings can be changed.
To request server setting changes, please send us a support request.
7. How do I check the specific PHP version that's running on your web hosting servers? How do I check if a specific module is installed?
Open a text editor, such as vi or Notepad, and copy and paste the following:
<?php //Shows all PHP Configuration settings phpinfo(); //Shows PHP Module Information phpinfo(INFO_MODULES); ?>
Save the file as phpinfo.php, upload the file to a browsable location inside your web directory, then open your web browser and go to the page you just created. You should see your current PHP configuration.
8. Can I use the CGI / Perl sendmail() or PHP mail() functions to send email from my web page?
The CGI / Perl sendmail() and PHP mail() functions are not supported on our web servers due to their inability to send mail with SMTP authentication.
Comments
1 comment
After uploading my site, no image files or css files would load until I enabled "Serve static files directly by nginx". I get a "13: Permissions Denied" in the log from nginx.
Is this normal?
Please sign in to leave a comment.