problem with build in CB 2.0

#1
Hi
today i was trying to upgrade by custombuild version from 1.2 to 2.
after that, i tried to build match php binary by this command:
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp

but i faced with a few errors:


custombuild 2.x scripts
fail to detect php version, exit
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 215: do_exit: command not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 219: eval_var: command not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 220: eval_var: command not found
work dir =
php ver =
php config =
build matching php using LSAPI
do lsphp
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 26: ${LOGFILE}: ambiguous redirect
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 240: doChecks: command not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 241: doPhp: command not found
Query lastest LSAPI version: 6.9
php-litespeed-6.9.tgz already downloaded, use the saved copy
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 60: cd: php-/sapi: No such file or directory
**ERROR** Could not get into php/sapi directory
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 33: do_exit: command not found
Extracting LSAPI archive: tar -xzf php-litespeed-6.9.tgz
tar (child): ../../php-litespeed-6.9.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
**ERROR** Could not extract LSAPI archive
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 33: do_exit: command not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 82: quitIfLocked: command not found
cp: missing destination file operand after `/custom/lsws/configure.php5'
Try `cp --help' for more information.
Can't open /custom/lsws/configure.php5: No such file or directory.
Can't open /custom/lsws/configure.php5: No such file or directory.
grep: /custom/lsws/configure.php5: No such file or directory
Can't open /custom/lsws/configure.php5: No such file or directory.
Can't open /custom/lsws/configure.php5: No such file or directory.
Can't open /custom/lsws/configure.php5: No such file or directory.
chmod: cannot access `/custom/lsws/configure.php5': No such file or directory
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 108: cd: php-: No such file or directory
make: *** No rule to make target `clean'. Stop.
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 125: [: : integer expression expected
Configuring PHP build (2-3 minutes) using /custom/lsws/configure.php5
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 142: [: =: unary operator expected
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 145: /custom/lsws/configure.php5: No such file or directory
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 149: -e: command not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 150: do_exit: command not found
Done Configuration.
make: *** No targets specified and no makefile found. Stop.
\n*** The make has failed
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 159: do_exit: command not found
Make Complete
make: *** No rule to make target `install'. Stop.
\n*** The install has failed
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 167: do_exit: command not found
copy compiled php binary to litespeed directory
cd /usr/local/lsws/fcgi-bin
cp: cannot stat `/php-/sapi/litespeed/php': No such file or directory
**ERROR** fail to copy lsphp from /php-/sapi/litespeed/php
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 33: do_exit: command not found
chmod: cannot access `lsphp-': No such file or directory
ln -sf lsphp- lsphp

==============================================
Finished building PHP with LSAPI
==============================================
Mon Apr 4 08:05:18 CEST 2016

/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 199: removeLockfile: command not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: line 255: do_exit: command not found
 
#3
the problem is not resolved and after doing that, i have no webserver at this time! i need to have both apache and litespeed in order to , if one of them faced with a problem, i switch to another one. and i have this error after the complile process:

Found Apache php binary at /usr/local/bin/php. Version is 5.5.34

Found LiteSpeed php binary at /usr/local/lsws/fcgi-bin/lsphp5. Version is 5.5.33

PHP binary has different version!
 

Pong

Administrator
Staff member
#4
Customer build 2.0 is DA way and integration to manage software and update. According to DA, every time when you switch web server, you may have to recompile it. Customer 2.0 will use latest version at the time when you build it.

You can ask more details from Direct Admin Support.
 

Pong

Administrator
Staff member
#5
Received some feedback from Direct Admin and they would like to add this switch feature, maybe in May/June.
 
Top