ZendDebugger php 5.3 Centos 5

Just a few questions regarding php 5.3, php.ini and zend debugger.

1) I’m about to install the zenddebugger.so on my centos 5.3 with php 5.3. Where do I install it? What folder location?
I ended up installing the ZendDebugger.so at /usr/local/lib/php/extensions/
I added this to my php.ini file at the end of the file:
zend_extension=”/usr/local/lib/php/extensions/ZendDebugger.so”

zend_debugger.allow_hosts=127.0.0.1,192.168.1.106,96.49.230.250
zend_debugger.expose_remotely=always

2) I compiled php 5.3 but I’m wondering where is the executable?
The PHP CLI bin is located at:
/usr/local/bin

3) I found the php.ini file at /usr/local/lib. Is this the default php.ini that centos 5.3 uses?
I believe it is since when I compiled php I didn’t add in the option ./configure prefix=

4) I know that there can be different php versions that apache can use. How do I ensure that the apache uses the correct php version if I have multiple php versions installed?
This works in my httpd.conf on my windows vista:
SetEnv PHPRC “C:/Program Files/PHP/”

I haven’t tested this on my Centos machine though.
——

I ran:
find / -name ‘php.ini’

and another php.ini is installed at:
/etc/php.ini

the other is located as mentioned previously at:
/usr/local/lib/php.ini

I’m not certain which one is apache using. I installed my custom apache at:
/usr/local/apache/

—–

This is the output from my php source install just fyi:
Installing PHP SAPI module: apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL=’/usr/local/apache/build/libtool’ libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool –mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.so /usr/local/apache/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool –finish /home/vkimura/php-5.3.1/libs’
chmod 755 /usr/local/apache/modules/libphp5.so
[activating module `php5′ in /usr/local/apache/conf/httpd.conf]
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar – already installed: 1.3.3
[PEAR] Console_Getopt – already installed: 1.2.3
[PEAR] Structures_Graph- already installed: 1.0.2
[PEAR] XML_Util – already installed: 1.2.1
[PEAR] PEAR – already installed: 1.9.0
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/home/vkimura/php-5.3.1/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar
Installing PDO headers: /usr/local/include/php/ext/pdo/

————-

[root@localhost php-5.3.1]# libtool –finish /home/vkimura/php-5.3.1/libs
PATH=”$PATH:/sbin” ldconfig -n /home/vkimura/php-5.3.1/libs
———————————————————————-
Libraries have been installed in:
/home/vkimura/php-5.3.1/libs

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.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Share

You must be logged in to post a comment.