CodeIgniter Forums
Access Denied (security.limit_extensions) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Access Denied (security.limit_extensions) (/showthread.php?tid=87037)



Access Denied (security.limit_extensions) - keto - 03-09-2023

[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.


RE: Access Denied (security.limit_extensions) - captain-sensible - 03-09-2023

php-fpm setup somewhere ? https://www.php.net/manual/en/install.fpm.configuration.php#security-limit-extensions