[BlueOnyx:27251] Re: Import 5Mb file via phpMyAdmin gives memory error

Michael Stauber mstauber at blueonyx.it
Thu Sep 19 04:07:38 -05 2024


Hi Janwillem,

> I am trying on a 5210R (phpMyAdmin 5.20, PHP version 8.1.29 on 
> admin server) a 5Mb .ods file.
> I keep getting the following error:
> *Fatal error*: Allowed memory size of 536870912 bytes exhausted (tried 
> to allocate 4096 bytes) 
> in*/usr/sausalito/ui/web/base/phpMyAdmin/vendor/phpmyadmin/sql-parser/src/Lexer.php*on line*450*
> *
> *
> in php.ini I've changed to memory_limit 2048M


For AdmServ you need to edit /etc/admserv/php.ini and 
/etc/admserv/php-fpm/pools/admserv.conf instead.

By default it does have memory_limit = 1024M set, though.

After the changes you need to restart AdmServ and the AdmServ-PHP-FPM 
services:

systemctl restart admserv admserv-php-fpm

-- 
With best regards

Michael Stauber


More information about the Blueonyx mailing list