[Reso] Server won't start: ./lshttpd: 1: Syntax error: "(" unexpected (expecting ")")

Discussion in 'Install/Configuration' started by snowweb, May 9, 2010.

  1. snowweb

    snowweb New Member

    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:

    I don't know where to start looking to trouble shoot this. Any help would be great.

    Thanks,

    peter
    Last edited by a moderator: May 16, 2010
  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. snowweb

    snowweb New Member

    Thanks mistwang. I've installed bash and tried again, I get the same result :(

    I echoed the bash version for you.

    Any more ideas please?

    Thanks!
  4. mistwang

    mistwang LiteSpeed Staff

    just try running lsws/bin/lshttpd directly, check log files under lsws/logs/
  5. snowweb

    snowweb New Member

    Thanks mistwang for your replies. Sorry I forgot to add what happened when I ran lshttpd directly. This is what happened:

    I checked /mnt/HD_a2/ffp/installed-programs/lightspeed/logs/ and the directory is empty.

    Thanks for helping me.

    peter
  6. NiteWave

    NiteWave Administrator

    what's the output of
    ?

    it should be 555. if not, run
  7. snowweb

    snowweb New Member

    Thanks Nitewave.

    I ran the command you said:

    Is that right?

    peter
  8. snowweb

    snowweb New Member

    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.
  9. NiteWave

    NiteWave Administrator

    is your OS 32-bit or 64-bit?
    then how about lshttpd?
  10. snowweb

    snowweb New Member

    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
  11. NiteWave

    NiteWave Administrator

    run those commands on your server to determine 32-bit or 64-bit.
    post the output here.
  12. snowweb

    snowweb New Member

    Thanks :)
  13. NiteWave

    NiteWave Administrator

  14. snowweb

    snowweb New Member

    Oh! That's a shame. Thanks for your help identifying the problem anyway. I'd never of figured that out myself.

    Maybe I'll stop back here next year and see if you support my processor then. Many thanks anyway.

    peter

Share This Page