How can I password protect my Linux Fusion Website?

How can I password protect my Linux Fusion Website?

One of the most common configuration changes users desire is the ability to easily password protect a website directory or file from public access. This is easily done with the help of an .htaccess file.

The first step is to generate an .htaccess file. Create the file using a text editor and following the pattern below (replace the word ‘donet’ with your username):

passwordProtect1

You can also change the AuthName to a message of your choice. Just replace ‘Secure’ with your preferred text leaving the quotes.

This file will be placed in the directory you wish to secure.

passwordProtect2

The second step is to generate an .htpasswd file. If you have your own server or VM through Donet, you can do this on the command line. If you have a shared hosting solution, you will need to generate the .htpasswd file using a tool such as this one: www.htaccesstools.com/htpasswd-generator/. Copy your encrypted string into a new text file, save it as .htpasswd, and upload via FTP to your root user directory*.

passwordProtect3

*NOTE*
Your root user directory is the directory that you see when first logging in via FTP. Typically, this is not the directory that your website files are in (i.e. ‘www’), but is the directory that contains the ‘www’ directory.

passwordProtect

After creating your .htaccess and .htpasswd files, test to ensure it is working:

passwordProtect4

.htaccess (distributed configuration) files can be used for all sorts of things including password protecting directories, enabling directory browsing, etc. For a more advanced look into the possibilities of .htaccess, check out the Apache Tutorial page

How do I upload and include my own PHP libraries in my Windows Fusion website?

How do I upload and include my own PHP libraries in my Windows Fusion website?

PHP settings can be viewed by going to ‘www.yourdomain.tld/phpinfo.php’.

You can customize certain PHP directives in your PHP configuration file. To access this file, log in to your site via your preferred FTP client.

You will see several folders on the right, one of them being PHP.

windowsPHP1

If you open up that folder, you will see a file called php.ini.

windowsPHP2

This folder will already have several directives configured. You can place your additional PHP directives in this file. Since the web server is continuously monitoring changes to this configuration file, you should notice these changes take place immediately.

Technical Overview current as of August 29, 2012

Current Version: 5.3.10

We are currently running PHP 5.3.10 (latest stable version as of 03/01/2012). As new versions are released, we will test and implement the new PHP versions in addition to supporting this PHP version. If your application requires a specific version of PHP, please contact us and we can attempt to work with you to accommodate your specific requirements.

Runtime Protocol: FastCGI

For performance and security reasons we have implemented PHP in our Windows Fusion environment utilizing the FastCGI protocol for interfacing PHP to the web servers.

Runtime Session Save Handler: PHP WinCache

“Windows Cache Extension for PHP is a PHP accelerator that is used to increase the speed of PHP applications running on Windows and Windows Server. Once the Windows Cache Extension for PHP is enabled and loaded by the PHP engine, PHP applications can take advantage of the functionality without any code modifications.” – IIS.NET

We have taken several steps to improve the performance of PHP sites hosted on our Windows Fusion product. If you have any additional technical questions, please contact us for more information.

How can I use phpMyAdmin with my Linux Fusion website?

How can I use phpMyAdmin with my Linux Fusion website?

If you’re running a content management system (CMS) like WordPress or Joomla on your DataYard Fusion website, one of the things you may need is direct access to the MySQL database powering the CMS. You could use the mysql command line client, but there are web tools that can make it much easier. One such tool is phpMyAdmin.

What you will need to install phpMyAdmin on your website

  • Your own domain name
  • A Linux Fusion web site from DataYard (including your FTP and MySQL login information)
    Please note that this tutorial will not work with Windows Fusion websites
  • A web browser
  • An FTP client

Here is a quick (<5 minutes) video tutorial on how to install phpMyAdmin inside your Fusion website:

Note:  You will need to download phpMyAdmin 4.0.10.20  (https://www.phpmyadmin.net/downloads/).  Newer versions will not work.

If you have any trouble during installation please, contact DataYard support.