libphp*.so/php.conf Does Not Install

Asked 2 years ago, Updated 2 years ago, 66 views

[Environment]
mac10.14.1(host)
Virtualbox 6.0
vagrant 2.2.2
CentOS Linux release 7.6.1810(Core)
Apache/2.4.6 (CentOS)

[Phenomenon]
https://qiita.com/bezeklik/items/860ba080bf4c664cd8e9
Install multiple php (php56/70/71) versions for

on module load php71 php71 is enabled, but
If you access the php file from your browser, the source of the php will be displayed as it is.
ほか Same for other php versions

Installing php71
yum-config-manager --enable remi
yum-y install php71

[Cause]
libphp*.so missing in /etc/httpd/modules
Missing /etc/httpd/conf.d/php.conf

[Question]
How do I install the module and php.conf and
Can we create an environment where we can switch php versions just by doing module load php*?

Thank you for your cooperation

-- ADDITIONAL > TAKE88
"On the reference page, I would like to do it until just before ""switching the environment by URL""

"

Switch to module load <module name >This should be enough if you just need to switch by yourself.

I understand that there is a way to do it without php-fpm

I have confirmed that url can actually switch php version by setting the setting including /etc/hosts as shown on the reference page for switching environment by URL

After checking to that point, I stopped php-fpm and deleted remi.conf, and now I'm stumbling because of the phenomenon like a question.

Before validating fpm, the symptom was the same at the time of module load, so I suspect libphp*.so and php.conf were not installed from the beginning.

Therefore, I would appreciate it if you could tell me how to install libphp.so and php.conf in multiple versions of php from this state.

Thank you for your cooperation

php

2022-09-30 21:38

1 Answers

Apache modules are included in php71-php.
Try installing php71-php.


2022-09-30 21:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.