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.
You are not logged in.
Pages: 1
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
You should ask your host, or have a look at their features and/or plan comparison pages.
Offline
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
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
Pages: 1