Author Topic: blank install page  (Read 5063 times)

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
blank install page
« on: October 07, 2019, 04:49:32 PM »
I am trying to install roundcube 1.3.10 on Fedora 30 and I get a blank installer page.
I have installed other versions of Roundcube several times in the past on other versions of Fedora without an issue.
I am using the same procedure I've always used.
I have tried setting all files and directories in /var/www/html/roundcube to 777 permissions.  Did not help.
There is nothing in the logs directory and nothing mention in apache logs.

procedure:
tar -zxvf roundcubemail-1.3.10-complete.tar.gz
cd /var/www/html
mkdir roundcube
cd /software/roundcubemail-1.3.10
mv * /var/www/html/roundcube
mv .htaccess /var/www/html
mysql roundcubemail < /var/www/html/roundcube/SQL/mysql.initial.sql
create DB user

update php.ini:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
memory_limit = 16MB (increase as suitable to support large attachments)
file_uploads enabled (for attachment upload features)
session.auto_start disabled
suhosin.session.encrypt disabled
mbstring.func_overload disabled

install prerequisites:
dnf install php-gd php-intl php-json php-ldap php-mbstring php-mcrypt php-pecl-imagick php-xml php-zip

cd /var/www/html/roundcube/config
cp config.inc.php.sample config.inc.php
vi config.inc.php

$config['db_dsnw'] = 'mysql://blah:blah@localhost/roundcubemail';
$config['des_key'] = 'blah';
$config['enable_installer'] = true;

navigate to http://domain/installer/

« Last Edit: October 07, 2019, 05:52:27 PM by boxyball »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: blank install page
« Reply #1 on: October 07, 2019, 11:47:40 PM »
If you replace the Roundcube index.php file with a php file that has
Code: [Select]
<?php phpinfo(); in it do you get the php info?

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: blank install page
« Reply #2 on: October 08, 2019, 09:28:09 AM »
Good idea.  I should have thought of that.  I got blank page, which means something is missing in my environment, which isn't surprising given this is my first time installing in Amazon Web Services environment.  The cloud version of Fedora is obviously missing some key component that I now have to search for.  I will reply with answer for future reference for others that may run into this.
Thanks again.

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: blank install page
« Reply #3 on: October 08, 2019, 10:11:33 AM »
Update.
Turns out I was replacing the wrong index.php ... when I replaced the correct index.php in /installer with phpinfo() then I do get the php info.
I was also looking in the wrong place for the errors, which are now in /var/log/php-fpm/www-error.log

Here is the error I am getting...

PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 81920 bytes) in /var/www/html/roundcube/program/lib/Roundcube/rcube.php on line 396

... which doesn't make much sense seeing as how 81920 is less than 2097152

I checked php.ini and I had memory_limit set to 16M.  I bumped it up to the default 128M to test and still got the same error.


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: blank install page
« Reply #4 on: October 08, 2019, 11:12:03 AM »
The error message should have changed after you updated the memory_limit. Did you restart php-fpm after you made the change?

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: blank install page
« Reply #5 on: October 08, 2019, 11:59:31 AM »
Ah ... that was the problem ... I was doing systemctl restart httpd.service but was not restarting php-fpm.
Thanks again!
installer works now!