XF 2.2 Server requirements - recommendations

rosal

Active member
I have this in Server environment, any recommendation or is this good?

PHP version 7.3.28

MySQL version 5.7.34

PHP memory_limit 134217728

PHP post_max_size 8M

PHP upload_max_filesize 2M

PHP max_input_vars 1000

PHP max_execution_time 30

cURL version 7.77.0

cURL SSL version OpenSSL/1.1.1k

OpenSSL version OpenSSL 1.1.1k 25 Mar 2021

Suhosin enabled No

Imagick support No

EXIF support No

GZip support Yes

mbstring support Yes

gmp support No

ZipArchive support Yes
 
Solution
This is fine. We’d recommend upgrading PHP to a supported release, either PHP 7.4 or, ideally, 8.0.

We also recommend enabling EXIF support as this automatically rotates uploaded images plus it’s a nice to have if you intend to use XFMG as we use it to retrieve additional metadata.

Everything else is fine.
This is fine. We’d recommend upgrading PHP to a supported release, either PHP 7.4 or, ideally, 8.0.

We also recommend enabling EXIF support as this automatically rotates uploaded images plus it’s a nice to have if you intend to use XFMG as we use it to retrieve additional metadata.

Everything else is fine.
 
Solution
I'd probably increase upload_max_filesize and post_max_size if your users are uploading photos from their smartphones as your current values are too small for this usecase.
 
I calculate for 1 MP round about 2 MB for a not compressed color picture with 16 bit color depth.
Better compression needs less, more colors needs more.

Formula:
number of pixels (eg. 20 MP are 20.000.000 pixels) x Bit Depth (eg. 16 bit) ÷ 8 (1 byte = 8 bit) ÷ 1024 ÷ 1024 = file size in Megabytes (MB)

Example:
20.000.000 x 16 bit ÷ 8 ÷ 1024 ÷ 1024 = 38,147 MB

But many Smartphones comes with more than 20 MP... ;)
 
Last edited:
Back
Top Bottom