apache
apache

mod_python安装、运行报错fatal: Not a git repository (or any of the parent directories): .git

一、环境

环境:Rhel 7.0
Apache 2.4.10
Python 2.7.5
Mod_python 3.5.0

二、报错

安装到make时报错如下

[root@jkhost mod_python-3.5.0]# make
make[1]: 进入目录“/home/soft/mod_python-3.5.0/src”
fatal: Not a git repository (or any of the parent directories): .git

Building mod_python.so.

安装与配置Nagios 3.5及安装中文插件

[php]# yum install -y fontconfig-devel xorg-x11-proto-devel libXau-devel libXdmcp libXdmcp-devel libxcb-devel libX11-devel libXpm libXpm-devel lm_sensors-libs net-snmp-libs gcc glibc glibc-common gd gd-devel make net-snmp[/php]
2.创建nagios用户和用户组

[php]

# useradd nagios
# groupadd nagios
# usermod -a -G nagios nagios

重启apache报Cannot load /usr/local/apache/modules/libphp5.so错误的解决方法

重新启动apache报如下错误:httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied 解决办法:

原因是Linux有一个SELinux保护模式引起的。

1关闭SELINUX的方法: vi /etc/selinux/config 将SELINUX=enforcing 改成SELINUX=disabled 需要重启