allow_url_include is a PHP setting that lets include and require load code from a remote URL. /go/allowurlinclude sets it in every php.ini on the server in one run. It: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Turn allow_url_include off in every php.ini
/go/allowurlinclude Off
Arguments
| Argument | Effect |
|---|---|
| (none) | Sets allow_url_include = Off in every php.ini. |
On or Off |
Sets that value in every php.ini. |
return |
Prints the current value and changes nothing. Not case sensitive. |
| Any other text | Written to the setting as typed. The value is not checked. |
If you pass several words, they are joined with spaces and all written as the value. Pass a single value, normally On or Off.
Examples
# Turn the setting off everywhere
/go/allowurlinclude Off
# Read the current value
/go/allowurlinclude return
# See the setting in every php.ini
grep -rH "^allow_url_include" /etc/php.ini /etc/php /etc/opt/remi 2>/dev/null
# Review the log of past runs
tail -n 20 /var/log/go/allowurlinclude.log
Output
| Message | Meaning |
|---|---|
Allow URL Include updated successfully. |
The run finished. It is printed even when no php.ini was found or changed. |
On or Off |
The current value, printed by return. |
| (an empty line) | return found no active allow_url_include line in the first file. |
return exits with status 1.
See the full reference at /go/allowurlinclude and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
