Want more timely Centmin Mod News Updates?
Become a Member

A strange upload file problem

Discussion in 'Blogs & CMS usage' started by jellday, Dec 26, 2024.

  1. jellday

    jellday Member

    73
    4
    8
    May 31, 2014
    Ratings:
    +9
    Local Time:
    5:06 AM
    1.4.6
    5.5
    Please fill in any relevant information that applies to you:
    • CentOS Version: AlmaLinux8
    • Centmin Mod Version Installed: 131.00stable
    • Nginx Version Installed: 1.27.2
    • PHP Version Installed: 7.4.33
    • MariaDB MySQL Version Installed:10.4.34
    • When was last time updated Centmin Mod code base ? : 24/12, 24
    • Persistent Config:
      Code (Text):
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
      SELFSIGNEDSSL_ECDSA='y'
      PHPFINFO='y'
      PHP_OVERWRITECONF='n'
      PYTHON_INSTALL_ALTERNATIVES='y'
      
      MARCH_TARGETNATIVE='n'
      
      

    I’m using a PHP CMS program that works perfectly on one of my VPS instances (running Centmin Mod 123.09beta01). However, after migrating the program to a new VPS with a fresh installation of Centmin Mod 131stable, the multi-photo upload function stopped working, and no pictures can be uploaded. The error message simply says, "Upload failed."

    I’ve checked the file permissions, and the owner/group are correctly set to nginx:nginx. The script has also been tested locally and works without any issues.

    I’ve been troubleshooting this for several weeks now but haven’t been able to identify the root cause. Since the script works on the older VPS and locally, I suspect the problem might be related to the current server’s configuration. Could you provide any guidance to help me resolve this issue?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,357
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    7:06 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Was the old VPS also using Nginx or Apache/Litespeed web server? As Nginx doesn't support .htaccess rewrites like Apache/Litespeed web server, so you may need specific Nginx rules for your web application.

    What CMS is it? Is it Wordpress based as there's some security precautions outlined at https://community.centminmod.com/threads/wordpress-403-permission-denied-errors.11215/
    Or you may have ran into the new tools/autoprotect.sh cronjob feature outlined at https://community.centminmod.com/th...ccess-check-migration-to-nginx-deny-all.7308/
     
  3. jellday

    jellday Member

    73
    4
    8
    May 31, 2014
    Ratings:
    +9
    Local Time:
    5:06 AM
    1.4.6
    5.5
    Just to let you know, the problem has been resolved. It turned out to be a small mistake that isn’t acceptable in newer PHP versions.