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
Hello
@tuxmika and welcome.
This is new. xD
Version of PHP?
MySQL or Postgre? And what version?
[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
Any idea of the problem ?
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 )
White screens make me think of php memory limit. Can you post the php.ini for your php7.2?
Error log will help too. ;D
In my php.ini memory_limit is 16M like indicated here https://github.com/elkarte/Elkarte/wiki/Requirements
Here my php.ini
[root@srvcentos ~]# cat /etc/php.ini | grep -E 'memory_limit|max_execution_time|max_input_time \|
max_execution_time = 15
memory_limit = 16
post_max_size = 50M
upload_max_filesize = 50M
safe_mode = Off
register_globals = Off
I put memory_limit = 128M and i have the same problem..
Anything in the php or apache error log?
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
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
Can you post/attach your sources/subs.php I want to see what is going on around line 1914
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).
hmm... 2,097,152... 2 MB?
That looks not that much.
Good catch
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
Here's my tutorial
http://arobaseinformatique.eklablog.com/installer-elkarte-sur-centos-7-a148432834
So you have it working? 8)
He said all is ok
@badmonkey. ;)
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
That's better than me. I'm always confused. ;D
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.