LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [Reso] Server won't start: ./lshttpd: 1: Syntax error: "(" unexpected (expecting ")")

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2010, 11:36 PM
snowweb snowweb is offline
New Member
 
Join Date: May 2010
Posts: 8
Exclamation [Reso] Server won't start: ./lshttpd: 1: Syntax error: "(" unexpected (expecting ")")

I've just installed the free version of lightspeed on my DNS-323 NAS which is runnng a hacked firmware and fun_plug linux distro. I'm trying to replace lighttpd.

The install went smoothly, but when I try to start the server, I get:

Quote:
root@IN07:~# /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lswsctrl start
./lshttpd: 1: Syntax error: "(" unexpected (expecting ")")
[ERROR] Failed to start lshttpd!
killall: lshttpd: no process killed
./lshttpd: 1: Syntax error: "(" unexpected (expecting ")")
[ERROR] Failed to start lshttpd!
I don't know where to start looking to trouble shoot this. Any help would be great.

Thanks,

peter

Last edited by NiteWave; 05-15-2010 at 11:18 PM..
Reply With Quote
  #2  
Old 05-10-2010, 07:48 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
The shell script is not compatible with the shell of the linux in your NAS, can you install bash?
You can ignore the lswsctrl script, just run lshttpd directly.
Reply With Quote
  #3  
Old 05-11-2010, 07:28 AM
snowweb snowweb is offline
New Member
 
Join Date: May 2010
Posts: 8
Thanks mistwang. I've installed bash and tried again, I get the same result

I echoed the bash version for you.

Quote:
root@IN07:~# echo $BASH_VERSION
3.2.33(1)-release
root@IN07:~# /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lswsctrl start
./lshttpd: line 1: syntax error: "(" unexpected (expecting ")")
[ERROR] Failed to start lshttpd!
killall: lshttpd: no process killed
./lshttpd: line 1: syntax error: "(" unexpected (expecting ")")
[ERROR] Failed to start lshttpd!
Any more ideas please?

Thanks!
Reply With Quote
  #4  
Old 05-12-2010, 01:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
just try running lsws/bin/lshttpd directly, check log files under lsws/logs/
Reply With Quote
  #5  
Old 05-12-2010, 10:51 PM
snowweb snowweb is offline
New Member
 
Join Date: May 2010
Posts: 8
Thanks mistwang for your replies. Sorry I forgot to add what happened when I ran lshttpd directly. This is what happened:

Quote:
root@IN07:~# /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd start
-bash: /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd: cannot execute binary file
I checked /mnt/HD_a2/ffp/installed-programs/lightspeed/logs/ and the directory is empty.

Thanks for helping me.

peter
Reply With Quote
  #6  
Old 05-12-2010, 11:21 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
Quote:
-bash: /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd: cannot execute binary file
what's the output of
Quote:
#ls -al /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd
?

it should be 555. if not, run
Quote:
#chmod 555 /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd
Reply With Quote
  #7  
Old 05-12-2010, 11:44 PM
snowweb snowweb is offline
New Member
 
Join Date: May 2010
Posts: 8
Thanks Nitewave.

I ran the command you said:

Quote:
root@IN07:~# ls -al /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd
lrwxrwxrwx 1 root root 16 May 9 13:33 /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd ->
./lshttpd.4.0.14
Is that right?

peter
Reply With Quote
  #8  
Old 05-12-2010, 11:52 PM
snowweb snowweb is offline
New Member
 
Join Date: May 2010
Posts: 8
One other thing, I checked the permissions on /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd.4.0.14 which is what lshttpd points to. They are 555.

The permissions on the /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/ directory are 755 as is the lightspeed directory.
Reply With Quote
  #9  
Old 05-13-2010, 12:07 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
is your OS 32-bit or 64-bit?
Quote:
#file /bin/ls
or
#uname -a
then how about lshttpd?
Quote:
#file /mnt/HD_a2/ffp/installed-programs/lightspeed/bin/lshttpd.4.0.14
Reply With Quote
  #10  
Old 05-15-2010, 06:49 AM
snowweb snowweb is offline
New Member
 
Join Date: May 2010
Posts: 8
Quote:
Originally Posted by NiteWave View Post
is your OS 32-bit or 64-bit?


then how about lshttpd?
Sorry, not sure, although I'd be surprised if a DNS-323 is 64 bit. Is there a command I can run to find out for sure?

What did you mean by the two quotes you included please?

Thanks,

Peter
Reply With Quote
Reply

Tags
error, won't start

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:27 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.