If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
a bit more information about how to find out, do you use hardened PHP or not:
phpinfo contains the "Configure Command" and the "extension_dir". The contents of the mentioned fields can answer the question whether its our build or not.
For example:
phpinfo()
PHP Version => 5.2.17
System => Linux localhost.localdomain 3.10.0-427.10.1.lve1.4.7.el7.x86_64 #1 SMP Sat Apr 2 12:09:46 EDT 2016 x86_64
Build Date => May 31 2016 02:20:24
Configure Command => ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/opt/alt/php52
if you see /opt/alt under Configure Command - this means that you are using hardened PHP
The "/opt/alt" in phpinfo page will be shown only if you select some hardened PHP with a selector (or admin will choose hardened php as default one). If you see /usr/local there it means you do not use hardened now. As you see /opt/alt/ directory with phpXX subdirectories inside then most probably hardened PHP is installed but not activated yet.
Hello Bogdan, based on your suggestion, I may have an answer.
Php selector on cPanel shows two different php versions: "native (5.4)" and "5.4".
They may appear the same version, but this is not really true.
My tests above were done with "native (5.4)" that was the host default choice.
If I switch to version "5.4" , phpinfo.php shows a completely different set of information:
under "Configure Command" the path is always /opt/alt/
Also the build date is different: Mar 9 2016 02:29:25 that correspond to the HardenedPHP version that was announced the very same date on CloudLinux blog post below
Hello Bogdan, based on your suggestion, I may have an answer.
Php selector on cPanel shows two different php versions: "native (5.4)" and "5.4".
They may appear the same version, but this is not really true.
My tests above were done with "native (5.4)" that was the host default choice.
If I switch to version "5.4" , phpinfo.php shows a completely different set of information:
under "Configure Command" the path is always /opt/alt/
Also the build date is different: Mar 9 2016 02:29:25 that correspond to the HardenedPHP version that was announced the very same date on CloudLinux blog post below
Yes, that is correct. Native version is not hardened while any other is. I would not pay much attention to comparing build date and release day, but overall it should be close (we build it then test on our environment before release to beta).
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment