Page MenuHomeDevCentral

PHP 7 custom configuration file
ClosedPublic

Authored by dereckson on Feb 10 2016, 02:21.
Tags
None
Referenced Files
F7607634: D279.id.diff
Tue, Apr 29, 15:35
F7601069: D279.id664.diff
Tue, Apr 29, 12:58
F7587909: D279.id664.diff
Tue, Apr 29, 06:53
F7576372: D279.diff
Tue, Apr 29, 01:58
Unknown Object (File)
Mon, Apr 28, 05:14
Unknown Object (File)
Fri, Apr 25, 07:56
Unknown Object (File)
Thu, Apr 24, 08:11
Unknown Object (File)
Thu, Apr 24, 00:01
Subscribers
None

Details

Summary

When running as CGI in /public_html/ directories, PHP 7 is
launched through SuEXEC.

SuEXEC gives us a better security than force_redirect trick,
so, we don't need this cgi.force_redirect setting.

Fixes T710.

Test Plan

To test the configuration

Run a script with phpinfo():

test-php7.cgi
#!/opt/php/bin/php-cgi
<?php

phpinfo();
$ ./test-php7.cgi | grep force_redirect
<tr><td class="e">cgi.force_redirect</td><td class="v">0</td><td class="v">0</td></tr>

To test the Makefile

Install it, then see it created a new (identical) file:

$ md5 /opt/php/lib/php.ini
MD5 (/opt/php/lib/php.ini) = b7d3799f3992a4f3a49d209080bdf363
$ cd /home/dereckson/dev/nasqueron/ops/operations/roles/shellserver/PHP7/
$ make install
install -m 0644 files/php.ini /opt/php/lib/
$ md5 /opt/php/lib/php.ini
MD5 (/opt/php/lib/php.ini) = b7d3799f3992a4f3a49d209080bdf363
$ ls -lhU /opt/php/lib/php.ini
-rw-r--r--  1 root  wheel   616B Feb 10 02:14 /opt/php/lib/php.ini

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
php7-ysul
Build Status
Buildable 360
Build 428: arc lint + arc unit

Event Timeline

dereckson retitled this revision from to PHP 7 custom configuration file.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added reviewers: amj, Sandlayth.
Sandlayth edited edge metadata.
This revision is now accepted and ready to land.Feb 12 2016, 18:42
This revision was automatically updated to reflect the committed changes.