Closed davidmnelson closed 7 years ago
I just noticed this, too, and was going to open an issue.
I'm running PHP 7.0.x, and the option appears to be under "HTTP Headers Information > allow_url_fopen", not "Core > allow_url_fopen", as shown here: https://github.com/munkireport/munkireport-php/blob/master/app/views/system/status.php#L97
Perhaps additional logic is needed like this: https://github.com/munkireport/munkireport-php/blob/master/app/views/system/status.php#L90
Could you provide (sanitised) output from index.php?/system/phpInfo
?
Here's mine:
{
"phpinfo": {
"0": "PHP Version 7.0.16",
"System": "Linux 0bad69d15799 3.10.102 #15101 SMP Fri May 5 12:01:11 CST 2017 x86_64",
"Build Date": "Feb 18 2017 15:05:20",
"Configure Command": " .\/configure '--build=x86_64-alpine-linux-musl' '--host=x86_64-alpine-linux-musl' '--prefix=\/usr' '--program-suffix=7' '--libdir=\/usr\/lib\/php7' '--datadir=\/usr\/share\/php7' '--sysconfdir=\/etc\/php7' '--localstatedir=\/var' '--with-layout=GNU' '--with-pic' '--with-pear=\/usr\/share\/php7' '--with-config-file-path=\/etc\/php7' '--with-config-file-scan-dir=\/etc\/php7\/conf.d' '--disable-short-tags' '--with-openssl=shared' '--with-kerberos' '--with-system-ciphers' '--with-pcre-regex' '--with-pcre-dir' '--with-zlib=shared' '--with-zlib-dir' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-calendar=shared' '--enable-ctype=shared' '--with-curl=shared' '--enable-dba=shared' '--with-gdbm' '--with-db4' '--enable-dom=shared' '--with-enchant=shared' '--enable-exif=shared' '--enable-ftp=shared' '--with-gd=shared' '--with-webp-dir=shared' '--with-jpeg-dir=shared' '--with-png-dir=shared' '--with-xpm-dir=shared' '--with-freetype-dir=shared' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-gettext=shared' '--with-gmp=shared' '--with-iconv=shared' '--with-imap=shared' '--with-imap-ssl' '--enable-intl=shared' '--with-icu-dir=\/usr' '--enable-json=shared' '--enable-libxml=shared' '--with-libxml-dir=shared' '--with-libexpat-dir=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mbstring=shared' '--enable-mbregex' '--with-mcrypt=shared' '--with-sqlite3=shared, \/usr' '--with-pdo-sqlite=shared, \/usr' '--with-pdo-dblib=shared' '--with-mysqli=shared, \/usr\/bin\/mysql_config' '--enable-mysqlnd=shared' '--with-pdo-mysql=shared, \/usr\/bin\/mysql_config' '--with-mysql-sock=\/run\/mysqld\/mysqld.sock' '--with-pgsql=shared' '--with-pdo-pgsql=shared' '--with-unixODBC=shared, \/usr' '-with-pdo-odbc=shared, unixODBC, \/usr' '--with-dbmaker=shared' '--enable-opcache=shared' '--enable-pdo=shared' '--enable-pcntl=shared' '--enable-posix=shared' '--enable-phar=shared' '--with-pspell=shared' '--without-readline' '--with-libedit' '--enable-session=shared' '--enable-shmop=shared' '--with-snmp=shared' '--enable-soap=shared' '--enable-sockets=shared' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--with-tidy=shared' '--enable-xml=shared' '--enable-xmlreader=shared' '--with-xmlrpc=shared' '--with-xsl=shared' '--enable-wddx=shared' '--enable-zip=shared' '--with-libzip=shared' '--disable-phpdbg' '--disable-cgi' '--disable-cli' '--with-apxs2' 'build_alias=x86_64-alpine-linux-musl' 'host_alias=x86_64-alpine-linux-musl'",
"Server API": "Apache 2.0 Handler",
"Virtual Directory Support": "disabled",
"Configuration File (php.ini) Path": "\/etc\/php7",
"Loaded Configuration File": "\/etc\/php7\/php.ini",
"Scan this dir for additional .ini files": "\/etc\/php7\/conf.d",
"Additional .ini files parsed": "\/etc\/php7\/conf.d\/00_json.ini, \n\/etc\/php7\/conf.d\/00_ldap.ini, \n\/etc\/php7\/conf.d\/00_mysqli.ini, \n\/etc\/php7\/conf.d\/00_pdo.ini, \n\/etc\/php7\/conf.d\/00_pdo_mysql.ini, \n\/etc\/php7\/conf.d\/00_session.ini, \n\/etc\/php7\/conf.d\/00_xml.ini, \n\/etc\/php7\/conf.d\/01_dom.ini, \n\/etc\/php7\/conf.d\/01_soap.ini, \n\/etc\/php7\/conf.d\/timezone.ini",
"PHP API": "20151012",
"PHP Extension": "20151012",
"Zend Extension": "320151012",
"Zend Extension Build": "API320151012, NTS",
"PHP Extension Build": "API20151012, NTS",
"Debug Build": "no",
"Thread Safety": "disabled",
"Zend Signal Handling": "disabled",
"Zend Memory Manager": "enabled",
"Zend Multibyte Support": "disabled",
"IPv6 Support": "enabled",
"DTrace Support": "disabled",
"Registered PHP Streams": "php, file, glob, data, http, ftp",
"Registered Stream Socket Transports": "tcp, udp, unix, udg",
"Registered Stream Filters": "string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk",
"1": "This program makes use of the Zend Scripting Language Engine:Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies"
},
"apache2handler": {
"Apache Version": "Apache",
"Apache API Version": "20120211",
"Server Administrator": "you@example.com",
"Hostname:Port": "localhost:0",
"User\/Group": "apache(100)\/101",
"Max Requests": "Per Child: 0 - Keep Alive: on - Max Per Connection: 100",
"Timeouts": "Connection: 60 - Keep-Alive: 5",
"Virtual Server": "No",
"Server Root": "\/var\/www",
"Loaded Modules": "core mod_so http_core mod_authn_file mod_authn_core mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_core mod_access_compat mod_auth_basic mod_reqtimeout mod_filter mod_mime mod_log_config mod_env mod_headers mod_setenvif mod_version prefork mod_unixd mod_status mod_autoindex mod_dir mod_alias mod_rewrite mod_negotiation mod_php7",
"Directive": "Local Value (Master Value)",
"engine": "1 (1)",
"last_modified": "0 (0)",
"xbithack": "0 (0)"
},
"Apache Environment": {
"Variable": "Value",
"HTTP_HOST": "xxx.xxx.xxx.xxx:xxx",
"HTTP_USER_AGENT": "xxxxxxxx",
"HTTP_ACCEPT": "text\/html, application\/xhtml+xml, application\/xml;q=0.9, *\/*;q=0.8",
"HTTP_ACCEPT_LANGUAGE": "en-us",
"HTTP_ACCEPT_ENCODING": "gzip, deflate",
"HTTP_COOKIE": "i18next=en; PHPSESSID=gcoq9drnkojep4d26uo2sh77s7",
"HTTP_CONNECTION": "keep-alive",
"PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
"SERVER_SIGNATURE": "<i>no value<\/i>",
"SERVER_SOFTWARE": "Apache",
"SERVER_NAME": "xxxxxxxx",
"SERVER_ADDR": "xxx.xxx.xxx.xxx",
"SERVER_PORT": "xxx",
"REMOTE_ADDR": "xxx.xxx.xxx.xxx",
"DOCUMENT_ROOT": "\/srv\/www\/app",
"REQUEST_SCHEME": "http",
"CONTEXT_PREFIX": "<i>no value<\/i>",
"CONTEXT_DOCUMENT_ROOT": "\/srv\/www\/app",
"SERVER_ADMIN": "you@example.com",
"SCRIPT_FILENAME": "\/srv\/www\/app\/index.php",
"REMOTE_PORT": "xxx",
"GATEWAY_INTERFACE": "CGI\/1.1",
"SERVER_PROTOCOL": "HTTP\/1.1",
"REQUEST_METHOD": "GET",
"QUERY_STRING": "\/system\/phpInfo",
"REQUEST_URI": "\/index.php?\/system\/phpInfo",
"SCRIPT_NAME": "\/index.php"
},
"HTTP Headers Information": {
"Directive": "Local Value (Master Value)",
"allow_url_fopen": "On (On)",
"allow_url_include": "On (On)",
"arg_separator.input": "& (&)",
"arg_separator.output": "& (&)",
"auto_append_file": "<i>no value<\/i> (<i>no value<\/i>)",
"auto_globals_jit": "On (On)",
"auto_prepend_file": "<i>no value<\/i> (<i>no value<\/i>)",
"browscap": "<i>no value<\/i> (<i>no value<\/i>)",
"default_charset": "UTF-8 (UTF-8)",
"default_mimetype": "text\/html (text\/html)",
"disable_classes": "<i>no value<\/i> (<i>no value<\/i>)",
"disable_functions": "<i>no value<\/i> (<i>no value<\/i>)",
"display_errors": "Off (Off)",
"display_startup_errors": "Off (Off)",
"doc_root": "<i>no value<\/i> (<i>no value<\/i>)",
"docref_ext": "<i>no value<\/i> (<i>no value<\/i>)",
"docref_root": "<i>no value<\/i> (<i>no value<\/i>)",
"enable_dl": "Off (Off)",
"enable_post_data_reading": "On (On)",
"error_append_string": "<i>no value<\/i> (<i>no value<\/i>)",
"error_log": "<i>no value<\/i> (<i>no value<\/i>)",
"error_prepend_string": "<i>no value<\/i> (<i>no value<\/i>)",
"error_reporting": "0 (22527)",
"exit_on_timeout": "Off (Off)",
"expose_php": "Off (Off)",
"extension_dir": "\/usr\/lib\/php7\/modules (\/usr\/lib\/php7\/modules)",
"file_uploads": "On (On)",
"highlight.comment": "<font style=\"color: #FF8000\">#FF8000<\/font> (<font style=\"color: #FF8000\">#FF8000<\/font>)",
"highlight.default": "<font style=\"color: #0000BB\">#0000BB<\/font> (<font style=\"color: #0000BB\">#0000BB<\/font>)",
"highlight.html": "<font style=\"color: #000000\">#000000<\/font> (<font style=\"color: #000000\">#000000<\/font>)",
"highlight.keyword": "<font style=\"color: #007700\">#007700<\/font> (<font style=\"color: #007700\">#007700<\/font>)",
"highlight.string": "<font style=\"color: #DD0000\">#DD0000<\/font> (<font style=\"color: #DD0000\">#DD0000<\/font>)",
"html_errors": "On (On)",
"ignore_repeated_errors": "Off (Off)",
"ignore_repeated_source": "Off (Off)",
"ignore_user_abort": "Off (Off)",
"implicit_flush": "Off (Off)",
"include_path": ".: (.:)",
"input_encoding": "<i>no value<\/i> (<i>no value<\/i>)",
"internal_encoding": "<i>no value<\/i> (<i>no value<\/i>)",
"log_errors": "On (On)",
"log_errors_max_len": "1024 (1024)",
"mail.add_x_header": "On (On)",
"mail.force_extra_parameters": "<i>no value<\/i> (<i>no value<\/i>)",
"mail.log": "<i>no value<\/i> (<i>no value<\/i>)",
"max_execution_time": "30 (30)",
"max_file_uploads": "20 (20)",
"max_input_nesting_level": "64 (64)",
"max_input_time": "60 (60)",
"max_input_vars": "1000 (1000)",
"memory_limit": "128M (128M)",
"open_basedir": "<i>no value<\/i> (<i>no value<\/i>)",
"output_buffering": "4096 (4096)",
"output_encoding": "<i>no value<\/i> (<i>no value<\/i>)",
"output_handler": "<i>no value<\/i> (<i>no value<\/i>)",
"post_max_size": "8M (8M)",
"precision": "14 (14)",
"realpath_cache_size": "4096K (4096K)",
"realpath_cache_ttl": "120 (120)",
"register_argc_argv": "Off (Off)",
"report_memleaks": "On (On)",
"report_zend_debug": "On (On)",
"request_order": "GP (GP)",
"sendmail_from": "<i>no value<\/i> (<i>no value<\/i>)",
"sendmail_path": "\/usr\/sbin\/sendmail -t -i (\/usr\/sbin\/sendmail -t -i )",
"serialize_precision": "17 (17)",
"short_open_tag": "Off (Off)",
"SMTP": "localhost (localhost)",
"smtp_port": "25 (25)",
"sql.safe_mode": "Off (Off)",
"sys_temp_dir": "<i>no value<\/i> (<i>no value<\/i>)",
"track_errors": "Off (Off)",
"unserialize_callback_func": "<i>no value<\/i> (<i>no value<\/i>)",
"upload_max_filesize": "2M (2M)",
"upload_tmp_dir": "<i>no value<\/i> (<i>no value<\/i>)",
"user_dir": "<i>no value<\/i> (<i>no value<\/i>)",
"user_ini.cache_ttl": "300 (300)",
"user_ini.filename": ".user.ini (.user.ini)",
"variables_order": "GPCS (GPCS)",
"xmlrpc_error_number": "0 (0)",
"xmlrpc_errors": "Off (Off)",
"zend.assertions": "-1 (-1)",
"zend.detect_unicode": "On (On)",
"zend.enable_gc": "On (On)",
"zend.multibyte": "Off (Off)",
"zend.script_encoding": "<i>no value<\/i> (<i>no value<\/i>)"
},
"date": {
"date\/time support": "enabled",
""Olson" Timezone Database Version": "2016.10",
"Timezone Database": "internal",
"Default timezone": "America\/Chicago",
"Directive": "Local Value (Master Value)",
"date.default_latitude": "31.7667 (31.7667)",
"date.default_longitude": "35.2333 (35.2333)",
"date.sunrise_zenith": "90.583333 (90.583333)",
"date.sunset_zenith": "90.583333 (90.583333)",
"date.timezone": "America\/Chicago (America\/Chicago)"
},
"dom": {
"DOM\/XML": "enabled",
"DOM\/XML API Version": "20031129",
"libxml Version": "2.9.4",
"HTML Support": "enabled",
"XPath Support": "enabled",
"XPointer Support": "enabled",
"Schema Support": "enabled",
"RelaxNG Support": "enabled"
},
"fileinfo": {
"fileinfo support": "enabled",
"version": "1.0.5",
"libmagic": "522"
},
"filter": {
"Input Validation and Filtering": "enabled",
"Revision": "$Id: 28fcca4bfda9c9907588a64d245b49cb398249d8 $",
"Directive": "Local Value (Master Value)",
"filter.default": "unsafe_raw (unsafe_raw)",
"filter.default_flags": "<i>no value<\/i> (<i>no value<\/i>)"
},
"hash": {
"hash support": "enabled",
"Hashing Engines": "md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128, 3 tiger160, 3 tiger192, 3 tiger128, 4 tiger160, 4 tiger192, 4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128, 3 haval160, 3 haval192, 3 haval224, 3 haval256, 3 haval128, 4 haval160, 4 haval192, 4 haval224, 4 haval256, 4 haval128, 5 haval160, 5 haval192, 5 haval224, 5 haval256, 5"
},
"json": {
"json support": "enabled",
"json version": "1.4.0"
},
"ldap": {
"LDAP Support": "enabled",
"RCS Version": "$Id: 109508bbbecf73ca923b37138cbac56802f1231b $",
"Total Links": "0\/unlimited",
"API Version": "3001",
"Vendor Name": "OpenLDAP",
"Vendor Version": "20444",
"SASL Support": "Enabled",
"Directive": "Local Value (Master Value)",
"ldap.max_links": "Unlimited (Unlimited)"
},
"libxml": {
"libXML support": "active",
"libXML Compiled Version": "2.9.4",
"libXML Loaded Version": "20904",
"libXML streams": "enabled"
},
"mysqli": {
"MysqlI Support": "enabled",
"Client API library version": "10.1.22-MariaDB",
"Active Persistent Links": "0",
"Inactive Persistent Links": "0",
"Active Links": "0",
"Client API header version": "10.1.21-MariaDB",
"MYSQLI_SOCKET": "\/run\/mysqld\/mysqld.sock",
"Directive": "Local Value (Master Value)",
"mysqli.allow_local_infile": "On (On)",
"mysqli.allow_persistent": "On (On)",
"mysqli.default_host": "<i>no value<\/i> (<i>no value<\/i>)",
"mysqli.default_port": "3306 (3306)",
"mysqli.default_pw": "<i>no value<\/i> (<i>no value<\/i>)",
"mysqli.default_socket": "\/run\/mysqld\/mysqld.sock (\/run\/mysqld\/mysqld.sock)",
"mysqli.default_user": "<i>no value<\/i> (<i>no value<\/i>)",
"mysqli.max_links": "Unlimited (Unlimited)",
"mysqli.max_persistent": "Unlimited (Unlimited)",
"mysqli.reconnect": "Off (Off)",
"mysqli.rollback_on_cached_plink": "Off (Off)"
},
"pcre": {
"PCRE (Perl Compatible Regular Expressions) Support": "enabled",
"PCRE Library Version": "8.38 2015-11-23",
"PCRE JIT Support": "enabled",
"Directive": "Local Value (Master Value)",
"pcre.backtrack_limit": "1000000 (1000000)",
"pcre.jit": "1 (1)",
"pcre.recursion_limit": "100000 (100000)"
},
"PDO": {
"PDO support": "enabled",
"PDO drivers": "mysql"
},
"pdo_mysql": {
"PDO Driver for MySQL": "enabled",
"Client API version": "10.1.22-MariaDB",
"Directive": "Local Value (Master Value)",
"pdo_mysql.default_socket": "\/run\/mysqld\/mysqld.sock (\/run\/mysqld\/mysqld.sock)"
},
"Reflection": {
"Reflection": "enabled",
"Version": "$Id: 7d703262f14bc65e05ff76fb3714c945f9bf961a $"
},
"session": {
"Session Support": "enabled",
"Registered save handlers": "files user",
"Registered serializer handlers": "php_serialize php php_binary",
"Directive": "Local Value (Master Value)",
"session.auto_start": "Off (Off)",
"session.cache_expire": "180 (180)",
"session.cache_limiter": "nocache (nocache)",
"session.cookie_domain": "<i>no value<\/i> (<i>no value<\/i>)",
"session.cookie_httponly": "Off (Off)",
"session.cookie_lifetime": "0 (0)",
"session.cookie_path": "\/ (\/)",
"session.cookie_secure": "Off (Off)",
"session.entropy_file": "\/dev\/urandom (\/dev\/urandom)",
"session.entropy_length": "32 (32)",
"session.gc_divisor": "1000 (1000)",
"session.gc_maxlifetime": "1440 (1440)",
"session.gc_probability": "1 (1)",
"session.hash_bits_per_character": "5 (5)",
"session.hash_function": "0 (0)",
"session.lazy_write": "On (On)",
"session.name": "PHPSESSID (PHPSESSID)",
"session.referer_check": "<i>no value<\/i> (<i>no value<\/i>)",
"session.save_handler": "files (files)",
"session.save_path": "<i>no value<\/i> (<i>no value<\/i>)",
"session.serialize_handler": "php (php)",
"session.upload_progress.cleanup": "On (On)",
"session.upload_progress.enabled": "On (On)",
"session.upload_progress.freq": "1% (1%)",
"session.upload_progress.min_freq": "1 (1)",
"session.upload_progress.name": "PHP_SESSION_UPLOAD_PROGRESS (PHP_SESSION_UPLOAD_PROGRESS)",
"session.upload_progress.prefix": "upload_progress_ (upload_progress_)",
"session.use_cookies": "On (On)",
"session.use_only_cookies": "On (On)",
"session.use_strict_mode": "Off (Off)",
"session.use_trans_sid": "0 (0)"
},
"SimpleXML": {
"Simplexml support": "enabled",
"Revision": "$Id: b8b5c37931a53e50a937c0aef2a26d351e173215 $",
"Schema support": "enabled"
},
"soap": {
"Soap Client": "enabled",
"Soap Server": "enabled",
"Directive": "Local Value (Master Value)",
"soap.wsdl_cache": "1 (1)",
"soap.wsdl_cache_dir": "\/tmp (\/tmp)",
"soap.wsdl_cache_enabled": "1 (1)",
"soap.wsdl_cache_limit": "5 (5)",
"soap.wsdl_cache_ttl": "86400 (86400)"
},
"SPL": {
"SPL support": "enabled",
"Interfaces": "Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject",
"Classes": "AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException"
},
"standard": {
"Dynamic Library Support": "enabled",
"Path to sendmail": "\/usr\/sbin\/sendmail -t -i",
"Directive": "Local Value (Master Value)",
"assert.active": "1 (1)",
"assert.bail": "0 (0)",
"assert.callback": "<i>no value<\/i> (<i>no value<\/i>)",
"assert.exception": "0 (0)",
"assert.quiet_eval": "0 (0)",
"assert.warning": "1 (1)",
"auto_detect_line_endings": "0 (0)",
"default_socket_timeout": "60 (60)",
"from": "<i>no value<\/i> (<i>no value<\/i>)",
"url_rewriter.tags": "a=href,area=href,frame=src,input=src,form=fakeentry (a=href,area=href,frame=src,input=src,form=fakeentry)",
"user_agent": "<i>no value<\/i> (<i>no value<\/i>)"
},
"tokenizer": {
"Tokenizer Support": "enabled"
},
"xml": {
"XML Support": "active",
"XML Namespace Support": "active",
"EXPAT Version": "expat_2.2.0"
},
"xmlwriter": {
"XMLWriter": "enabled"
},
"Additional Modules": [
"Module Name"
]
}
The MunkiReport System Status page says "No" next to "Remote URL access" but I believe it is mistaken.
allow_url_fopen is enabled in /etc/php.ini. Created a page containing
<?php phpinfo() ?>
to confirm.And GSX/model info is populating correctly for new clients.
Running fully updated CentOS 7 with PHP 7.1 from remi-php71 repo.
[root@munki repo]# httpd -v Server version: Apache/2.4.6 (CentOS) Server built: Apr 12 2017 21:03:28 [root@munki repo]# php -v PHP 7.1.5 (cli) (built: May 9 2017 18:30:17) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.5, Copyright (c) 1999-2017, by Zend Technologies