Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
matisse
Posts: 30 Joined: Wed Aug 31, 2016 4:33 pm
Post
by matisse » Thu Mar 30, 2017 3:53 pm
Hello, i installed nagios 4.3.1 on Centos 7.3 with Apache 2.4.25. But on my address
http://domain.com/nagios i got php code of main page. How can i fix it?
It's my settings:
PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Code: Select all
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
</IfVersion>
<IfVersion < 2.3>
# Order allow,deny
# Allow from all
Order deny,allow
Deny from all
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 5.18.205.172
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>
And
Code: Select all
ls -la ./share/
total 180
drwxrwxr-x 15 nagios nagios 4096 Mar 30 22:46 .
drwxr-xr-x 9 root root 4096 Mar 30 22:46 ..
drwxrwxr-x 4 nagios nagios 4096 Mar 30 22:39 angularjs
drwxrwxr-x 3 nagios nagios 4096 Mar 30 22:39 bootstrap-3.3.0
-rwxrw-r-- 1 nagios nagios 576 Mar 30 22:39 config.inc.php
drwxrwxr-x 2 nagios nagios 4096 Mar 30 22:39 contexthelp
drwxrwxr-x 2 nagios nagios 4096 Mar 30 22:39 d3
drwxrwxr-x 3 nagios nagios 4096 Mar 30 22:39 docs
-rwxrw-r-- 1 nagios nagios 879 Mar 30 22:39 graph-header.html
-rwxrw-r-- 1 nagios nagios 4136 Mar 30 22:39 histogram-form.html
-rwxrw-r-- 1 nagios nagios 5579 Mar 30 22:39 histogram-graph.html
-rwxrw-r-- 1 nagios nagios 2855 Mar 30 22:39 histogram.html
-rwxrw-r-- 1 nagios nagios 2372 Mar 30 22:39 histogram-links.html
drwxr-xr-x 3 nagios nagios 4096 Mar 30 22:39 images
drwxrwxr-x 2 nagios nagios 4096 Mar 30 22:39 includes
-rwxrw-r-- 1 nagios nagios 1930 Mar 30 22:39 index.php
-rwxrw-r-- 1 nagios nagios 1660 Mar 30 22:39 infobox.html
drwxrwxr-x 2 nagios nagios 4096 Mar 30 22:39 js
-rwxrw-r-- 1 nagios nagios 1177 Mar 30 22:39 jsonquery.html
drwxr-xr-x 4 root root 4096 Mar 30 22:46 locale
-rwxrw-r-- 1 nagios nagios 9164 Mar 30 22:39 main.php
-rwxrw-r-- 1 nagios nagios 2015 Mar 30 22:39 map-directive.html
-rwxrw-r-- 1 nagios nagios 3824 Mar 30 22:39 map-form.html
-rwxrw-r-- 1 nagios nagios 647 Mar 30 22:39 map-links.html
-rwxrw-r-- 1 nagios nagios 3993 Mar 30 22:39 map.php
-rwxrw-r-- 1 nagios nagios 1723 Mar 30 22:39 map-popup.html
drwxrwxr-x 2 nagios nagios 4096 Mar 30 22:39 media
-rwxrw-r-- 1 nagios nagios 26 Mar 30 22:39 robots.txt
-rwxrw-r-- 1 nagios nagios 6193 Mar 30 22:39 side.php
drwxrwxr-x 2 nagios nagios 4096 Mar 30 22:39 spin
drwxrwxr-x 2 nagios nagios 4096 Mar 30 22:39 ssi
drwxr-xr-x 2 nagios nagios 4096 Mar 30 22:39 stylesheets
-rwxrw-r-- 1 nagios nagios 4243 Mar 30 22:39 trends-form.html
-rwxrw-r-- 1 nagios nagios 4256 Mar 30 22:39 trends-graph.html
-rwxrw-r-- 1 nagios nagios 852 Mar 30 22:39 trends-host-yaxis.html
-rwxrw-r-- 1 nagios nagios 2990 Mar 30 22:39 trends.html
-rwxrw-r-- 1 nagios nagios 3586 Mar 30 22:39 trends-links.html
-rwxrw-r-- 1 nagios nagios 1065 Mar 30 22:39 trends-service-yaxis.html
Thanks!
mcapra
Posts: 3739 Joined: Thu May 05, 2016 3:54 pm
Post
by mcapra » Thu Mar 30, 2017 3:57 pm
Did you follow a particular guide when you set this machine up?
Can you share the output of:
Code: Select all
service httpd restart
apachectl -M | grep php
cat /etc/httpd/conf.d/php.conf
matisse
Posts: 30 Joined: Wed Aug 31, 2016 4:33 pm
Post
by matisse » Thu Mar 30, 2017 4:13 pm
Yes. i did. In first time i haven't got problem with installing in other server.
cat /etc/httpd/conf.d/php.conf
Code: Select all
#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
#
# Allow php to handle Multiviews
#
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following lines to allow PHP to pretty-print .phps
# files as PHP source code:
#
#<FilesMatch \.phps$>
# SetHandler application/x-httpd-php-source
#</FilesMatch>
#
# Apache specific PHP configuration options
# those can be override in each configured vhost
#
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
apachectl -M | grep php - Nothing shows. And service httpd restart- successful restart.
mcapra
Posts: 3739 Joined: Thu May 05, 2016 3:54 pm
Post
by mcapra » Thu Mar 30, 2017 4:27 pm
Can you share the guide you used?
matisse wrote: apachectl -M | grep php - Nothing shows.
This is likely part of the problem. If you can share the guide you used, it might be easier to identify the correct solution based on the steps presented in the guide.
Can you share the output of:
Code: Select all
ls -al /etc/httpd/modules/
grep '' /etc/httpd/conf.modules.d/*
cat /etc/httpd/conf/httpd.conf | grep Include
matisse
Posts: 30 Joined: Wed Aug 31, 2016 4:33 pm
Post
by matisse » Thu Mar 30, 2017 4:36 pm
Here your are please -
https://www.unixmen.com/install-configu ... -centos-7/
ls -al /etc/httpd/modules/
Code: Select all
total 6960
drwxr-xr-x 2 root root 4096 Mar 30 22:54 .
drwxr-xr-x 3 root root 4096 Mar 30 22:54 ..
-rwxr-xr-x 1 root root 4592592 Nov 6 03:32 libphp5.so
-rwxr-xr-x 1 root root 11208 Nov 14 21:05 mod_access_compat.so
-rwxr-xr-x 1 root root 11168 Nov 14 21:05 mod_actions.so
-rwxr-xr-x 1 root root 15360 Nov 14 21:05 mod_alias.so
-rwxr-xr-x 1 root root 11136 Nov 14 21:05 mod_allowmethods.so
-rwxr-xr-x 1 root root 11088 Nov 14 21:05 mod_asis.so
-rwxr-xr-x 1 root root 15328 Nov 14 21:05 mod_auth_basic.so
-rwxr-xr-x 1 root root 36056 Nov 14 21:05 mod_auth_digest.so
-rwxr-xr-x 1 root root 11152 Nov 14 21:05 mod_authn_anon.so
-rwxr-xr-x 1 root root 15360 Nov 14 21:05 mod_authn_core.so
-rwxr-xr-x 1 root root 15264 Nov 14 21:05 mod_authn_dbd.so
-rwxr-xr-x 1 root root 11184 Nov 14 21:05 mod_authn_dbm.so
-rwxr-xr-x 1 root root 11168 Nov 14 21:05 mod_authn_file.so
-rwxr-xr-x 1 root root 19536 Nov 14 21:05 mod_authn_socache.so
-rwxr-xr-x 1 root root 23736 Nov 14 21:05 mod_authz_core.so
-rwxr-xr-x 1 root root 15288 Nov 14 21:05 mod_authz_dbd.so
-rwxr-xr-x 1 root root 11200 Nov 14 21:05 mod_authz_dbm.so
-rwxr-xr-x 1 root root 11192 Nov 14 21:05 mod_authz_groupfile.so
-rwxr-xr-x 1 root root 11176 Nov 14 21:05 mod_authz_host.so
-rwxr-xr-x 1 root root 11136 Nov 14 21:05 mod_authz_owner.so
-rwxr-xr-x 1 root root 7032 Nov 14 21:05 mod_authz_user.so
-rwxr-xr-x 1 root root 40064 Nov 14 21:05 mod_autoindex.so
-rwxr-xr-x 1 root root 11160 Nov 14 21:05 mod_buffer.so
-rwxr-xr-x 1 root root 36088 Nov 14 21:05 mod_cache_disk.so
-rwxr-xr-x 1 root root 77368 Nov 14 21:05 mod_cache.so
-rwxr-xr-x 1 root root 36056 Nov 14 21:05 mod_cache_socache.so
-rwxr-xr-x 1 root root 36096 Nov 14 21:05 mod_cgid.so
-rwxr-xr-x 1 root root 27704 Nov 14 21:05 mod_cgi.so
-rwxr-xr-x 1 root root 23584 Nov 14 21:05 mod_charset_lite.so
-rwxr-xr-x 1 root root 11088 Nov 14 21:05 mod_data.so
-rwxr-xr-x 1 root root 57120 Nov 14 21:05 mod_dav_fs.so
-rwxr-xr-x 1 root root 19632 Nov 14 21:05 mod_dav_lock.so
-rwxr-xr-x 1 root root 102400 Nov 14 21:05 mod_dav.so
-rwxr-xr-x 1 root root 23624 Nov 14 21:05 mod_dbd.so
-rwxr-xr-x 1 root root 31824 Nov 14 21:05 mod_deflate.so
-rwxr-xr-x 1 root root 11168 Nov 14 21:05 mod_dialup.so
-rwxr-xr-x 1 root root 15272 Nov 14 21:05 mod_dir.so
-rwxr-xr-x 1 root root 11192 Nov 14 21:05 mod_dumpio.so
-rwxr-xr-x 1 root root 11152 Nov 14 21:05 mod_echo.so
-rwxr-xr-x 1 root root 11176 Nov 14 21:05 mod_env.so
-rwxr-xr-x 1 root root 15312 Nov 14 21:05 mod_expires.so
-rwxr-xr-x 1 root root 23536 Nov 14 21:05 mod_ext_filter.so
-rwxr-xr-x 1 root root 15408 Nov 14 21:05 mod_file_cache.so
-rwxr-xr-x 1 root root 19416 Nov 14 21:05 mod_filter.so
-rwxr-xr-x 1 root root 23760 Nov 14 21:05 mod_headers.so
-rwxr-xr-x 1 root root 11184 Nov 14 21:05 mod_heartbeat.so
-rwxr-xr-x 1 root root 23576 Nov 14 21:05 mod_heartmonitor.so
-rwxr-xr-x 1 root root 52520 Nov 14 21:05 mod_include.so
-rwxr-xr-x 1 root root 28120 Nov 14 21:05 mod_info.so
-rwxr-xr-x 1 root root 11128 Nov 14 21:05 mod_lbmethod_bybusyness.so
-rwxr-xr-x 1 root root 11128 Nov 14 21:05 mod_lbmethod_byrequests.so
-rwxr-xr-x 1 root root 11120 Nov 14 21:05 mod_lbmethod_bytraffic.so
-rwxr-xr-x 1 root root 15312 Nov 14 21:05 mod_lbmethod_heartbeat.so
-rwxr-xr-x 1 root root 32304 Nov 14 21:05 mod_log_config.so
-rwxr-xr-x 1 root root 15384 Nov 14 21:05 mod_log_debug.so
-rwxr-xr-x 1 root root 11208 Nov 14 21:05 mod_log_forensic.so
-rwxr-xr-x 1 root root 11216 Nov 14 21:05 mod_logio.so
-rwxr-xr-x 1 root root 117088 Nov 14 21:05 mod_lua.so
-rwxr-xr-x 1 root root 19432 Nov 14 21:05 mod_macro.so
-rwxr-xr-x 1 root root 27728 Nov 14 21:05 mod_mime_magic.so
-rwxr-xr-x 1 root root 19520 Nov 14 21:05 mod_mime.so
-rwxr-xr-x 1 root root 61048 Nov 14 21:05 mod_mpm_event.so
-rwxr-xr-x 1 root root 31872 Nov 14 21:05 mod_mpm_prefork.so
-rwxr-xr-x 1 root root 48528 Nov 14 21:05 mod_mpm_worker.so
-rwxr-xr-x 1 root root 35992 Nov 14 21:05 mod_negotiation.so
-rwxr-xr-x 1 root root 52424 Nov 14 21:05 mod_proxy_ajp.so
-rwxr-xr-x 1 root root 48168 Nov 14 21:05 mod_proxy_balancer.so
-rwxr-xr-x 1 root root 19392 Nov 14 21:05 mod_proxy_connect.so
-rwxr-xr-x 1 root root 15280 Nov 14 21:05 mod_proxy_express.so
-rwxr-xr-x 1 root root 19360 Nov 14 21:05 mod_proxy_fcgi.so
-rwxr-xr-x 1 root root 11144 Nov 14 21:05 mod_proxy_fdpass.so
-rwxr-xr-x 1 root root 44176 Nov 14 21:05 mod_proxy_ftp.so
-rwxr-xr-x 1 root root 39952 Nov 14 21:05 mod_proxy_http.so
-rwxr-xr-x 1 root root 19448 Nov 14 21:05 mod_proxy_scgi.so
-rwxr-xr-x 1 root root 118784 Nov 14 21:05 mod_proxy.so
-rwxr-xr-x 1 root root 19344 Nov 14 21:05 mod_proxy_wstunnel.so
-rwxr-xr-x 1 root root 11160 Nov 14 21:05 mod_ratelimit.so
-rwxr-xr-x 1 root root 11160 Nov 14 21:05 mod_reflector.so
-rwxr-xr-x 1 root root 15296 Nov 14 21:05 mod_remoteip.so
-rwxr-xr-x 1 root root 15312 Nov 14 21:05 mod_reqtimeout.so
-rwxr-xr-x 1 root root 15344 Nov 14 21:05 mod_request.so
-rwxr-xr-x 1 root root 69056 Nov 14 21:05 mod_rewrite.so
-rwxr-xr-x 1 root root 40296 Nov 14 21:05 mod_sed.so
-rwxr-xr-x 1 root root 15320 Nov 14 21:05 mod_setenvif.so
-rwxr-xr-x 1 root root 11232 Nov 14 21:05 mod_slotmem_plain.so
-rwxr-xr-x 1 root root 15392 Nov 14 21:05 mod_slotmem_shm.so
-rwxr-xr-x 1 root root 15320 Nov 14 21:05 mod_socache_dbm.so
-rwxr-xr-x 1 root root 11176 Nov 14 21:05 mod_socache_memcache.so
-rwxr-xr-x 1 root root 23560 Nov 14 21:05 mod_socache_shmcb.so
-rwxr-xr-x 1 root root 15264 Nov 14 21:05 mod_speling.so
-rwxr-xr-x 1 root root 23464 Nov 14 21:05 mod_status.so
-rwxr-xr-x 1 root root 15264 Nov 14 21:05 mod_substitute.so
-rwxr-xr-x 1 root root 11168 Nov 14 21:05 mod_suexec.so
-rwxr-xr-x 1 root root 11112 Nov 14 21:05 mod_systemd.so
-rwxr-xr-x 1 root root 11136 Nov 14 21:05 mod_unique_id.so
-rwxr-xr-x 1 root root 15296 Nov 14 21:05 mod_unixd.so
-rwxr-xr-x 1 root root 11160 Nov 14 21:05 mod_userdir.so
-rwxr-xr-x 1 root root 15312 Nov 14 21:05 mod_usertrack.so
-rwxr-xr-x 1 root root 11096 Nov 14 21:05 mod_version.so
-rwxr-xr-x 1 root root 15272 Nov 14 21:05 mod_vhost_alias.so
-rwxr-xr-x 1 root root 19472 Nov 14 21:05 mod_watchdog.so
grep '' /etc/httpd/conf.modules.d/*
Code: Select all
/etc/httpd/conf.modules.d/00-base.conf:#
/etc/httpd/conf.modules.d/00-base.conf:# This file loads most of the modules included with the Apache HTTP
/etc/httpd/conf.modules.d/00-base.conf:# Server itself.
/etc/httpd/conf.modules.d/00-base.conf:#
/etc/httpd/conf.modules.d/00-base.conf:
/etc/httpd/conf.modules.d/00-base.conf:LoadModule access_compat_module modules/mod_access_compat.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule actions_module modules/mod_actions.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule alias_module modules/mod_alias.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule allowmethods_module modules/mod_allowmethods.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule auth_basic_module modules/mod_auth_basic.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule auth_digest_module modules/mod_auth_digest.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authn_anon_module modules/mod_authn_anon.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authn_core_module modules/mod_authn_core.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authn_dbd_module modules/mod_authn_dbd.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authn_dbm_module modules/mod_authn_dbm.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authn_file_module modules/mod_authn_file.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authn_socache_module modules/mod_authn_socache.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authz_core_module modules/mod_authz_core.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authz_dbd_module modules/mod_authz_dbd.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authz_dbm_module modules/mod_authz_dbm.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authz_host_module modules/mod_authz_host.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authz_owner_module modules/mod_authz_owner.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule authz_user_module modules/mod_authz_user.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule autoindex_module modules/mod_autoindex.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule cache_module modules/mod_cache.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule cache_disk_module modules/mod_cache_disk.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule data_module modules/mod_data.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule dbd_module modules/mod_dbd.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule deflate_module modules/mod_deflate.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule dir_module modules/mod_dir.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule dumpio_module modules/mod_dumpio.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule echo_module modules/mod_echo.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule env_module modules/mod_env.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule expires_module modules/mod_expires.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule ext_filter_module modules/mod_ext_filter.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule filter_module modules/mod_filter.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule headers_module modules/mod_headers.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule include_module modules/mod_include.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule info_module modules/mod_info.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule log_config_module modules/mod_log_config.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule logio_module modules/mod_logio.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule mime_magic_module modules/mod_mime_magic.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule mime_module modules/mod_mime.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule negotiation_module modules/mod_negotiation.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule remoteip_module modules/mod_remoteip.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule reqtimeout_module modules/mod_reqtimeout.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule rewrite_module modules/mod_rewrite.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule setenvif_module modules/mod_setenvif.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule socache_dbm_module modules/mod_socache_dbm.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule socache_memcache_module modules/mod_socache_memcache.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule status_module modules/mod_status.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule substitute_module modules/mod_substitute.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule suexec_module modules/mod_suexec.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule unique_id_module modules/mod_unique_id.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule unixd_module modules/mod_unixd.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule userdir_module modules/mod_userdir.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule version_module modules/mod_version.so
/etc/httpd/conf.modules.d/00-base.conf:LoadModule vhost_alias_module modules/mod_vhost_alias.so
/etc/httpd/conf.modules.d/00-base.conf:
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule buffer_module modules/mod_buffer.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule watchdog_module modules/mod_watchdog.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule heartbeat_module modules/mod_heartbeat.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule heartmonitor_module modules/mod_heartmonitor.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule usertrack_module modules/mod_usertrack.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule dialup_module modules/mod_dialup.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule charset_lite_module modules/mod_charset_lite.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule log_debug_module modules/mod_log_debug.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule ratelimit_module modules/mod_ratelimit.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule reflector_module modules/mod_reflector.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule request_module modules/mod_request.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule sed_module modules/mod_sed.so
/etc/httpd/conf.modules.d/00-base.conf:#LoadModule speling_module modules/mod_speling.so
/etc/httpd/conf.modules.d/00-base.conf:
/etc/httpd/conf.modules.d/00-dav.conf:LoadModule dav_module modules/mod_dav.so
/etc/httpd/conf.modules.d/00-dav.conf:LoadModule dav_fs_module modules/mod_dav_fs.so
/etc/httpd/conf.modules.d/00-dav.conf:LoadModule dav_lock_module modules/mod_dav_lock.so
/etc/httpd/conf.modules.d/00-lua.conf:LoadModule lua_module modules/mod_lua.so
/etc/httpd/conf.modules.d/00-mpm.conf:# Select the MPM module which should be used by uncommenting exactly
/etc/httpd/conf.modules.d/00-mpm.conf:# one of the following LoadModule lines:
/etc/httpd/conf.modules.d/00-mpm.conf:
/etc/httpd/conf.modules.d/00-mpm.conf:# prefork MPM: Implements a non-threaded, pre-forking web server
/etc/httpd/conf.modules.d/00-mpm.conf:# See: http://httpd.apache.org/docs/2.4/mod/prefork.html
/etc/httpd/conf.modules.d/00-mpm.conf:LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
/etc/httpd/conf.modules.d/00-mpm.conf:
/etc/httpd/conf.modules.d/00-mpm.conf:# worker MPM: Multi-Processing Module implementing a hybrid
/etc/httpd/conf.modules.d/00-mpm.conf:# multi-threaded multi-process web server
/etc/httpd/conf.modules.d/00-mpm.conf:# See: http://httpd.apache.org/docs/2.4/mod/worker.html
/etc/httpd/conf.modules.d/00-mpm.conf:#
/etc/httpd/conf.modules.d/00-mpm.conf:#LoadModule mpm_worker_module modules/mod_mpm_worker.so
/etc/httpd/conf.modules.d/00-mpm.conf:
/etc/httpd/conf.modules.d/00-mpm.conf:# event MPM: A variant of the worker MPM with the goal of consuming
/etc/httpd/conf.modules.d/00-mpm.conf:# threads only for connections with active processing
/etc/httpd/conf.modules.d/00-mpm.conf:# See: http://httpd.apache.org/docs/2.4/mod/event.html
/etc/httpd/conf.modules.d/00-mpm.conf:#
/etc/httpd/conf.modules.d/00-mpm.conf:#LoadModule mpm_event_module modules/mod_mpm_event.so
/etc/httpd/conf.modules.d/00-mpm.conf:
/etc/httpd/conf.modules.d/00-proxy.conf:# This file configures all the proxy modules:
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_module modules/mod_proxy.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_connect_module modules/mod_proxy_connect.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_express_module modules/mod_proxy_express.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_http_module modules/mod_proxy_http.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
/etc/httpd/conf.modules.d/00-systemd.conf:# This file configures systemd module:
/etc/httpd/conf.modules.d/00-systemd.conf:LoadModule systemd_module modules/mod_systemd.so
/etc/httpd/conf.modules.d/01-cgi.conf:# This configuration file loads a CGI module appropriate to the MPM
/etc/httpd/conf.modules.d/01-cgi.conf:# which has been configured in 00-mpm.conf. mod_cgid should be used
/etc/httpd/conf.modules.d/01-cgi.conf:# with a threaded MPM; mod_cgi with the prefork MPM.
/etc/httpd/conf.modules.d/01-cgi.conf:
/etc/httpd/conf.modules.d/01-cgi.conf:<IfModule mpm_worker_module>
/etc/httpd/conf.modules.d/01-cgi.conf: LoadModule cgid_module modules/mod_cgid.so
/etc/httpd/conf.modules.d/01-cgi.conf:</IfModule>
/etc/httpd/conf.modules.d/01-cgi.conf:<IfModule mpm_event_module>
/etc/httpd/conf.modules.d/01-cgi.conf: LoadModule cgid_module modules/mod_cgid.so
/etc/httpd/conf.modules.d/01-cgi.conf:</IfModule>
/etc/httpd/conf.modules.d/01-cgi.conf:<IfModule mpm_prefork_module>
/etc/httpd/conf.modules.d/01-cgi.conf: LoadModule cgi_module modules/mod_cgi.so
/etc/httpd/conf.modules.d/01-cgi.conf:</IfModule>
/etc/httpd/conf.modules.d/01-cgi.conf:
/etc/httpd/conf.modules.d/10-php.conf:#
/etc/httpd/conf.modules.d/10-php.conf:# PHP is an HTML-embedded scripting language which attempts to make it
/etc/httpd/conf.modules.d/10-php.conf:# easy for developers to write dynamically generated webpages.
/etc/httpd/conf.modules.d/10-php.conf:#
/etc/httpd/conf.modules.d/10-php.conf:<IfModule prefork.c>
/etc/httpd/conf.modules.d/10-php.conf: LoadModule php5_module modules/libphp5.so
/etc/httpd/conf.modules.d/10-php.conf:</IfModule>
/etc/httpd/conf.modules.d/10-php.conf:
cat /etc/httpd/conf/httpd.conf | grep Include
Code: Select all
Include conf.modules.d/*.conf
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# (You will also need to add "Includes" to the "Options" directive.)
IncludeOptional conf.d/*.conf
matisse
Posts: 30 Joined: Wed Aug 31, 2016 4:33 pm
Post
by matisse » Thu Mar 30, 2017 6:29 pm
I changed my settings, now i get:
Code: Select all
apachectl -M | grep php
php5_module (shared)
But it's didn't help me.
dwhitfield
Former Nagios Staff
Posts: 4583 Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:
Post
by dwhitfield » Thu Mar 30, 2017 6:36 pm
I doubt this is the line that is the issue, but the first line of our instructions
yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel has more dependencies than the instructions you posted.
I would suggest using
https://support.nagios.com/kb/article.php?id=96 and seeing if you still have problems.
rkennedy
Posts: 6579 Joined: Mon Oct 05, 2015 11:45 am
Post
by rkennedy » Mon Apr 03, 2017 10:31 pm
What is outputted from rpm -qa | grep php ?
Former Nagios Employee
tmcdonald
Posts: 9117 Joined: Mon Sep 23, 2013 8:40 am
Post
by tmcdonald » Tue Apr 04, 2017 10:32 am
@matisse , let us know what you come up with from the KB article and the
rpm output.
Former Nagios employee