Welcome Guest, Not a member yet? Register   Sign In
Access Denied (security.limit_extensions)

(This post was last modified: 03-09-2023, 12:59 AM by keto.)

[Google translation]
Good morning,
I developed a new application to migrate from CodeIgniter 3 to CodeIgniter 4.
For development, I ran the application on an IIS server.
Now I am trying to put the app on a server. But it didn't work.

Server features:
OS: RedHat
Apache: 2.4.X
PHP: 8.0.X

To figure out the problem, I deleted my app and just sent CodeIgniter 4 empty (welcome_message)
I added in Routes.php: $routes->get('/home', 'Home::index');

If I open the link: https://MyAppli/public/index.php => OK
If I open the link: https://MyAppli/public/index.php/home => Access denied.

Error log: [Thu Mar 09 08:04:06.634956 2023] [proxy_fcgi:error] [pid 9678] [client XXXXXXXXX] AH01071: Error 'Access to script' /app/projects/MyAppli/apache/htdocs/MyAppli/home' was denied (see security.limit_extensions)'

I tested with empty CodeIgniter 4 on my IIS => OK

In phpinfo() , I couldn't find "limit_extensions"

In the php config file, I found "security.limit_extensions" but it is commented out:
;security.limit_extensions=.php .php3 .php4 .php5 .php7

A test was also made with this uncommented line.

Do you have an idea ?
Thanks for your help.

php-fpm setup somewhere ? https://www.php.net/manual/en/install.fp...extensions
I use Arch Linux by the way 

CMS in Action

Theme © iAndrew 2016 - Forum software by © MyBB