I have the following problem with php7 and Custombuild2:
In Custombuild (v2.0.0, rev: 1950) I have selected:
php1_release: 5.6
php1_mode: php-fpm
php2_release: 7.2
php2_mode: mod_php
And rebuilt php and apache of course.
When I select php7 for a user in DirectAmdin, all is fine when I view web pages of that user through the domain name, e.g.
http://domain.com/test.php
But when I view the same page by IP address, like this:
http://185.33.xxx.xxx/~testuser/test.php
Then php is not parsed as php. Worse, I see the php code, so php does not seem to be running. Database passwords, etc. are all in the open when viewing the website through IP address.
This only happens when php7 is selected by the user. Not when php5.6 is selected.
What I already tried:
- I already updated all software and rebuilt php, apache etc. through the Custombuild panel.
- tried various combinations in the user for php5.6 and php7, switched them, both php7 etc.
I have seen this option in Custombuild: 'userdir_access'. I could set that to 'no' and rebuild. But it is set to 'yes' because I want to be able to keep access files this way. Which works fine in php5.6.
Is this a Custombuild bug? Or am I overlooking something? Any help is appreciated.
Screenshot of my Custombuild settings:
https://cl.ly/cedb60988960
In Custombuild (v2.0.0, rev: 1950) I have selected:
php1_release: 5.6
php1_mode: php-fpm
php2_release: 7.2
php2_mode: mod_php
And rebuilt php and apache of course.
When I select php7 for a user in DirectAmdin, all is fine when I view web pages of that user through the domain name, e.g.
http://domain.com/test.php
But when I view the same page by IP address, like this:
http://185.33.xxx.xxx/~testuser/test.php
Then php is not parsed as php. Worse, I see the php code, so php does not seem to be running. Database passwords, etc. are all in the open when viewing the website through IP address.
This only happens when php7 is selected by the user. Not when php5.6 is selected.
What I already tried:
- I already updated all software and rebuilt php, apache etc. through the Custombuild panel.
- tried various combinations in the user for php5.6 and php7, switched them, both php7 etc.
I have seen this option in Custombuild: 'userdir_access'. I could set that to 'no' and rebuild. But it is set to 'yes' because I want to be able to keep access files this way. Which works fine in php5.6.
Is this a Custombuild bug? Or am I overlooking something? Any help is appreciated.
Screenshot of my Custombuild settings:
https://cl.ly/cedb60988960