[MacPorts] #50145: PHP70 not interpreted in Apache 2.2
#50145: PHP70 not interpreted in Apache 2.2 ---------------------------+-------------------------------- Reporter: seba.szwarc@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: apache2 ---------------------------+-------------------------------- The same configuration of apache. if php70 selected and 7.0 module loaded by httpd.conf php files are not recognized just simple file with phpinfo() when loaded php56 everything is OK. So As I said looks php70 not work with 2.2 and it is also suggested in: http://stackoverflow.com/questions/34153047/using-php-7-with-wamp -- Ticket URL: <https://trac.macports.org/ticket/50145> MacPorts <https://www.macports.org/> Ports system for OS X
#50145: PHP70 not interpreted in Apache 2.2 ----------------------------+-------------------------- Reporter: seba.szwarc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: apache2 | ----------------------------+-------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ryandesign@… -- Ticket URL: <https://trac.macports.org/ticket/50145#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50145: PHP70 not interpreted in Apache 2.2 ----------------------------+-------------------------- Reporter: seba.szwarc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: apache2 | ----------------------------+-------------------------- Comment (by ryandesign@…): I'm not able to reproduce this problem. php70-apache2handler works fine for me with apache2. Ensure that the line {{{ Include conf/extra/mod_php70.conf }}} appears in your httpd.conf. -- Ticket URL: <https://trac.macports.org/ticket/50145#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50145: PHP70 not interpreted in Apache 2.2 ----------------------------+-------------------------- Reporter: seba.szwarc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: apache2 | ----------------------------+-------------------------- Comment (by seba.szwarc@…): There was no such line in my httpd.conf I added it but the problem remains. modphp70.conf doesn't do much because I had the same set of AddType rules in my httpd.conf So to summarize: php70-apache2handler was installed httpd.conf is properly set php 7 not working with 2.2 php 56 working correctly What about this stackoverflow link that I provided when someone else mentioned these two won't work together? -- Ticket URL: <https://trac.macports.org/ticket/50145#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50145: PHP70 not interpreted in Apache 2.2 ----------------------------+-------------------------- Reporter: seba.szwarc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: apache2 | ----------------------------+-------------------------- Comment (by ryandesign@…): Most of that stackoverflow post seemed pointless to me since it's talking about problems specific to Windows. I don't know why it says that PHP 7 doesn't work with Apache 2.2, because it works fine for me, at least to the point of showing the phpinfo page. Just to make sure you understand: You can only load one version of the PHP Apache 2 module into Apache at a time. For example, you can either load the PHP 5.6 Apache 2 module, or the PHP 7.0 Apache 2 module, but not both. -- Ticket URL: <https://trac.macports.org/ticket/50145#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50145: PHP70 not interpreted in Apache 2.2 ----------------------------+-------------------------- Reporter: seba.szwarc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: apache2 | ----------------------------+-------------------------- Comment (by seba.szwarc@…): Yes I understand. I tested it twice: with module 56 active with module 70 active 5.6 works , 70 does not. phpinfo page is not showing up. So you are probably lucky or there is Murphy law here. -- Ticket URL: <https://trac.macports.org/ticket/50145#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50145: PHP70 not interpreted in Apache 2.2 ----------------------------+-------------------------- Reporter: seba.szwarc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: apache2 | ----------------------------+-------------------------- Comment (by seba.szwarc@…): Now, this is weird. I tried once again to test. Put LoadModule declaration in proper place. Added the config as you suggested but now php files are downloaded by Safari instead of interpreted. -- Ticket URL: <https://trac.macports.org/ticket/50145#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50145: PHP70 not interpreted in Apache 2.2 ----------------------------+-------------------------- Reporter: seba.szwarc@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: apache2 | ----------------------------+-------------------------- Comment (by seba.szwarc@…): Ok I found solution. It looks I have missing line in Apache configuration: AddHandler php7-script .php I needed to comment out: AddHandler php5-script .php -- Ticket URL: <https://trac.macports.org/ticket/50145#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#50145: PHP70 not interpreted in Apache 2.2 ----------------------------+-------------------------- Reporter: seba.szwarc@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: worksforme | Keywords: Port: apache2 | ----------------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/50145#comment:8> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts