mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
Bugfixings
- moved testargs.php to util directory - Switch Environment check before config at automatic install - checkPHP() is now finding the PHP binary too - Bugfixing checkPHP() & required returned wrong status - removing not used $_POST['phpath'] in web installer
This commit is contained in:
parent
f0382ab919
commit
cf39c9df81
5 changed files with 77 additions and 36 deletions
22
util/testargs.php
Normal file
22
util/testargs.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* File: testargs.php
|
||||
*
|
||||
* Purpose:
|
||||
* During installation we need to check if register_argc_argv is
|
||||
* enabled for the command line PHP processor, because otherwise
|
||||
* deliveries will fail. So we will do a shell exec of php and
|
||||
* execute this file with a command line argument, and see if it
|
||||
* echoes the argument back to us. Otherwise notify the person
|
||||
* that their installation doesn't meet the system requirements.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
if (($_SERVER["argc"] > 1) && isset($_SERVER["argv"][1])) {
|
||||
echo $_SERVER["argv"][1];
|
||||
} else {
|
||||
echo '';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue