Custombuild php upgrade failes

bdj

Verified User
Joined
Feb 22, 2008
Messages
140
Hello,

I have Freebsd and currentl php 5.2.4 installed and working:

Code:
'./configure' '--with-apxs' '--with-curl' '--with-curl-dir=/usr/local/lib' '--with-gd' '--with-gd-dir=/usr/local' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-kerberos' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr/local/mysql' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xml' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--with-zip' '--with-openssl' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-track-vars' '--enable-mbstring' '--enable-memory-limit'

I try to update to 5.2.8 with
Code:
./configure \
        --with-apxs \
        --with-curl \
        --with-curl-dir=/usr/local/lib \
        --with-gd \
        --with-gd-dir=/usr/local \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-kerberos \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr/local/mysql \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-xml \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --with-zip \
        --with-openssl \
        --with-imap=/usr/local/imap-2000e \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-track-vars \
        --enable-mbstring \
        --enable-gd-native-ttf \
        --enable-memory-limit

difference is --with-imap=/usr/local/imap-2000e \


first ./build clean
next ./build php n

Result: Thank you for using PHP.

/usr/local/directadmin/customapache/configure.php: --with-curl-dir=/usr/local/lib: not found
--with-gd: not found
--with-mhash: not found

*** There was an error while trying to configure php. Check the configure.php file

:confused:
Help Please
 
Sounds like you don't have curl, gd, or mhash installed.

Try:

./build php y
 
./build php y tells me it's dangerous because of sshd, which i'm using to connect the server.

-- update --

I've rebuild mhash and curl with:
./build curl
./build mhash

still no luck


Thank you for using PHP.

/usr/local/directadmin/customapache/configure.php: --with-curl-dir=/usr/local/lib: not found
--with-gd: not found
--with-mhash: not found

*** There was an error while trying to configure php. Check the configure.php file
 
Last edited:
Why this thread has "Custombuild" as its title if you're using CustomApache? About the problem, I think that /usr/local/directadmin/customapache/configure.php is damaged, p.s. CustomApache does not support PHP5. The fix could be:
Code:
cd /usr/local/directadmin/customapache
wget -O configure.php http://files.directadmin.com/services/customapache/configure.php
The file you've posted is missing "#!/bin/sh", everything else seems to be okay.
 
Why this thread has "Custombuild" as its title if you're using CustomApache? About the problem, I think that /usr/local/directadmin/customapache/configure.php is damaged, p.s. CustomApache does not support PHP5. The fix could be:
Code:
cd /usr/local/directadmin/customapache
wget -O configure.php http://files.directadmin.com/services/customapache/configure.php
The file you've posted is missing "#!/bin/sh", everything else seems to be okay.

Hi,

Thanks for the reply.
Now I get different results:

./build php n

Build complete.
Don't forget to run 'make test'.

Make Complete
Copying php.ini..
/usr/local/lib/php.ini already exists, skipping.
Increasing memory limit to 20M...
Installing php...
Installing PHP SAPI module: apache
[activating module `php5' in /etc/httpd/conf/httpd.conf]
cp libs/libphp5.so /usr/lib/apache/libphp5.so
cp: libs/libphp5.so: No such file or directory
apxs:Break: Command failed with rc=1
*** Error code 1

Stop in /usr/local/directadmin/customapache/php-5.2.8.
admin:customapache#
 
Last edited:
Interesting error. Check if it has been created at all..
Code:
find / -name libphp5.so
 
@smtalk,

All is fixed now :).
after the above error I did:

./build clean
./build php n

It took a while to compile but then in returned "PHP Installed"
Next thing is, I forgot to restart apache so all the websites with PHP were dead, but now it's working.
 
Back
Top