Skip to main content
Topic: Installation on Centos7 (Read 4191 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Installation on Centos7

Reply #1

Hello @tuxmika and welcome.

This is new. xD
Version of PHP?
MySQL or Postgre? And what version?
Bugs creator.
Features destroyer.
Template killer.

Re: Installation on Centos7

Reply #2

[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
Last Edit: September 05, 2018, 01:15:21 pm by tuxmika

Re: Installation on Centos7

Reply #3

Any idea of the problem ?

Re: Installation on Centos7

Reply #4

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 )
Bugs creator.
Features destroyer.
Template killer.

Re: Installation on Centos7

Reply #5

White screens make me think of php memory limit. Can you post the php.ini for your php7.2?

Re: Installation on Centos7

Reply #6

Error log will help too. ;D


Re: Installation on Centos7

Reply #8

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


Re: Installation on Centos7

Reply #9

I put memory_limit = 128M and i have the same problem..

Re: Installation on Centos7

Reply #10

Anything in the php or apache error log?

Re: Installation on Centos7

Reply #11

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

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

Re: Installation on Centos7

Reply #13

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

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).