Skip to content
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.

.phpenv ignored? #9

Open
BenMak opened this issue Mar 19, 2019 · 0 comments
Open

.phpenv ignored? #9

BenMak opened this issue Mar 19, 2019 · 0 comments

Comments

@BenMak
Copy link

BenMak commented Mar 19, 2019

Server: ClearOS 7.5 with Apache/2.4.6 (CentOS).
-Installed PHP-Engines and enabled 5.6 and 7.1 in Server|Web|PHP Engines
-Set in Server|Web|Web Server Enable PHP to Enabled and PHP Engine to PHP 7.1

This resulted in a .phpenv file in the webroot /var/www/html with content 71
and a new directive in flex-80.conf:
<Directory /var/www/html>
<FilesMatch .php$>
SetHandler "proxy:fcgi://127.0.0.1:9071"

-Ran phpinfo() in webroot, got confirmation that PHP 7.1 is being used.

-Changed content of .phpenv to 56 and restarted httpd, but phpinfo() still shows 7.1
Same result after server reboot.

-Checked php_engines_path.conf: SetEnv PATH /usr/clearos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
-Executed /usr/clearos/bin/php with remarks in front of echo lines removed.
results correct: directories /var/www/html /var/www /var / and content of .phpenv '56'

Any suggestions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant