Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-01-23 14:56:06

GStudios
New Member
Registered: 2017-01-23
Posts: 2

Backlight Compatible Hosting

Hello,

I'm considering getting Backlight to publish my photos.  Is there any way I can be sure that my hosting service (through doteasy) is compatible with the requirements of Backlight? 

Was searching for something where I can upload some files to my host and if I'm able to successfully view the sight on a web browser, it will mean it works.

I looked at the requirements that were provided but not sure if my host has this (next step, I'll email my host company).

Thank you,
Gord

Offline

#2 2017-01-23 16:17:49

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Backlight Compatible Hosting

You should ask your host, or have a look at their features and/or plan comparison pages.


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2017-01-23 19:15:24

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Backlight Compatible Hosting

The main PHP modules that Backlight requires are PDO, SQLite and XML.  Backlight also requires PHP 5 or later.  These are standard PHP modules, and all good hosts should provide them out of the box.  Those that don't have likely taken steps to remove support.

I've just put together a quick check for these, based on the code that Backlight runs.  This doesn't guarantee compatibility, but catches the major compatibility issues that you're likely to face.  To use this, copy and paste the entire code below (be careful to select all of it because it the code box scrolls both to the right and below), add it to a file named something like check.php, upload it to your server and view in your browser, e.g. at http://yoursite.com/check.php.

<?php

$errors = array();

echo 'Checking PHP version is 5 or greater... ';
if (phpversion() < '5') {
	echo 'FAIL';
	$errors[] = 'Your server is running <strong>PHP Version '.phpversion().'</strong>. Backlight requires <strong>PHP Version 5 or later</strong>.</p><p>Upgrade your PHP installation or contact your host to enable PHP 5.';
} else {
	echo 'PASS';
}

echo '<br/>';

echo 'Checking for PDO support... ';
if (!class_exists('PDO')) {
	echo 'FAIL';
	$errors[] = 'Unable to find the <strong>PDO</strong> module.  Backlight requires the PDO, SQLite and XML modules.  Make sure that these modules are installed and enabled.';
} else {
	echo 'PASS';
}

echo '<br/>';

echo 'Checking for SQLite support... ';
if (!in_array('sqlite', PDO::getAvailableDrivers())) {
	echo 'FAIL';
	$errors[] = 'Unable to find the <strong>SQLite</strong> module.  Backlight requires the PDO, SQLite and XML modules.  Make sure that these modules are installed and enabled.';
} else {
	echo 'PASS';
}

echo '<br/>';

echo 'Checking for XML support... ';
if (!class_exists('DOMDocument')) {
	echo 'FAIL';
	$errors[] = 'Unable to find the <strong>XML</strong> module.  Backlight requires the PDO, SQLite and XML modules.  Make sure that these modules are installed and enabled.';
} else {
	echo 'PASS';
}

echo '<br/><br/>';

if ($errors) {
	echo 'Compatibility test failed with the following errors: <ul>';
	echo '<li>'.join('</li><li>', $errors).'</li>';
	echo '</ul>';
} else { 
	echo 'All checks passed';
}

?>

Offline

#4 2017-01-24 01:09:46

GStudios
New Member
Registered: 2017-01-23
Posts: 2

Re: Backlight Compatible Hosting

Thank you very much for the responses. 

I'll give the code a quick run Ben (once I get the chance)

Thank you again.

Offline

Board footer

Powered by FluxBB