Error when trieing to build PHP for litespeed

rnc

Verified User
Joined
Jun 8, 2013
Messages
72
Hello
i just setup a directadmin server
i tried to setup litespeed
from litespeed plugin and i installed litespeed
but when i tried to build matching PHP
with
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp

i get this error
/usr/local/directadmin/plugins/litespeed/admin/build.func: line 13166: syntax error: unexpected end of file
custombuild 2.x scripts
fail to detect php version, exit

the mentiond line is the end of the file
i compared it with another server that i installed directadmin month ago

on olf file
this is the end
}

####################################################


if [ $# -eq 2 ]; then
USER_INPUT=0
INPUT_VALUE=$2
fi

writeLog $@


and in the new server file

if [ $# -eq 2 ]; then
USER_INPUT=0
INPUT_VALUE=$2
fi

if [ "$1" != "gen_help_json" ] && [ "$1" != "opt_help" ] && [ "$1" != "set" ] && [ "$1" != "get_versions_txt" ] && [ "$1" != "" ] && [ "$1" != "versions_json" ] && [ "$1" != "gen_help" ] && [ "$1" != "version" ] && [ "$1" != "versions" ] && [ "$1" != "versions_nobold" ] && [ "$1" != "list_configs_json" ] && [ "$1" != "settings_json" ]; then
writeLog $@


what could cause this problem

here is my ./build options

Apache: 2.4.7
mod_ruid2: no
htscanner: 1.0.1
Dovecot: 2.2.12
AWstats: no
Exim: 4.82
exim.conf update: no
SpamAssassin: no
ClamAV: no
MySQL: no
MySQL backup: yes
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups
PHP (default): 5.4 as fastcgi
phpMyAdmin: 4.1.13-all-languages
ProFTPD: 1.3.4d
Pure-FTPd: no
RoundCube webmail: 0.9.5
Replace "php.ini" with './build all' and './build php_ini': yes
Replace "php.ini" using type: production
Cron for notifications and (or) updates: yes
Cron frequency: weekly
Auto notifications: yes
Auto notifications email address:
Auto updates: yes
Run "clean" every time: yes
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: yes
Show texts in bold: yes
SquirrelMail: 1.4.22-20140402_0200
Zend Guard Loader:
ionCube loader: 4.6.1
Suhosin: no




and here is my versions

Latest version of DirectAdmin: 1.45.0
Installed version of DirectAdmin: 1.45.0

Latest version of Apache: 2.4.7
Installed version of Apache: 2.4.7

Latest version of ProFTPD: 1.3.4d
Installed version of ProFTPD: 1.3.4d

Latest version of libpng: 1.2.51
Installed version of libpng: 1.2.51

Latest version of ICU4C: 4.8.1.1
Installed version of ICU4C: 4.8.1.1

Latest version of libxslt: 1.1.28
Installed version of libxslt: 1.1.28

Latest version of libxml2: 2.9.1
Installed version of libxml2: 2.9.1

Latest version of iconv: 1.14
Installed version of iconv: 1.14

Latest version of PCRE: 8.20
Installed version of PCRE: 8.20

Latest version of FreeType: 2.5.3
Installed version of FreeType: 2.5.3

Latest version of dovecot: 2.2.12
Installed version of dovecot: 2.2.12

Latest version of Exim: 4.82
Installed version of Exim: 4.82

Latest version of PHP 5.4: 5.4.27
Installed version of PHP 5.4: 5.4.27

Latest version of RoundCube webmail: 0.9.5
Installed version of RoundCube webmail: 0.9.5

Latest version of phpMyAdmin: 4.1.13-all-languages
Installed version of phpMyAdmin: 4.1.13-all-languages

Latest version of SquirrelMail: 1.4.22-20140402_0200
Installed version of SquirrelMail: 1.4.22-20140402_0200



all i want is just to build lite speed matching PHP
 
Please try:
Code:
wget -O /usr/local/directadmin/custombuild/build http://files1.directadmin.com/services/custombuild/2.0/custombuild/build
 
Please try:
Code:
wget -O /usr/local/directadmin/custombuild/build http://files1.directadmin.com/services/custombuild/2.0/custombuild/build
Thanks for fast reply

but nothing changed

wget -O /usr/local/directadmin/custombuild/build http://files1.directadmin.com/services/custombuild/2.0/custombuild/build
--2014-04-25 03:22:15-- http://files1.directadmin.com/services/custombuild/2.0/custombuild/build
Resolving files1.directadmin.com... 216.144.254.90
Connecting to files1.directadmin.com|216.144.254.90|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 417397 (408K) [text/plain]
Saving to: “/usr/local/directadmin/custombuild/build”

100%[======================================================================================>] 417,397 341K/s in 1.2s

2014-04-25 03:22:16 (341 KB/s) - “/usr/local/directadmin/custombuild/build” saved [417397/417397]

[root@managed custombuild]# /usr/local/directadmin/plugins/litespeed/admin/build_lsphp /usr/local/directadmin/plugins/litespeed/admin/build.func: line 13166: syntax error: unexpected end of file
custombuild 2.x scripts
fail to detect php version, exit
 
May you send me /usr/local/directadmin/plugins/litespeed/admin/build_lsphp and /usr/local/directadmin/plugins/litespeed/admin/build.func files? If the first one is not open-source, you may skip it. I could also check that directly on your server, if you would like me to.
 
May you send me /usr/local/directadmin/plugins/litespeed/admin/build_lsphp and /usr/local/directadmin/plugins/litespeed/admin/build.func files? If the first one is not open-source, you may skip it. I could also check that directly on your server, if you would like me to.

Hello i send you files in private message
please check
if needed tell me to give access
 
Thank you. Please open /usr/local/directadmin/plugins/litespeed/admin/build_lsphp. Find:
Code:
INCLINE=`grep -n 'writeLog $@' ${DABUILD_FILE} | cut -d: -f1`

Replace with:
Code:
INCLINE=`grep -n 'writeLog $@' ${DABUILD_FILE} | cut -d: -f1`
INCLINE=`expr ${INCLINE} + 1`

That should do the trick :)
 
Thank you. Please open /usr/local/directadmin/plugins/litespeed/admin/build_lsphp. Find:
Code:
INCLINE=`grep -n 'writeLog $@' ${DABUILD_FILE} | cut -d: -f1`

Replace with:
Code:
INCLINE=`grep -n 'writeLog $@' ${DABUILD_FILE} | cut -d: -f1`
INCLINE=`expr ${INCLINE} + 1`

That should do the trick :)


hello thanks for help
but this not solve issue too
i also tried
http://www.litespeedtech.com/suppor...when-trieing-to-build-php-for-litespeed.8574/

and it dosent work too
and in both method i just get the same error as when i made no change
 
hello
i tried this way and not working
may i have some help here
the server is useless for now
 
hello
i really need help here !

is this directadmin problem or litespeed?
 
Are you sure you've added 2 lines instead of the 1? If that still doesn't work, you may try changing "1" to "2". However, I wouldn't be able to help you more without having login details to the server. You may ask LiteSpeed developers to send you a fix, or ask them to contact me.
 
Back
Top