[Phpmyadmin-devel] solution for RedHat 8 (and others) problems

Hi, We got numerous problems of duplicate field names on table creation. The default configuration of RedHat 8 has, in /etc/httpd/conf.d/php.conf (comments removed): ============ LoadModule php4_module modules/libphp4.so <Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </Files> DirectoryIndex index.php ========== and in /etc/httpd/conf/httpd.conf =========== AddType application/x-httpd-php .php =========== Those 2 kinds of directives, used together, give a conflict with arrays in POST variables, which we use in phpMyAdmin. So, remove the line in httpd.conf, like this: #AddType application/x-httpd-php .php and restart Apache. Marc Delisle

Hi Marc and list, -----Original Message----- From: Marc Delisle
We got numerous problems of duplicate field names on table creation.
Indeed. :-)
The default configuration of RedHat 8 has, in /etc/httpd/conf.d/php.conf (comments removed): ============ LoadModule php4_module modules/libphp4.so
<Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </Files>
DirectoryIndex index.php ==========
and in /etc/httpd/conf/httpd.conf =========== AddType application/x-httpd-php .php ===========
This config tells Apache to filter php twice...! Good job, Marc!
Those 2 kinds of directives, used together, give a conflict with arrays in POST variables, which we use in phpMyAdmin.
So, remove the line in httpd.conf, like this: #AddType application/x-httpd-php .php
Since the AddType directive is the way that is recommended by php, I'd rather comment out the "SetOutputFilter" and "SetInputFilter" lines instead. Alexander M. Turek <alex@bugfixes.info> +-----------------------------+ | The phpMyAdmin Project | | http://www.phpmyadmin.net | | rabus@users.sourceforge.net | +-----------------------------+ | [bugfixes.info] | | http://www.bugfixes.info | | rabus@bugfixes.info | +-----------------------------+

Rabus wrote:
Hi Marc and list,
-----Original Message----- From: Marc Delisle
We got numerous problems of duplicate field names on table creation.
Indeed. :-)
The default configuration of RedHat 8 has, in /etc/httpd/conf.d/php.conf (comments removed): ============ LoadModule php4_module modules/libphp4.so
<Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </Files>
DirectoryIndex index.php ==========
and in /etc/httpd/conf/httpd.conf =========== AddType application/x-httpd-php .php ===========
This config tells Apache to filter php twice...! Good job, Marc!
Those 2 kinds of directives, used together, give a conflict with arrays in POST variables, which we use in phpMyAdmin.
So, remove the line in httpd.conf, like this: #AddType application/x-httpd-php .php
Since the AddType directive is the way that is recommended by php, I'd rather comment out the "SetOutputFilter" and "SetInputFilter" lines instead.
Ok I will document this in a FAQ, with a link on phpmyadmin.net, and suggest the recommended way. Marc
Alexander M. Turek <alex@bugfixes.info>
+-----------------------------+ | The phpMyAdmin Project | | http://www.phpmyadmin.net | | rabus@users.sourceforge.net | +-----------------------------+ | [bugfixes.info] | | http://www.bugfixes.info | | rabus@bugfixes.info | +-----------------------------+
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
participants (2)
-
Marc Delisle
-
Rabus