Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    6

    Angry compile PHP with PostgreSQL ?

    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. #2
    Member
    Join Date
    Sep 2002
    Posts
    108

    Default

    same problem here

    cPanel.net Support Ticket Number:

  3. #3
    Member B12Org's Avatar
    Join Date
    Jul 2003
    Location
    Seattle Washington
    Posts
    694

    Default

    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. #4
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    You just need to do a little search. This issue has already been addressed.

    cPanel.net Support Ticket Number:

  5. #5
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    http://forums.cpanel.net/showthread....php+postgresql

    cPanel.net Support Ticket Number:

  6. #6
    Member B12Org's Avatar
    Join Date
    Jul 2003
    Location
    Seattle Washington
    Posts
    694

    Default

    are you sure that everything is installed correctly, and all dependencies are there too?

    cPanel.net Support Ticket Number:

Similar Threads & Tags
Similar threads

  1. Install, configure and compile PostgreSql
    By cyberventas in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-24-2008, 02:36 PM
  2. Problem: compile php with PDFLIB and PHP 5.1.6
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 09-08-2007, 05:32 AM
  3. Install PHP Zip module and zziplib - Compile PHP individually
    By Arvand in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-16-2003, 06:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube