logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> News & Hangout View previous topic :: View next topic
Reply to topic   Topic: Regression Apache 2.4.60 - AddType and AddHandler
Author
Otomatic



Joined: 01 Sep 2011
Posts: 183
Location: Paris, France, EU

PostPosted: Tue 02 Jul '24 12:08    Post subject: Regression Apache 2.4.60 - AddType and AddHandler Reply with quote

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: 7329
Location: Germany, Next to Hamburg

PostPosted: Tue 02 Jul '24 14:10    Post subject: Reply with quote

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

PostPosted: Tue 02 Jul '24 14:36    Post subject: Win32 PHP5.3.29 execution DLL not working. Reply with quote

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: 681

PostPosted: Tue 02 Jul '24 14:49    Post subject: Reply with quote

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

PostPosted: Tue 02 Jul '24 16:31    Post subject: Reply with quote

Resolved. Thank you very much.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3068
Location: Hilversum, NL, EU

PostPosted: Wed 03 Jul '24 14:29    Post subject: Reply with quote

@Otomatic @nnkeshiro

Can you test https://www.apachelounge.com/download/VS17/binaries/httpd-2.4.61-240703-win64-VS17.zip

Thanks
Back to top
Otomatic



Joined: 01 Sep 2011
Posts: 183
Location: Paris, France, EU

PostPosted: Wed 03 Jul '24 15:05    Post subject: Reply with quote

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


Reply to topic   Topic: Regression Apache 2.4.60 - AddType and AddHandler View previous topic :: View next topic
Post new topic   Forum Index -> News & Hangout