404 with Manage Modules

Hi

I am new to Gibbon and trying to deploy it.

Everything seems to be working fine but when I click on Admin > System Admin> manage module > edit any module > And uncheck Active ( to deactivate the module) , I get “File not found” with url like this

https://my-fqdn.com /modules/System%20Admin/module_manage_editProcess.php?gibbonModuleID=0004

I checked everything and could not find the reason.

I am running v28.0.01

Any help would be appreciated

I just tried changing color of the interface and got same File not found

https://fqdn/modules/System%20Admin/displaySettingsProcess.php

Please confirm that all file permissions are set correctly. If everything is in order, you may try overwriting the files.

Hi @msrain

This is how I fixed the “File not found” issue.

The line below is an Apache directive related to FastCGI and PHP-FPM. It ensures that the SCRIPT_FILENAME variable is correctly unescaped when passed to FastCGI:

ProxyFCGISetEnvIf “true” SCRIPT_FILENAME “%{unescape:%{SCRIPT_FILENAME}}”

Where should this line go?

You should place this line in an Apache configuration file that handles FastCGI settings. The most appropriate locations are:

1.	A FastCGI-specific configuration file, such as:

/etc/apache/fcgi/.conf

or

/etc/apache2/conf-available/fcgid.conf

(if your system uses mod_fcgid)

2.	Your virtual host configuration file, such as:

/etc/apache2/sites-available/.conf

or

/etc/httpd/conf.d/.conf

(depending on your Linux distribution)

3.	The main Apache configuration file, if you want it to apply globally:

/etc/apache2/apache2.conf

or

/etc/httpd/conf/httpd.conf

4.	In an .htaccess file (if allowed by server configuration), though FastCGI settings are usually configured at the server level.

Are you hosting your website yourself or using a web hosting company?

Let me know if you have any other questions.

Tieku

1 Like

Thank you so much

Adding this fixed my problem on AlmaLinux release 9.5

[root@accounts ~]# cat /etc/httpd/conf.d/php-fpm.conf
<FilesMatch .php$>
SetHandler “proxy:unix:/run/php-fpm/www.sock|fcgi://localhost”
ProxyFCGISetEnvIf “true” SCRIPT_FILENAME “%{unescape:%{SCRIPT_FILENAME}}”

[root@accounts ~]#

So fix unescapes the variable, so PHP-FPM receives the real path

I think this should be in the documentation now