• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Error 500 during upgrade and after upgrading php to 7.4

Wobak

Chevereto Member
Dear user, Tech Support is included with your license. Do note:
  • ⚠️ Check hotfixes before opening a ticket
  • ⏳ Ticket response time is within 30 days
  • 🇨🇱 Support is delivered in CLST working hours
  • 🚧 Tech Support only covers software issues
▶ Reproduction steps

All the info is in : https://chevereto.com/community/threads/error-500-in-the-middle-of-upgrade.14173/

The update to PHP 7.4 did not fix the issue, so you can unmark the "Solved" unfortunately :(

😢 Unexpected result

Error 500

📃 Error log message
Apache config:
ServerSignature Off
Options -Indexes
Options -MultiViews

# CORS header (avoids font rendering issues)(replace dev\.local with your domain\.com)
# SetEnvIf Origin ^(https?://.+\.dev\.local(?::\d{1,5})?)$   CORS_ALLOW_ORIGIN=$1
# Header append Access-Control-Allow-Origin  %{CORS_ALLOW_ORIGIN}e   env=CORS_ALLOW_ORIGIN
# Header merge  Vary "Origin"

# Disable access to sensitive application files
<FilesMatch "composer\.(json|lock)|cli\.php|\.htaccess|\.gitignore">
        <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
    </IfModule>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
</FilesMatch>

<IfModule mod_rewrite.c>
        RewriteEngine On
        # If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
        # You will also have to change the path to reflect the path to your Chevereto installation
        # If you are using mod alias is likely that you will need this.
        #RewriteBase /

        # Image not found replacement
        RewriteCond %{REQUEST_FILENAME} !-f
        #RewriteRule images/.+\.(gif|jpe?g|a?png|bmp|webp) content/images/system/default/404.gif [NC,L]
        RewriteRule images/.+\.(gif|jpe?g|png|bmp|webp) - [NC,L,R=404]

    # PHP front controller
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . index.php [L]

    # Single PHP-entrypoint (disables direct access to .php files)
    RewriteCond %{THE_REQUEST} ^.+?\ [^?]+\.php[?\ ] [NC]
    RewriteRule \.php$ - [NC,L,F,R=404]
</IfModule>
 
Hi,

You need to provide the actual error log, you are providing the .htaccess which is not what we need to assist you here.

By the way, which kind of web server software are you using?
 
Hi, I'm using apache on CentOS 7.

The error log is empty. I only have lines like this:
<IP> - - [22/Mar/2022:00:28:57 +0100] "GET /install HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36"

and in the error log (where i enabled
[Tue Mar 22 00:31:15.336343 2022] [proxy_fcgi:debug] [pid 15146:tid 140013627737856] mod_proxy_fcgi.c(979): [client 207.46.13.75:38272] AH01078: serving URL fcgi://localhost:9000/home/tofcx/www/index.php

Bash:
root @ cpc-prod8: ~ 96 # cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

root @ cpc-prod8: ~ 99 # yum info httpd
Installed Packages
Name        : httpd
Arch        : x86_64
Version     : 2.4.6
Release     : 97.el7.centos.4
Size        : 9.4 M
Repo        : installed
From repo   : updates
Summary     : Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
            : web server.
 
Try removing the comment at #RewriteBase /

If that doesn't work try using our official deploy alternatives. Kindly note that we don't include support for third-party servers for which you require to purchase Extra Support.
 
Same issue but I correctly isolated the error stack in the errorlog this time :

Code:
[Tue Mar 22 16:49:45.156118 2022] [ssl:info] [pid 22169:tid 140013636130560] [client obfuscated:61014] AH01964: Connection to child 0 established (server tof.cx:443)
[Tue Mar 22 16:49:45.156440 2022] [ssl:debug] [pid 22169:tid 140013636130560] ssl_engine_kernel.c(1891): [client obfuscated:61014] AH02043: SSL virtual host for servername tof.cx found
[Tue Mar 22 16:49:45.176314 2022] [ssl:debug] [pid 22169:tid 140013636130560] ssl_engine_kernel.c(1824): [client obfuscated:61014] AH02041: Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
[Tue Mar 22 16:49:45.190590 2022] [ssl:debug] [pid 22169:tid 140013636130560] ssl_engine_kernel.c(225): [client obfuscated:61014] AH02034: Initial (No.1) HTTPS request received for child 0 (server tof.cx:443)
[Tue Mar 22 16:49:45.190962 2022] [authz_core:debug] [pid 22169:tid 140013636130560] mod_authz_core.c(809): [client obfuscated:61014] AH01626: authorization result of Require all granted: granted
[Tue Mar 22 16:49:45.190969 2022] [authz_core:debug] [pid 22169:tid 140013636130560] mod_authz_core.c(809): [client obfuscated:61014] AH01626: authorization result of <RequireAny>: granted
[Tue Mar 22 16:49:45.191044 2022] [authz_core:debug] [pid 22169:tid 140013636130560] mod_authz_core.c(809): [client obfuscated:61014] AH01626: authorization result of Require all granted: granted
[Tue Mar 22 16:49:45.191050 2022] [authz_core:debug] [pid 22169:tid 140013636130560] mod_authz_core.c(809): [client obfuscated:61014] AH01626: authorization result of <RequireAny>: granted
[Tue Mar 22 16:49:45.191093 2022] [authz_core:debug] [pid 22169:tid 140013636130560] mod_authz_core.c(809): [client obfuscated:61014] AH01626: authorization result of Require all granted: granted
[Tue Mar 22 16:49:45.191097 2022] [authz_core:debug] [pid 22169:tid 140013636130560] mod_authz_core.c(809): [client obfuscated:61014] AH01626: authorization result of <RequireAny>: granted
[Tue Mar 22 16:49:45.191120 2022] [proxy:debug] [pid 22169:tid 140013636130560] mod_proxy.c(1123): [client obfuscated:61014] AH01143: Running scheme fcgi handler (attempt 0)
[Tue Mar 22 16:49:45.191126 2022] [proxy_ajp:debug] [pid 22169:tid 140013636130560] mod_proxy_ajp.c(722): [client obfuscated:61014] AH00894: declining URL fcgi://localhost:9000/home/tofcx/www/index.php
[Tue Mar 22 16:49:45.191132 2022] [proxy_fcgi:debug] [pid 22169:tid 140013636130560] mod_proxy_fcgi.c(972): [client obfuscated:61014] AH01076: url: fcgi://localhost:9000/home/tofcx/www/index.php proxyname: (null) proxyport: 0
[Tue Mar 22 16:49:45.191136 2022] [proxy_fcgi:debug] [pid 22169:tid 140013636130560] mod_proxy_fcgi.c(979): [client obfuscated:61014] AH01078: serving URL fcgi://localhost:9000/home/tofcx/www/index.php
[Tue Mar 22 16:49:45.191153 2022] [proxy:debug] [pid 22169:tid 140013636130560] proxy_util.c(2274): [client obfuscated:61014] AH00944: connecting fcgi://localhost:9000/home/tofcx/www/index.php to localhost:9000
[Tue Mar 22 16:49:45.191320 2022] [proxy:debug] [pid 22169:tid 140013636130560] proxy_util.c(2454): [client obfuscated:61014] AH00947: connected /home/tofcx/www/index.php to localhost:9000
[Tue Mar 22 16:49:45.198767 2022] [ssl:debug] [pid 22169:tid 140013636130560] ssl_engine_io.c(993): [client obfuscated:61014] AH02001: Connection closed to child 0 with standard shutdown (server tof.cx:443)
 
I'm afraid that I can't clearly identify the issue there. Seems that your server is not compatible with the default htaccess rules and I can't see why.

To deliver support for your server you need to purchase Extra Support as I need to inspect the system on my own.
 
I migrated the installation to a containerized httpd + php + mariadb, and now it's working again. I guess the httpd or mariadb might've been too old.

You can close the ticket, thanks for the help.
 
Glad to know,

Chances are that the fcgi proxy wasn't configured properly, it could get tricky very easy. In any case, you will love to know that at this time we are working in a containerized Apache + PHP-FPM default provisioning.

👉 https://github.com/chevereto/docker/issues/37

I'm going to close the ticket now, stay tuned for the upcoming docker announcement.
 
Back
Top