Trouble Installing suphp

Discussion in 'Installation/Configuration' started by Unfaiir, Mar 11, 2016.

  1. Unfaiir

    Unfaiir Member

    I'm following this guide to setup ISPConfig 3 on CentOS 7: "The Perfect Server - CentOS 7.1 with Apache2, Postfix, Dovecot, Pure-FTPD, BIND and ISPConfig 3

    When I get to the section on installing suphp I get the following error during make:
    Code:
    Making all in src
    make[1]: Entering directory `/usr/local/src/suphp-0.7.2/src'
    make  all-recursive
    make[2]: Entering directory `/usr/local/src/suphp-0.7.2/src'
    Making all in apache
    make[3]: Entering directory `/usr/local/src/suphp-0.7.2/src/apache'
    /bin/sh ../../libtool  --tag=CC  --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src  -I -DSUPHP_PATH_TO_SUPHP=\"/usr/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c -o mod_suphp.lo mod_suphp.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I -DSUPHP_PATH_TO_SUPHP=\"/usr/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c mod_suphp.c  -fPIC -DPIC -o .libs/mod_suphp.o
    mod_suphp.c:24:19: fatal error: httpd.h: No such file or directory
     #include "httpd.h"
      ^
    compilation terminated.
    make[3]: *** [mod_suphp.lo] Error 1
    make[3]: Leaving directory `/usr/local/src/suphp-0.7.2/src/apache'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/local/src/suphp-0.7.2/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/usr/local/src/suphp-0.7.2/src'
    make: *** [all-recursive] Error 1
    
    How can I get past this? Thanks!
     
  2. Unfaiir

    Unfaiir Member

    Answer:
    Code:
    yum install gcc-c++
     

Share This Page