Upgrading PHP questions

March 9th, 2010

  • This is the configure command I'm using, as shown on the original phpinfo..../configure --prefix=/usr --with-config-file-path=/etc --disable-debug --enable-pic --enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-exec-dir=/usr/bin --with-regex=system --with-gettext=shared --with-gd --with-flex --with-jpeg-dir=/usr --with-png --with-ttf --with-zlib --with-db3 --with-gdbm --with-openssl --with-layout=GNU --enable-debugger --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars --enable-yp --enable-ftp=shared --enable-wddx --without-mysql --without-unixODBC --without-oracle --without-oci8Halfway though, I get the following error:checking for OpenSSL support... yes
    configure: error: Cannot find OpenSSL's What is this, how can I get it, and where do I put it? heh


  • I've made it all the way through make and make install... now I get this when restarting apache:Starting httpd: Processing config directory: /etc/appliance/apacheconf
    Processing config file: /etc/appliance/apacheconf/apache
    PHP Warning: (null): Unable to initialize module
    Module compiled with debug=0, thread-safety=0 module API=1081722624
    PHP compiled with debug=0, thread-safety=0 module API=20010901
    These options need to match
    in Unknown on line 0
    PHP Warning: (null): Unable to initialize module
    Module compiled with debug=128, thread-safety=187 module API=1082488320
    PHP compiled with debug=0, thread-safety=0 module API=20010901
    These options need to match
    in Unknown on line 0¼': Unable to initialize module
    Module compiled with debug=160, thread-safety=199 module API=1081750284
    PHP compiled with debug=0, thread-safety=0 module API=20010901
    These options need to match
    in Unknown on line 0
    PHP Warning: UåSìè¤üÿÿø`: Unable to initialize module
    Module compiled with debug=160, thread-safety=205 module API=1081748064
    PHP compiled with debug=0, thread-safety=0 module API=20010901
    These options need to match
    in Unknown on line 0
    PHP Warning: UåSìè´üÿÿè`: Unable to initialize module
    Module compiled with debug=80, thread-safety=204 module API=1081748224
    PHP compiled with debug=0, thread-safety=0 module API=20010901
    These options need to match
    in Unknown on line 0
    Processing config directory: /etc/appliance/apacheconf
    Processing config file: /etc/appliance/apacheconf/apache
    Processing config directory: /etc/httpd/conf/virtual
    Processing config file: /etc/httpd/conf/virtual/site1
    Processing config directory: /etc/httpd/conf/site1
    Processing config file: /etc/httpd/conf/site1/cgi
    Processing config file: /etc/httpd/conf/site1/frontpage
    Processing config file: /etc/httpd/conf/site1/ssi
    Processing config file: /etc/httpd/conf/site1/weblogs
    Processing config file: /etc/httpd/conf/virtual/site2
    Processing config directory: /etc/httpd/conf/site2
    Processing config file: /etc/httpd/conf/site2/cgi
    Processing config file: /etc/httpd/conf/site2/frontpage
    Processing config file: /etc/httpd/conf/site2/sqmail
    Processing config file: /etc/httpd/conf/site2/ssi
    Processing config file: /etc/httpd/conf/site2/weblogs
    [ OK ]

    WHAT THE HELL?!#*%&!#%(*&

    Is this the gcc 2.96 problem attacking me or something? If so, how do I downgrade it in ensim?


  • Originally posted by Ed FvC
    Okay, I finally made it past configure after installing a few more -devel packages...but now, in make, I get this:arrrrrgh... Now what? tip from Chris worked for me is to change

    --with-gd

    to

    --with-gd=/usr/local

    make sure you remove config.cache from /usr/local/src/php-4.1.1 before you recompile again


  • Christ, I am absolutely going insane. I installed openssl-devel and it got past the OpenSSL error... so then it gave me an error saying that it was missing libz, so I installed zlib-devel... then it went on to give me a generic "Cannot find required header file(s)" error... Am I just gonna have to install the entire development library or something? This is absolutely retarded! How do I know what to install? Is there any way of automatically installing the requried rpms, similar to using up2date?

    I'm going absolutely nuts on here. The RackShack and Ensim forums are both useless. :( :mad: *sigh*

    HELP!! :(


  • Okay, I finally made it past configure after installing a few more -devel packages...but now, in make, I get this:In file included from internal_functions.c:34:
    /usr/local/src/php-4.1.1/ext/gd/php_gd.h:33:16: gd.h: No such file or directory
    make[2]: *** [internal_functions.lo] Error 1
    make[2]: Leaving directory `/usr/local/src/php-4.1.1/main'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/php-4.1.1/main'
    make: *** [all-recursive] Error 1arrrrrgh... Now what?


  • 'without-unixODBC --without-oracle --without-oci8'

    Those, to the best of my knowledge, will not be compiled automagically.

    I'm curious, I've seen --enable-inline-optimization before but the PHP documentation makes no mention of it.. What does it do?


  • not sure but this is what i found but yeah it ain't mentioned in the PHP docs anymore probably < 4.06


    --enable-memory-limit allows you to control the maximum amount of memory that a script can use. Using this will help to prevent buffer overflows which may lead to more serious threats. --enable-inline-optimization is recommended by the PHP team if you have "lots of memory".

    PHP disables inline optimizations by default (due to the GCC compiler failing when the target is one of the new 64 bit processors), but inline optimizations result in a two to five fold inccrease in speed. If you're running on a 64 bit processor, remove `--enable-inline-optimization


  • Either remove --with-openssl or change it to your path to OpenSSL (--with-openssl=/usr/local/openssl).







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Upgrading PHP questions , Please add it free.