Installation on Centos7 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
Re: Installation on Centos7 Reply #1 – September 05, 2018, 01:00:53 pm Hello @tuxmika and welcome.This is new. xDVersion of PHP?MySQL or Postgre? And what version?
Re: Installation on Centos7 Reply #2 – 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_64mariadb-server-5.5.60-1.el7_5.x86_64httpd-tools-2.4.6-80.el7.centos.1.x86_64php-gd-7.2.9-1.el7.remi.x86_64php-mysqlnd-7.2.9-1.el7.remi.x86_64mariadb-libs-5.5.60-1.el7_5.x86_64php-cli-7.2.9-1.el7.remi.x86_64mariadb-5.5.60-1.el7_5.x86_64php-7.2.9-1.el7.remi.x86_64php-pdo-7.2.9-1.el7.remi.x86_64php-json-7.2.9-1.el7.remi.x86_64httpd-2.4.6-80.el7.centos.1.x86_64php-bcmath-7.2.9-1.el7.remi.x86_64
Re: Installation on Centos7 Reply #4 – 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 )
Re: Installation on Centos7 Reply #5 – 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?
Re: Installation on Centos7 Reply #7 – 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
Re: Installation on Centos7 Reply #8 – 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 = 15memory_limit = 16post_max_size = 50Mupload_max_filesize = 50Msafe_mode = Offregister_globals = Off
Re: Installation on Centos7 Reply #9 – September 06, 2018, 05:54:31 am I put memory_limit = 128M and i have the same problem..
Re: Installation on Centos7 Reply #10 – September 06, 2018, 10:24:56 am Anything in the php or apache error log?
Re: Installation on Centos7 Reply #11 – 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
Re: Installation on Centos7 Reply #12 – 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=3But with by exemple sed -i 's/memory_limit = .*/memory_limit = 2048 /' /etc/php.ini it don't work
Re: Installation on Centos7 Reply #13 – 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
Re: Installation on Centos7 Reply #14 – 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).