Discussion about CustomBuild

Too little information to really help. What is the contents of your options.conf? What OS and version are you using? What build string are you using to do your build? Are you using ./build all d?

BigWil
 
options.conf:
Code:
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=yes
php5_cli=no
php5_cgi=yes
zend=yes

#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=5.0
mysql_inst=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.2

#Web applications
phpmyadmin=yes
squirrelmail=yes
roundcube=yes

#Mail options
mail-header-patch=yes
dovecot=no
eximconf=no

#FTP options
proftpd=yes

#Custombuild options
clean=yes

i am running debian etch, and yes i used ./build all d

i tried changing the default to 4 before, used ./build update_data and restarted apache, but everything was still running php5. and when i add the php4 handler to my .htaccess, my php scripts aren't processed anymore.
 
Try running them in parts and look for errors that you may be missing. ./build all d is a rather lengthy build. Try ./build proftpd. Also I am hoping you made a backup of your /etc/proftpd.conf before trying to upgrade?

In regards to the problem with the PHP default I am going to leave that one to smtalk as I haven't made my rounds of the configs to that extent yet. Working on it though. Custombuild has one heck of a learning curve.

BigWil
 
options.conf:
i tried changing the default to 4 before, used ./build update_data and restarted apache, but everything was still running php5. and when i add the php4 handler to my .htaccess, my php scripts aren't processed anymore.

Oh hey did you state here that all you did was run ./build update_data and then tried to restart apache? You should do a ./build apache after your update_data. Otherwise to my knowledge it isn't going to change the configs the right way.

BigWil
 
i did ./build proftpd and ./build apache, but doesn't seem like anything has changed.
still can't connect to ftp and php files are still not being parsed.
 
xshadowfire, just try to restart proftpd and apache :) And about the sites - if you get 500 error, it's not a script, but .htaccess or permissions problem.
 
Sc0uT, you must have it as CGI if you want to make it as default using .htaccess.
 
i've restarted apache multiple times, and proftpd isn't running unless i'm connected :/

edit: actually, i don't even think php4 and php5 got installed or something...there's no php4/php5 folder in my /usr/local, and i have them both set as cgi.
edit: now i get
Trying to make php...
make: *** No targets specified and no makefile found. Stop.
when doing ./build php
 
Last edited:
Apparently in the build you aren't running the patches. So I am not sure exactly what the frontpage_ext and mod_frontpage options are doing. Half the job maybe? Not sure.

Variables:
MOD_FRONTPAGE=mod_frontpage.c
FP_PATCH0=Makefile.tmpl.patch
FP_PATCH1=frontpage.patch
FP_PATCH_AP2=fp-patch-apache_2.0
FRONTPAGE_PATH=/usr/local

if [ $OS = "FreeBSD" ]; then
cp ../$MOD_FRONTPAGE .
patch -p0 < ../$FP_PATCH0
else
patch -p0 < ../fp-patch-apache_1.3.22
patch -p0 < ../fp-patch-suexec
fi

This should be added so that it properly patches. These are from customapache.

Again I really think there should be a frontpage=ap1 or frontpage=ap2 (ap2 working only for AP 2.0) for the options.conf so that it will build it properly before it cleans. Just my opinion.

Big Wil
Did you ever make any headway here? I ran into the same problem with custombuild, so I had to run customapache to fix it, then Custombuild to get php to work (iconv trouble otherwise). I'm good now, but what a stressful night that was.
 
still the same error.
this is the entire message:
Code:
Found /usr/local/directadmin/custombuild/php-4.4.7.tar.gz
Extracting ...
Done.
patching file php-4.4.7/ext/standard/mail.c
Configuring php-4.4.7...
X-Powered-By: PHP/4.4.4-8+etch4
Content-type: text/html

./configure \
        --with-apxs2 \
        --with-curl \
        --with-curl-dir=/usr/local/lib \
        --with-gd \
        --enable-gd-native-ttf \
        --with-ttf \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype \
        --with-freetype-dir=/usr/local/lib \
        --with-kerberos \
        --with-openssl \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr/local/mysql \
        --with-mysqli=/usr/local/mysql/bin/mysql_config \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-xml \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-track-vars \
        --enable-mbstring \
        --enable-memory-limit
Done Configuration.
Trying to make php...
make: *** No targets specified and no makefile found.  Stop.
 
Last edited:
webmail and squirrelmail

With php as CLI on centos 5 updating webmail and squirrelmail using custombuild causes a permission problem. But resolution for me is

chown -R apache:apache /var/www/html/webmail etc

ie not webapps ownership which does not work. Thank you.
 
PHP5-cgi and php5-cli

Hello,

I'd like to know why we can't install both php5-cgi and php5-cli in the same time.

I use php class for my website which use php5 and I also use cron job with php commands. So the cronjob work with php-cli which is version 4 and it makes my script doesn't work.

Thank you
 
Last edited:
You must use cli one time, and cgi the second, then. You'll be able to reach /usr/local/bin/php via cron job, but not the apache service :)
 
tahnk you for your answer but I don't really understand it, how can I use cli and cgi.

My scrip which is in PHP, read some datas which are in database MYSQL. Then send them by mail. So I don't know if i really need apache for this. For the moment in my cronjob I do : /usr/local/php5/bin/php-cgi /home/.../script.php and it works.

But the best for me would be to have php5-cgi and php5-cli both installed. So why can't we install thoses 2 php5 via custombuild ?

Thank you
 
Because apache can't work with both of these (it's possible, but very pain). P.S. if you just want to execure cronjob as CLI, do /usr/local/php5/bin/php, instead of /usr/local/php5/bin/php-cgi :) And that's all (you don't need to compile PHP5 as CLI then).
 
Try to update exim after upgrade with custombuild

Hello.

I have a new server with default DA installed.

After an upgrade with custombuild with default option,
i try to update exim to 4.68.

The upgrade went wrong, with this problem:

rfc2047.o(.text+0x384): In function `rfc2047_decode2':
: undefined reference to `libiconv_open'
rfc2047.o(.text+0x44f): In function `rfc2047_decode2':
: undefined reference to `libiconv'
rfc2047.o(.text+0x535): In function `rfc2047_decode2':
: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/da_exim-4.68/build-Linux-i386'
make: *** [go] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.57655 (%build)


My configure.php5 looked like:
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-mysqli=/usr/bin/mysql_config \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-iconv=/usr/local \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--disable-posix \
--enable-gd-native-ttf \
--enable-mbstring

And now I have no idea how to fix EXIM.

Any suggestion?

_____________________________________________________________

Problem fixed. Found some nice info in this forum from an old case... modifies some files..

wget http://files.directadmin.com/services/4.4/da_exim-4.68-1.i386.rpm
rpm -Uhv da_exim-4.68-1.i386.rpm --force
rm -f da_exim-4.68-1.i386.rpm
service exim restart
 
Last edited:
Back
Top