Install requirements Formulize 5.0 RC1

I would like to know the install requirements for Formulize 5.0 RC1.
I have already downloaded (on ubuntu server 14.04.3 LTS) the file Formulize_Standalone_5.0_RC1.zip, unzipped it in my home directory and copied to my /var/www sub directory. Set user.group to www-data.www-data and chmod to all php files to '755'.

Having done this and gone through the installer, the last step of installer complete, but then redirects to main directory of "index.php" file, but it shows a completely blank page.

So thus I'm wondering if there is some install requirement that was missed? Maybe some permissions that still need to be set?

I tried the install twice so far - I try a third time for luck.

Comments

Ran 3rd time

Ran the install the 3rd time and notice when it get to step 7 of 12 of the installer, it loads page "page_tablescreate.php" but this is shown as a completely blank page.

Before installing the 3rd time I set permission using:
find /var/www/html/wordpress/formulize/ -type f -name '*.php' -exec chmod 755 {} \;

Did chmod of 755 on "*.js" and "*.sql" just in case.
Also the directories "cache,modules,templates_c,uploads" have permissions of "777".

-- POST EDIT --
After refreshing shows "No ImpressCMS tables were detected.
The installer is now ready to create the ImpressCMS system tables.
Press next to proceed."

I'm using FireFox as browser.

It went all the way to step 12 now. Then I click the "home page of your site", here is the HTML code for referece:

button id="hmo" title="Show my site" type="button" onclick="location.href='http://192.168.0.150/formulize/install/page_end.php?success=true'" class="finish"

But then shows a completely blank page.
View source shows completely empty page.

NOTE: I do NOT have ImpressCMS or XOOPS installed on my ubuntu server.

re: Install requirements Formulize 5.0 RC1

With that version of Ubuntu, I would assume the version of PHP running on your server is 5.5

If that is the case, changes had to be made in the install steps because of a feature that is included and active in PHP 5.5 (opcode cache). The version of ImpressCMS that includes the fixes for this issue are in 1.3.6.

The basics of the fix is to remove the inclusion of mainfile.php from install/common.inc.php and add it to the pages that need it (install/page_end.php, install/page_modulesinstall.php, install/page_tablescreate.php)

in install/common.inc.php
// options for mainfile.php
$xoopsOption['nocommon'] = true;
define('XOOPS_INSTALL', 1);

@include_once '../mainfile.php'; // <-- remove this
include_once '../include/version.php';

in install/page_end.php
require_once 'common.inc.php';
if (!defined( 'XOOPS_INSTALL' ) ) exit();

include_once "../mainfile.php"; // <-- add here

$success = isset($_GET['success'])?trim($_GET['success']):false;

in install/page_modulesinstall.php
require_once 'common.inc.php';
set_time_limit(0);
if (!defined( 'XOOPS_INSTALL' ) ) exit();

$wizard->setPage( 'modulesinstall' );
$pageHasForm = true;
$pageHasHelp = false;

$vars =& $_SESSION['settings'];

include_once ICMS_ROOT_PATH."/mainfile.php"; // < change this to include_once "../mainfile.php";

in install/pages_tablescreate.php
require_once 'common.inc.php';
if (!defined( 'XOOPS_INSTALL' ) ) exit();

include_once "../mainfile.php"; // <-- add here

icms_core_Filesystem::chmod("../mainfile.php", 0444);

and, also in install/pages_tablescreate.php
$vars =& $_SESSION['settings'];

include_once "../mainfile.php"; <-- remove from here
include_once './class/dbmanager.php';
$dbm = new db_manager();

Clarify change to install/page_modulesinstall.php

Hi thanks for the feedback.
I'm going through your changes now, since my internet connection died on the weekend.

What is the change to the install/page_modulesinstall.php file?

Is it:

include_once "../mainfile.php"

on the line you indicated?
If so, I did that and am getting:

ImpressCMS root path not defined

re: Clarify change to install/page_modulesinstall.php

Before the change, the line reads

include_once ICMS_ROOT_PATH."/mainfile.php";

After, it should read
include_once "../mainfile.php";

The successful inclusion of mainfile.php will define ICMS_ROOT_PATH, which is needed on the next line of page_modulesinstall.php. PHP's opcache will cause this problem and it took me a while to get past it.

Generally speaking, when mainfile.php was included by common.inc.php (silently failing before it is created), PHP treated the file as being present with no contents. On future inclusions (after the file was completed and written), PHP didn't look for new contents from the filesystem, it pulled what it had from its cache.

The solution is to only include it after it exists and only when it's needed.

Same results

Hello, I made the changes above and tried twice and got the same results.
After the install completes it redirects to 'index.php'; however the page is blank. I tried refreshing - just a blank page. The database was created.

Is there any other files that needed changing?

PHP version is: 5.5.9-1ubuntu4.13

Tried 4.06 as well

I thought I might try 'Formulize_Standalone_4.06_Final.zip' as well.

It goes as far as 'page_modulesinstall.php' but that page is shown as blank. I made the same changes as above in the install folder.

Successful install with the above modifications

I just downloaded the latest 5.0rc1 standalone and made the above modifications before installing on my machine (Ubuntu 14.04, with PHP 5.5.9). I also ran the install without the modifications and was receiving blank pages at install/page_end.php.

With the modifications, the install completed successfully without any errors. Perhaps you could try downloading the latest ImpressCMS install package and add the Formulize 5.0 module version from here. Then run the install.

At least that way, you can start to narrow down where the trouble is.

Install of ImpressCMS 1.3.8 failed too

Hi there Steve (I saw your name on the Impress sites).
Thanks for helping me on this. By the way I'm considering helping on the development side as part of a school project; that's why I'm trying to get this installed. I'm a developer, but it's been a while since I worked with PHP.

First a question:
Is there a better LINUX Distro to use instead of Ubuntu for Impress/Formulize?

Second, I tried to install ImpressCMS 1.3.8 but got a blank page at the end. I checked my Apache logs, and I see the following errors which might point out the problem. Note: The directory "/usr/share/pear" does not exist on my system - maybe that's a problem?

Here are the Apache logs (abbreviated):

PHP Warning: include(./language/english/finish.php): failed to open stream: No such file or directory in /var/www/html/impress/install/page_end.php on line 37, referer: http://192.168.0.150/install/page_end.php$
PHP Warning: include(): Failed opening './language/english/finish.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/impress/install/page_end.php on line 37, referer: http://192.168.0.150/install/page_end.php$
PHP Warning: include(./install_tpl.php): failed to open stream: No such file or directory in /var/www/html/impress/install/page_end.php on line 48, referer: http://192.168.0.150/install/page_end.php$
PHP Warning: include(): Failed opening './install_tpl.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/impress/install/page_end.php on line 48, referer: http://192.168.0.150/install/page_end.php$
PHP Warning: include(./language/english/finish.php): failed to open stream: No such file or directory in /var/www/html/impress/install/page_end.php on line 37, referer: http://192.168.0.150/install/page_end.php$
PHP Warning: include(): Failed opening './language/english/finish.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/impress/install/page_end.php on line 37, referer: http://192.168.0.150/install/page_end.php$
PHP Warning: include(install_tpl.php): failed to open stream: No such file or directory in /var/www/html/impress/install/page_end.php on line 48, referer: http://192.168.0.150/install/page_end.php$
PHP Warning: include(): Failed opening 'install_tpl.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/impress/install/page_end.php on line 48, referer: http://192.168.0.150/install/page_end.php$

My development environment - ImpressCMS and Formulize

I have been using Ubuntu exclusively for the past 5 years, and other than a few folder permissions, have had good success.

You don't need /usr/share/pear on your system - that is just in the default path for apache and PHP to look for files when they aren't in the path specified.

But, it does point to where to start looking - is the install/ folder still on your system? The references to lines 36 and 47 differ slightly in their syntax (how the relative path is specified). I don't think it's a matter of how the path is specified - both ways fail in your case.

line 36
include "./language/$wizard->language/finish.php";

line 47
include 'install_tpl.php';

The install path was readable, or you wouldn't have gotten this far. At the end of the install, the folder is deleted as you go to your home page, or the attempt is made anyway. If attempt is successful and you are not redirected to your home page, you'll see what you see - a blank page for the URI /page_end.php

This doesn't really sound like it is specific to Formulize, so if you want to continue in the ImpressCMS forums, we can work through it there.

Placed under Community Forum

Hi Steve.
I placed on the community forums (General Usage) here:

http://community.impresscms.org/modules/newbb/viewtopic.php?topic_id=5758&forum=51