Comment to 'uploading images into new album'
  • It is possible that your PHP is not configured correctly. Run my script and you will see that it works properly the installation completes in less than 1 minute. My script is designed to install PHP on the fly.

    For handling more processes, you will need additional PHP child servers a standard setup is not enough for a large volume of files. You can check my configuration and see how the PHP child processes should be set up here:  https://github.com/kabballa/PHP-UNA/blob/dev/php.sh

    ⚠️ If your server does not have enough resources, it is possible that it will not work properly.

    PHP 8.3 works perfectly with this script. If you don’t want to reinstall, I plan to update it soon to support PHP 8.4, but I don’t have time to do that right now. You can also configure PHP 8.4 manually if you carefully follow the steps in my script.

    if you change the php version you must also change the nginx config

    aslo setup

    # Maximum number of open files for PHP-FPM.

    RLIMIT_FILES=65536

    # Maximum size of core files created by PHP-FPM.

    RLIMIT_CORE=0

    These settings affect system-level limits, not just PHP-FPM, so you need to make sure your server allows them:

    1. RLIMIT_FILES=65536 – sets the maximum number of files that PHP-FPM can open simultaneously.
    • This limit can be restricted by Linux via ulimit or configuration files (/etc/security/limits.conf or /etc/systemd/system/php*.service.d/override.conf if using systemd).
    • For systemd, you can add:
    [Service]
    LimitNOFILE=65536
    
    • Then run:
    sudo systemctl daemon-reexec
    sudo systemctl restart php8.3-fpm
    
    • (replace 8.3 with your PHP version)
    1. RLIMIT_CORE=0 – limits the size of core dump files.
    • 0 means core dumps are disabled.
    • If you want to allow core dumps or set a different limit, you also need to adjust the system ulimit or other OS-level settings.

    Changing only the www.conf file is not enough if the OS imposes stricter limits. You must ensure the system allows the values you set for PHP-FPM.

    ⚠️ Make sure you restart the PHP-FPM and Nginx services after modifying any PHP or FPM configuration to apply changes properly.