Xataface 2.2.0 4805 on Ubuntu 18.04 / PHP 7.2

100 views
Skip to first unread message

Tony M

unread,
Sep 25, 2018, 6:29:02 PM9/25/18
to Xataface
Hi All

I have been running a much older version of Xataface for many years and am being forced to upgrade due to PHP7 being rolled out on our webserver.... but I am having real problems.

Rather than copying and trying to update, I thought I would do a new installation and start from scratch again... but;

I have downloaded the latest version from Github (xataface-master) and exctracted that into /var/www/website/html/xataface/

I created a conf.ini file in /var/www/website/html/ which looks like this;

[_database]
    host=localhost
    name=distcheck
    user=check4me
    password=<password>
    driver=mysqli

[_tables]
    ;; This section lists the tables to include in your application menu

I created the index.php file in /var/www/website/html/

<?php
// Include the Xataface API
require_once 'xataface/dataface-public-api.php';

// Initialize Xataface framework
df_init(__FILE__, 'xataface')->display();
    // first parameter is always the same (path to the current script)
    // 2nd parameter is relative URL to xataface directory (used for CSS files and javascripts

All the tutorials say to create the templaces_c folder in /var/www/website/html/xataface/ which I did and set permissions to 777. After doing this I ran /var/www/website/html/xataface/dataface_info.php and got the reply -

Installation status            INSTALLED CORRECTLY
Templates Dir                  /var/www/website/html/xataface/Dataface/templates
Templates Compile Dir     /var/www/website/html/xataface/Dataface/templates_c

However when I visit /var/www/website/html/index.php I get the following error...

As of Xataface 1.3 all applications are now required to have its own templates_c directory to house its compiled templates. Please create the directory "/var/www/website/html/templates_c" and ensure that it is writable by the web server.

Not sure why this is, but I created templaces_c folder in /var/www/website/html/ and set permissions to 777... afterwhich when I visit /var/www/website/html/index.php I now just get a blank page.

So after tinkering with the above for several hours I thought I would try to use the installer... when I tried visiting /var/www/website/html/xataface/installer.php I correctly get the following error message:

The installer is currently disabled. To enable it, please rename the 'installer.disabled' file to 'installer.enabled'. You can find this file inside the root xataface directory.

So, I changed /var/www/website/html/xataface/installer.disabled to /var/www/website/html/xataface/installer.enabled and visited /var/www/website/html/xataface/installer.php... but get a blank page again.

Out of desparation I tried ./makesite shell script from the command line (./makesite ../website check4me:<password>@localhost/distcheck /xataface) and get an error saying "./makesite: command not found"

So as you can imagine I am now desperate having tried the manual method, automated method and command line all to no avail.

The only thing I have done which isnt in the installation wiki is, as per various sources I found on line, added driver=mysqli into the [_database] section of my conf.ini file!

Is anyone able to help as I am at a loss now and have exhausted all my knowledge trying to get this to work.

Thanks in advance





Tony M

unread,
Sep 25, 2018, 6:43:04 PM9/25/18
to Xataface

A quick update... I have been using Firefox as my browser, so thought I'd try with Internet Explorer...

The index.php page is the same - except it shows HTTP 500 Internal Server Error

While the installer link opens up a prompt for username and password... when I entered these and clicked next I then get the same HTTP 500 Error message!

I thought I'd include this in case its relevant.

Thanks again


Steve Hannah

unread,
Sep 26, 2018, 7:50:38 AM9/26/18
to xata...@googlegroups.com
Skip the installer.  Do a manual install.

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at https://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/61fb6a7e-70a5-4cfb-b855-4831d1483e62%40googlegroups.com.


--
Steve Hannah
Web Lite Solutions Corp.

Tony M

unread,
Nov 7, 2018, 10:04:35 AM11/7/18
to Xataface
Thanks Steve

I did get it up and running in the end...  I do have a couple of questions but will post them in a new topic as theyre unrelated to this.
Reply all
Reply to author
Forward
0 new messages