Author |
|
Otomatic
Joined: 01 Sep 2011 Posts: 212 Location: Paris, France, EU
|
Posted: Tue 02 Jul '24 12:08 Post subject: Regression Apache 2.4.60 - AddType and AddHandler |
|
|
Hi,
I encountered a problem when I tried to install Apache 2.4.60 on Windows (Wampserver) to replace Apache 2.4.59.1.
Whatever the local url typed in any browser, for example 'http://localhost/', the index.php page was not displayed but downloaded under names such as 'uCqlH5WV'.
I'll skip the "cold sweat" generated!
After reading the changelog very carefully, I was able to see about SECURITY: CVE-2024-38476:
Note: Some legacy uses of the 'AddType' directive to connect a
request to a handler must be ported to 'AddHandler' after this fix.
So, after adding, in the httpd.conf file, in the <IfModule mime_module> section the line: Code: | AddHandler application/x-httpd-php .php | things are back in order. Phew!
Does this mean I can or must delete the line? Code: | AddType application/x-httpd-php .php |
Thanks a lot. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 02 Jul '24 14:10 Post subject: |
|
|
The "AddType" is from mod_mime to set the mime type. Aka what the browser gets as a response header.
Quote: | In addition, mod_mime may define the handler and filters that originate and process content. The directives AddHandler, AddOutputFilter, and AddInputFilter control the modules or scripts that serve the document. The MultiviewsMatch directive allows mod_negotiation to consider these file extensions to be included when testing Multiviews matches. | [1]
[1] https://httpd.apache.org/docs/current/mod/mod_mime.html |
|
Back to top |
|
nnkeshiro
Joined: 02 Jul 2024 Posts: 2 Location: Japan
|
Posted: Tue 02 Jul '24 14:36 Post subject: Win32 PHP5.3.29 execution DLL not working. |
|
|
I am using Win32 Apache in a local legacy environment, and after updating from httpd-2.4.59 to httpd-2.4.60, PHP5.3.29 no longer works.
Is PHP5.3.29 no longer supported after httpd-2.4.60? |
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Tue 02 Jul '24 14:49 Post subject: |
|
|
See above:
Note: Some legacy uses of the 'AddType' directive to connect a
request to a handler must be ported to 'AddHandler' after this fix.
@Otomatic
I think you can remove addtype. |
|
Back to top |
|
nnkeshiro
Joined: 02 Jul 2024 Posts: 2 Location: Japan
|
Posted: Tue 02 Jul '24 16:31 Post subject: |
|
|
Resolved. Thank you very much. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
Otomatic
Joined: 01 Sep 2011 Posts: 212 Location: Paris, France, EU
|
Posted: Wed 03 Jul '24 15:05 Post subject: |
|
|
Hi,
I created an "addon Apache 2.4.61" installer for Wampserver in the same way as I did before Apache 2.4.60, i.e. without adding "AddHandler application/x-httpd-php .php" in httpd.conf. The switch from version 2.4.59 -> 2.4.61 works perfectly.
Everything seems OK. Thank you. |
|
Back to top |
|