Skip to content

.htaccess php error using php version 8.5 #7125

@TheMetMan

Description

@TheMetMan

Description of the bug

I have a fresh install of Fedora 44 and cannot load my local sites.

I am getting an Internal Server Error when loading the website caused by this error in the website error log:
.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration,

A short description of what the problem is.
The website will not load and I have the Internal Server Error web page.
I have checked that httpd and mariadb and php are all running as expected.
I can find no reference to this in the Backdrop Issues.
Will I need to try and downgrade php to version 8.4 ?

Steps To Reproduce

Attempt to load a local webserver

To reproduce the behavior:

  1. Go to the webserver on my local PC

Expected behavior

The home page should load.

Additional information

Having searched around I have found this explanation:

Understanding the "Invalid command 'php_value'" Error
The error message "Invalid command 'php_value'" indicates that the server does not recognize the php_value directive in your .htaccess file. This is a common issue when using modern PHP versions or specific server configurations.

So I suspect that php 8.5 is too cutting edge for Backdrop CMS 1.31.0.

Add any other information that could help, such as:

  • Backdrop CMS version: 1.31.0
  • Web server and its version: Apache 2.4.66 (Fedora Linux)
  • PHP version: 8.5.5
  • Database sever (MySQL or MariaDB?) and its version: 11.8.6-MariaDB
  • Operating System and its version: Fedora Linux version 44
  • Browser(s) and their versions: Brave 1.90.121

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions