The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

compile PHP with PostgreSQL ?

Discussion in 'General Discussion' started by rickyliu, Jul 21, 2003.

  1. rickyliu

    rickyliu Member

    Joined:
    Oct 18, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I want to compile php with postgersql module. but had some problems.

    I already install postgresql 7.3.3 database from /usr/ports .

    when I try to build apache and recompile PHP with PostgerSQL from WHM, I found those error msg bellow in WHM.

    I don't know why I can't recompile PHP in WHM . :(

    can I just compile PHP from source by myself ? anyone did it before ?

    checking for PostgreSQL support... yes
    configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
    make: no target to make.
    make: don't know how to make install. Stop
    if [ "`grep "mod_bwlimited/1.0" /usr/local/apache/libexec/mod_bwlimited.so`" = "" ]; then /usr/local/apache/bin/apxs -c mod_bwlimited.c ;fi
    grep: /usr/local/apache/libexec/mod_bwlimited.so: No such file or directory
    gcc -funsigned-char -DMOD_SSL=208115 -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -c mod_bwlimited.c
    gcc -shared -o mod_bwlimited.so mod_bwlimited.o
    if [ "`grep "mod_log_bytes/1.2" /usr/local/apache/libexec/mod_log_bytes.so`" = "" ]; then /usr/local/apache/bin/apxs -c mod_log_bytes.c ;fi
    grep: /usr/local/apache/libexec/mod_log_bytes.so: No such file or directory
    gcc -funsigned-char -DMOD_SSL=208115 -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -c mod_log_bytes.c
    gcc -shared -o mod_log_bytes.so mod_log_bytes.o
    if [ ! -e "/usr/local/apache/libexec/mod_log_bytes.so" ]; then /usr/local/apache/bin/apxs -c mod_log_bytes.c ;fi
    gcc -funsigned-char -DMOD_SSL=208115 -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -c mod_log_bytes.c
    gcc -shared -o mod_log_bytes.so mod_log_bytes.o
    if [ ! -e "/usr/local/apache/libexec/mod_bwlimited.so" ]; then /usr/local/apache/bin/apxs -c mod_bwlimited.c ;fi
    gcc -funsigned-char -DMOD_SSL=208115 -DEAPI -fpic -DSHARED_MODULE -I/usr/local/apache/include -c mod_bwlimited.c
    gcc -shared -o mod_bwlimited.so mod_bwlimited.o
    if [ "`grep "mod_bwlimited/1.0" /usr/local/apache/libexec/mod_bwlimited.so`" = "" ]; then /usr/local/apache/bin/apxs -i -a mod_bwlimited.so;/etc/rc.d/init.d/httpd stop;sleep 4;/etc/rc.d/init.d/httpd startssl;/etc/rc.d/init.d/httpd start ;fi
    grep: /usr/local/apache/libexec/mod_bwlimited.so: No such file or directory
    [activating module `bwlimited' in /usr/local/apache/conf/httpd.conf]
    cp mod_bwlimited.so /usr/local/apache/libexec/mod_bwlimited.so
    chmod 755 /usr/local/apache/libexec/mod_bwlimited.so
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
    cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
    rm /usr/local/apache/conf/httpd.conf.new
    /etc/rc.d/init.d/httpd stop: httpd stopped
    Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
    Cannot load /usr/local/apache/libexec/mod_log_bytes.so into server: Cannot open "/usr/local/apache/libexec/mod_log_bytes.so"
    /etc/rc.d/init.d/httpd startssl: httpd could not be started
    *** Error code 3

    Stop in /usr/local/cpanel/apache.
    if [ "`grep "mod_bwlimited/1.0" /usr/local/apache/libexec/mod_bwlimited.so`" = "" ]; then /usr/local/apache/bin/apxs -i -a mod_bwlimited.so;/etc/rc.d/init.d/httpd stop;sleep 4;/etc/rc.d/init.d/httpd startssl;/etc/rc.d/init.d/httpd start ;fi
    if [ "`grep "mod_log_bytes/1.2" /usr/local/apache/libexec/mod_log_bytes.so`" = "" ]; then /usr/local/apache/bin/apxs -i -a mod_log_bytes.so ;fi
    grep: /usr/local/apache/libexec/mod_log_bytes.so: No such file or directory
    [activating module `bytes_log' in /usr/local/apache/conf/httpd.conf]
    cp mod_log_bytes.so /usr/local/apache/libexec/mod_log_bytes.so
    chmod 755 /usr/local/apache/libexec/mod_log_bytes.so
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
    cp /usr/local/apache/conf/httpd.conf.new /usr/local/apache/conf/httpd.conf
    rm /usr/local/apache/conf/httpd.conf.new
    if [ "`grep mod_log_bytes /usr/local/apache/conf/httpd.conf`" = "" ]; then /usr/local/apache/bin/apxs -i -a mod_log_bytes.so ;fi
    if [ "`grep mod_bwlimited /usr/local/apache/conf/httpd.conf`" = "" ]; then /usr/local/apache/bin/apxs -i -a mod_bwlimited.so ;fi
    Attempting to restart httpd
    Waiting for httpd to restart....
    .

    cPanel.net Support Ticket Number:
     
  2. hormigo

    hormigo Well-Known Member

    Joined:
    Sep 9, 2002
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    same problem here

    cPanel.net Support Ticket Number:
     
  3. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    I saw a "no such file or directory" error in there. That may play a big part in the error.

    cPanel.net Support Ticket Number:
     
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    You just need to do a little search. This issue has already been addressed.

    cPanel.net Support Ticket Number:
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
  6. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    are you sure that everything is installed correctly, and all dependencies are there too?

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page