Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanet/1044069 to your computer and use it in GitHub Desktop.
Save deanet/1044069 to your computer and use it in GitHub Desktop.
installing PHP Postgresql Module
1. Edit /var/cpanel/easy/apache/profile/makecpphp.profile.yaml
ubah value :
Cpanel::Easy::PHP5::Pgsql: 1
2. eksekusi /scripts/makecpphp
ref: http://bit.ly/j5D28I
Click Apache update (EasyApache)
Click Custom profile and click next until six chooice
1. Profile
2. Apache Version
3. PHP Major Version
4. PHP Minor version
5. Short Options List
6. Exhaustive Options List
on this section choose postgresql module (Pgsql) and then save & build
===
LOG
===
If the browser window is closed or stopped the build will continue in the background.
The build output should start shortly...
Distilled successfully
Updated FD_SETSIZE in /usr/include/linux/posix_types.h to 16384
Updated FD_SETSIZE in /usr/include/bits/typesizes.h to 16384
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1308828509' !!
!!
Ouput from '/bin/sh -c "ulimit -a"':
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 77824
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) 524288
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 77824
virtual memory (kbytes, -v) 524288
file locks (-x) unlimited
!!
!! Creating backup of working apache in '/usr/local/apache.backup'. !!
!! Symlink encountered (/usr/local/apache/etc), preserving target (conf)... !!
!! Backup of working apache complete. !!
Checking that all tarballs are present and up to date.
!! Downloading '/var/cpanel/perl/easy/Cpanel/Easy/Apache/2_2.pm.tar.gz' !!
!! Downloading '/var/cpanel/perl/easy/Cpanel/Easy/Zendopt.pm.tar.gz.linux-generic-32' !!
Checking that all packages are present and up to date.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.netdna.com
* updates: mirror.raystedman.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package gettext-0.17-1.el5.i386 already installed and latest version
No package automake19 available.
===================================================================================
CUT CUT CUT CUT CUT CUT CUT CUT CUT CUT CUT CUT CUT CUT CUT CUT CUT
===================================================================================
cp ./.libs/suhosin.lai /home/cpeasyapache/src/suhosin/suhosin-0.9.32.1/modules/suhosin.la
PATH="$PATH:/sbin" ldconfig -n /home/cpeasyapache/src/suhosin/suhosin-0.9.32.1/modules
----------------------------------------------------------------------
Libraries have been installed in:
/home/cpeasyapache/src/suhosin/suhosin-0.9.32.1/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/*
SuHosin extension activated
-- End step 'Install PHPSuHosin' --
-- End opt 'Suhosin for PHP' --
-- Begin 'SourceGuardian Loader for PHP' is off--
-- End 'SourceGuardian Loader for PHP' is off --
-- Begin opt 'Zend Optimizer/Guard Loader for PHP' --
-- Begin step 'Install Zend Optimizer' --
Determining PHP version
Installing Zend Optimizer binary
Activating Zend Optimizer in /usr/local/lib/php.ini
Zend Optimizer activated
-- End step 'Install Zend Optimizer' --
-- End opt 'Zend Optimizer/Guard Loader for PHP' --
-- Begin 'EAccelerator for PHP' is off--
-- End 'EAccelerator for PHP' is off --
-- Begin opt 'IonCube Loader for PHP' --
-- Begin step 'Install IonCube loader' --
Determining PHP version
Installing IonCube Loader binaries
Activating IonCube Loader extension in /usr/local/lib/php.ini
IonCube Loader extension activated
-- End step 'Install IonCube loader' --
-- End opt 'IonCube Loader for PHP' --
Building global cache for cpanel...Done
Updating Apache configuration
Updating Apache configuration
Updating Apache configuration
Distilled successfully
!! Failed to utilize existing Apache configuration file. Resetting Apache configuration to default. !!
Updating Apache configuration
Updating Apache configuration
Distilled successfully
!! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1308829787):
An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1308829787
Exit signal was: 0
Exit value was: 1
Output was:
---
httpd: Syntax error on line 28 of /usr/local/apache/conf/httpd.conf.1308829787: Syntax error on line 1 of /usr/local/apache/conf/includes/pre_main_global.conf: Cannot load /usr/local/apache/modules/mod_rpaf-2.0.so into server: /usr/local/apache/modules/mod_rpaf-2.0.so: cannot open shared object file: No such file or directory
---
!!
!! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!
!! 'safecopy(/usr/local/apache/etc, /usr/local/apache.ea3-buildok-confgen-failed)' did not return true !!
!! Done Archiving successful build !!
!! Restoring original working apache !!
!! Executing '/scripts/initsslhttpd' !!
!! Restarting 'httpd' ... !!
!! 'httpd' restart complete. !!
Building global cache for cpanel...Done
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
!! Executing '/scripts/update_apachectl' !!
Compiling report...
Sending report (873 bytes)...
!! If you want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id': '5867641' !!
Report processed.
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1308828509' !!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment