{"id":1387,"date":"2015-09-19T00:05:08","date_gmt":"2015-09-19T00:05:08","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=1387"},"modified":"2015-09-19T00:05:08","modified_gmt":"2015-09-19T00:05:08","slug":"how-to-check-which-apache-modules-are-installed-using-php","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2015\/09\/how-to-check-which-apache-modules-are-installed-using-php\/","title":{"rendered":"How to check which apache modules are installed using php?"},"content":{"rendered":"<p>If you don&#8217;t have command line access use this code to see which apache modules are installed.<\/p>\n<pre lang=\"php\">\r\n  <?php\r\n    print_r(apache_get_modules());\r\n    ?>\r\n<\/pre>\n<p>This will show a list like that.<br \/>\nBy the way this not my server \ud83d\ude42<\/p>\n<p> Array<br \/>\n(<br \/>\n    [0] => core<br \/>\n    [1] => prefork<br \/>\n    [2] => http_core<br \/>\n    [3] => mod_so<br \/>\n    [4] => mod_auth_basic<br \/>\n    [5] => mod_auth_digest<br \/>\n    [6] => mod_authn_file<br \/>\n    [7] => mod_authn_alias<br \/>\n    [8] => mod_authn_anon<br \/>\n    [9] => mod_authn_dbm<br \/>\n    [10] => mod_authn_default<br \/>\n    [11] => mod_authz_host<br \/>\n    [12] => mod_authz_user<br \/>\n    [13] => mod_authz_owner<br \/>\n    [14] => mod_authz_groupfile<br \/>\n    [15] => mod_authz_dbm<br \/>\n    [16] => mod_authz_default<br \/>\n    [17] => util_ldap<br \/>\n    [18] => mod_authnz_ldap<br \/>\n    [19] => mod_include<br \/>\n    [20] => mod_log_config<br \/>\n    [21] => mod_logio<br \/>\n    [22] => mod_env<br \/>\n    [23] => mod_ext_filter<br \/>\n    [24] => mod_mime_magic<br \/>\n    [25] => mod_expires<br \/>\n    [26] => mod_deflate<br \/>\n    [27] => mod_headers<br \/>\n    [28] => mod_usertrack<br \/>\n    [29] => mod_setenvif<br \/>\n    [30] => mod_mime<br \/>\n    [31] => mod_dav<br \/>\n    [32] => mod_status<br \/>\n    [33] => mod_autoindex<br \/>\n    [34] => mod_info<br \/>\n    [35] => mod_dav_fs<br \/>\n    [36] => mod_vhost_alias<br \/>\n    [37] => mod_negotiation<br \/>\n    [38] => mod_dir<br \/>\n    [39] => mod_actions<br \/>\n    [40] => mod_speling<br \/>\n    [41] => mod_userdir<br \/>\n    [42] => mod_alias<br \/>\n    [43] => mod_substitute<br \/>\n    [44] => mod_rewrite<br \/>\n    [45] => mod_proxy<br \/>\n    [46] => mod_proxy_balancer<br \/>\n    [47] => mod_proxy_ftp<br \/>\n    [48] => mod_proxy_http<br \/>\n    [49] => mod_proxy_ajp<br \/>\n    [50] => mod_proxy_connect<br \/>\n    [51] => mod_cache<br \/>\n    [52] => mod_suexec<br \/>\n    [53] => mod_disk_cache<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you don&#8217;t have command line access use this code to see which apache modules are installed. This will show a list like that. By the way this not my server \ud83d\ude42 Array ( [0] => core [1] => prefork [2] => http_core [3] => mod_so [4] => mod_auth_basic [5] => mod_auth_digest [6] => mod_authn_file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[41,3],"tags":[],"class_list":["post-1387","post","type-post","status-publish","format-standard","hentry","category-apache","category-php"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=1387"}],"version-history":[{"count":1,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1387\/revisions"}],"predecessor-version":[{"id":1388,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/1387\/revisions\/1388"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=1387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=1387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=1387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}