Error while trying to build PHP for litespeed

MaKenZi

Verified User
Joined
Jul 27, 2016
Messages
14
Hi

I am getting error while trying to build PHP for litespeed
this is error log



/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 7: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: source: not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 205: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: source: not found
custombuild 2.x scripts
fail to detect php version, exit
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 215: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: do_exit: not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 219: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: eval_var: not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 220: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: eval_var: not found
work dir =
php ver =
php config =
build matching php using LSAPI
do lsphp
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 26: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: cannot create : Directory nonexistent
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 240: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: doChecks: not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 241: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: doPhp: 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: 60: cd: can't cd to php-/sapi
**ERROR** Could not get into php/sapi directory
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 33: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: do_exit: 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: 33: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: do_exit: not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 82: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: quitIfLocked: 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: 108: cd: can't cd to php-
make: *** No rule to make target 'clean'. Stop.
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 125: [: Illegal number:
Configuring PHP build (2-3 minutes) using /custom/lsws/configure.php5
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 142: [: =: unexpected operator
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 145: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: /custom/lsws/configure.php5: not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 149: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: -e: not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 150: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: do_exit: not found
Done Configuration.
make: *** No targets specified and no makefile found. Stop.

*** The make has failed
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 159: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: do_exit: not found
Make Complete
make: *** No rule to make target 'install'. Stop.

*** The install has failed
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 167: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: do_exit: 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: 33: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: do_exit: not found
chmod: cannot access lsphp-: No such file or directory
ln -sf lsphp- lsphp

==============================================
Finished building PHP with LSAPI
==============================================
Wed Jul 27 07:28:17 UTC 2016

/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 199: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: removeLockfile: not found
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp: 255: /usr/local/directadmin/plugins/litespeed/admin/build_lsphp: do_exit: not found



what Can I do?
 
Is the plugin litespeed installed on your DA?

Apparently it is looking for that (/usr/local/directadmin/plugins/litespeed/), if is not installed it will fail.

Regards
 
ls -l /usr/local/directadmin/plugins/
Output:

total 4
drwx--x--x 6 diradmin diradmin 4096 Jul 27 07:48 litespeed





ls -l /usr/local/directadmin/plugins/litespeed/

Output:

total 72
drwxr-xr-x 2 apache users 4096 Jul 27 07:48 admin
-rw-r--r-- 1 diradmin diradmin 5 Jul 27 10:39 available_version.txt
drwxr-xr-x 2 apache users 4096 Jul 27 07:48 hooks
drwxr-xr-x 2 apache users 4096 Jul 27 07:48 images
-rw------- 1 diradmin diradmin 243 Jul 27 07:48 plugin.conf
-rwx------ 1 diradmin diradmin 47191 Jul 27 07:48 plugin.tar.gz
drwxr-xr-x 2 apache users 4096 Jul 27 07:48 scripts
 
I can see from your screenshots that there is a newver version, have you tryed to update it?

Maybe this one has a bug, what i can see is that there are many errors on the plugins, i would suggest you to update it and retry.

Regards
 
It's a fake notification

because when I try to update it, it say it's updated but show the update notification again

and If you check again the pics, one of them show that the Installed version is 1.6

what you suggest?
 
Two things:

1 - Try remove the plugin and re-install it, than retry build
2 - If "1" is not working, contact litespeed support

Regards
 
I forget to ask

I should run the commands via litespeed panel? or via server SSH?
 
Back
Top