ElkArte Community

Project Support => Support => Topic started by: tuxmika on September 05, 2018, 12:21:24 pm

Title: Installation on Centos7
Post by: tuxmika on September 05, 2018, 12:21:24 pm
I install an elkarte on a centos 7, and when I reach the stage "http://srvelkarte/install/install.php?step=4" ( Database Population), i have a blank screen..

do you know where the problem comes from ?

cordially
Title: Re: Installation on Centos7
Post by: emanuele on September 05, 2018, 01:00:53 pm
Hello @tuxmika and welcome.

This is new. xD
Version of PHP?
MySQL or Postgre? And what version?
Title: Re: Installation on Centos7
Post by: tuxmika on September 05, 2018, 01:07:56 pm
[root@srvcentos elkarte]# rpm -aq | grep -E 'httpd|mariadb|php'
php-common-7.2.9-1.el7.remi.x86_64
mariadb-server-5.5.60-1.el7_5.x86_64
httpd-tools-2.4.6-80.el7.centos.1.x86_64
php-gd-7.2.9-1.el7.remi.x86_64
php-mysqlnd-7.2.9-1.el7.remi.x86_64
mariadb-libs-5.5.60-1.el7_5.x86_64
php-cli-7.2.9-1.el7.remi.x86_64
mariadb-5.5.60-1.el7_5.x86_64
php-7.2.9-1.el7.remi.x86_64
php-pdo-7.2.9-1.el7.remi.x86_64
php-json-7.2.9-1.el7.remi.x86_64
httpd-2.4.6-80.el7.centos.1.x86_64
php-bcmath-7.2.9-1.el7.remi.x86_64
Title: Re: Installation on Centos7
Post by: tuxmika on September 05, 2018, 02:37:22 pm
Any idea of the problem ?
Title: Re: Installation on Centos7
Post by: emanuele on September 05, 2018, 04:33:22 pm
hmm... I just tried an install hare and works find (php 7.2.8 and maria 10.2.16) and looks good.
In your list I don't see the mariadb client, is that correct? (Not really expert of centos and servers configuration in general. xD )
Title: Re: Installation on Centos7
Post by: badmonkey on September 05, 2018, 07:35:25 pm
White screens make me think of php memory limit. Can you post the php.ini for your php7.2?
Title: Re: Installation on Centos7
Post by: ahrasis on September 05, 2018, 07:58:45 pm
Error log will help too. ;D
Title: Re: Installation on Centos7
Post by: tuxmika on September 06, 2018, 02:16:01 am
In my php.ini memory_limit is 16M like indicated here https://github.com/elkarte/Elkarte/wiki/Requirements
Title: Re: Installation on Centos7
Post by: tuxmika on September 06, 2018, 02:46:38 am
Here my php.ini

[root@srvcentos ~]# cat /etc/php.ini | grep -E 'memory_limit|max_execution_time|max_input_time \|
Quote post_max_size|upload_max_filesize|safe_mode|register_globals'
max_execution_time = 15
memory_limit = 16
post_max_size = 50M
upload_max_filesize = 50M
safe_mode = Off
register_globals = Off

Title: Re: Installation on Centos7
Post by: tuxmika on September 06, 2018, 05:54:31 am
I put memory_limit = 128M and i have the same problem..
Title: Re: Installation on Centos7
Post by: vbgamer45 on September 06, 2018, 10:24:56 am
Anything in the php or apache error log?
Title: Re: Installation on Centos7
Post by: tuxmika on September 06, 2018, 10:44:27 am
my error.log

[Thu Sep 06 16:42:55.303788 2018] [php7:error] [pid 1375] [client 10.11.25.14:55992] PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/elkarte/sources/Subs.php on line 1914, referer: http://srvelkarte/install/install.php?step=3
[Thu Sep 06 16:43:26.920253 2018] [php7:error] [pid 1377] [client 10.11.25.14:56012] PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/elkarte/sources/Subs.php on line 1914, referer: http://srvelkarte/install/install.php?step=3
Title: Re: Installation on Centos7
Post by: tuxmika on September 06, 2018, 10:49:07 am
i do sed -i 's/memory_limit = .*/memory_limit = -1/' /etc/php.ini && all seems ok

[Thu Sep 06 16:47:53.891504 2018] [php7:notice] [pid 1414] [client 10.11.25.14:56188] PHP Notice:  Undefined index: time_offset in /var/www/html/elkarte/sources/Subs.php on line 553, referer: http://srvelkarte/install/install.php?step=3
[Thu Sep 06 16:47:53.899910 2018] [php7:notice] [pid 1414] [client 10.11.25.14:56188] PHP Notice:  Undefined index: time_offset in /var/www/html/elkarte/sources/Subs.php on line 553, referer: http://srvelkarte/install/install.php?step=3

But with by exemple sed -i 's/memory_limit = .*/memory_limit = 2048 /' /etc/php.ini it don't work
Title: Re: Installation on Centos7
Post by: vbgamer45 on September 06, 2018, 11:18:01 am
Can you post/attach your sources/subs.php I want to see what is going on around line 1914
Title: Re: Installation on Centos7
Post by: badmonkey on September 06, 2018, 11:25:04 am
If you have more than one php version (and you probably do, Centos is shipped with php5), the php.ini at /etc/php.ini is probably the wrong one. Check in /etc/opt/remi/72, or something like that. If you edit the php.ini, don't forget to restart php72 for changes to take effect. (This is likely a different service than just php).
Title: Re: Installation on Centos7
Post by: emanuele on September 06, 2018, 11:31:29 am
QuoteAllowed memory size of 2097152 bytes exhausted
hmm... 2,097,152... 2 MB?
That looks not that much.
Title: Re: Installation on Centos7
Post by: vbgamer45 on September 06, 2018, 11:58:26 am
Good catch
Title: Re: Installation on Centos7
Post by: tuxmika on September 06, 2018, 12:43:45 pm
With this parameters in /etc/php.ini all is ok !!

[root@srvcentos elkarte]# cat /etc/php.ini | grep -E "post_max_size|upload_max_filesize\
|safe_mode|register_globals|max_execution_time|memory_limit|max_input_time "
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
post_max_size = 50M
upload_max_filesize = 50M
safe_mode = Off
register_globals = Off
Title: Re: Installation on Centos7
Post by: tuxmika on September 06, 2018, 02:15:22 pm
Here's my tutorial

http://arobaseinformatique.eklablog.com/installer-elkarte-sur-centos-7-a148432834
Title: Re: Installation on Centos7
Post by: badmonkey on September 06, 2018, 02:19:20 pm
So you have it working?   8)
Title: Re: Installation on Centos7
Post by: ahrasis on September 06, 2018, 08:16:42 pm
Quote from: tuxmika – With this parameters in /etc/php.ini all is ok !!
He said all is ok @badmonkey. ;)
Title: Re: Installation on Centos7
Post by: badmonkey on September 06, 2018, 10:22:58 pm
 
 I wasn't sure how to take his statement.  All is ok as in working?  Or all is ok in the php.ini only? But then, I'm easily confused sometimes.  ;D
Title: Re: Installation on Centos7
Post by: ahrasis on September 07, 2018, 05:02:13 am
That's better than me. I'm always confused. ;D
Title: Re: Installation on Centos7
Post by: fritzelly on September 07, 2018, 03:06:56 pm
Think he meant that is the tutorial he is following to install it.

I'm using Centos 7.5 - I suggest the OP uses something like VestaCP to install into a virgin install of Centos and try again
Unless you know what you are doing there are too many things that can go wrong manually installing everything.