You are not logged in.
Hi everyone, I could use some help or a direction to look in on this. Trying to set up a simple localhost lamp server. I can't use php7 for the specific application I'm trying to use. I set up apache and php56, as well as php56-apache from AUR. The apache server is working, but the localhost/info.php only shows the code, not the normal output. I've dug around on this for a few hours but only seem to be going in circles.
Any ideas?
Last edited by cptr13 (2016-06-17 22:45:35)
Offline
It sounds like you haven't configured php in your http.conf:
https://wiki.archlinux.org/index.php/Ap … Server#PHP
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
As it stands right now, I have both php56 (and php56-apache) and php7 (and php7-apache) installed. From what I've read there's no issue with having both installed at the same time.
I switched php to php7 to try to narrow down the issue. Following the wiki, php7 works fine. I am getting the info.php information correctly.
However, going to php56, I did the same thing, changing all the "7"'s to "56"'s and it doesn't work.
Obviously there's more to it than simply switching the version numbers and following the same steps.
A question to anyone who would know to help narrow it down:
1) would the version change from php56 to php7 affect this step? Was this step necessary pre-php7?
In /etc/httpd/conf/httpd.conf, comment the line:
#LoadModule mpm_event_module modules/mod_mpm_event.so
and uncomment the line:
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Note: The above is required, because libphp7.so included with php-apache does not work with mod_mpm_event, but will only work mod_mpm_prefork instead. (FS#39218)
Other than that, I don't see any other variables that could be affected and I'm stumped....
Offline
However, going to php56, I did the same thing, changing all the "7"'s to "56"'s and it doesn't work.
Nor should it.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
All right awesome thanks. That was exactly the direction I needed.
For reference in case anyone stumbles across this in the future. (Assuming php56 of course)
LoadModule php5_module modules/libphp5.so should be LoadModule php5_module modules/libphp56.so
Include conf/extra/php5_module.conf Should be Include conf/extra/php56_module.conf
So there are mixes of php5 and php56's in there. I was doing blanket 56's.
Thanks for your help!!
Offline