SliTaz SliTaz Forum

You are not logged in.

#1 2014-06-03 10:26:58

geev03
Member
Registered: 2012-01-09
Posts: 43

LightTPD on RasPi: starting problem

[c]Starting web server: LightTPD... /usr/sbin/lighttpd: line 1: syntax error: unexpected "("[/c]

Is there a way to resolve this and get 'Lighty' up and running ?

[attachment=30595,1532]

Offline

#2 2014-06-03 17:09:47

devl547
Administrator
Registered: 2011-06-01
Posts: 285

Re: LightTPD on RasPi: starting problem

Can you show us the contents of /etc/lighttpd/lighttpd.conf?

Offline

#3 2014-06-03 21:58:39

geev03
Member
Registered: 2012-01-09
Posts: 43

Re: LightTPD on RasPi: starting problem

Please see this link for the contents of lighttpd.conf ->  http://paste.slitaz.org/?5cfdf4707c9d942e#kk2P16QFAF2xmmz5d6K3jZe2wyD8AF1lxnzjjLBsYxw=

Offline

#4 2014-06-04 02:41:31

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: LightTPD on RasPi: starting problem

@geev03

Your screenshot indicates tazpkg installed lighttpd-1.4.33.tazpkg from mirror.slitaz.org which is i486 architecture.

Programs for arm architecture have <program.name>-<version>-arm.tazpkg

Web page for arm packages: http://arm.slitaz.org/tools.cgi?pkgs

Use spk to install programs on arm.

The repo for programs compiled for arm: http://cook.slitaz.org/cross/arm/packages/

The arm version of lighttpd: http://cook.slitaz.org/cross/arm/packages/lighttpd-1.4.33-arm.tazpkg

Verify release is correct.

[c]cat /etc/slitaz-release[/c]

arm

Verify spk mirror is correct.

[c]spk info[/c]

Mirror URL; http://cook.slitaz.org/cross/arm/packages/

Clean cache with tazpkg before you remove it.

[c]tazpkg clean-cache[/c]

Remove wrong architecture lighttpd and tazpkg.

[c]spk-rm lighttpd tazpkg[/c]

Clean the cache

[c]spk clean[/c]

Install lighttpd and tazpkg

[c]spk-add lighttpd tazpkg[/c]

Verify tazpkg mirror is correct.

[c]cat /var/lib/tazpkg/mirror[/c]

http://cook.slitaz.org/cross/arm/packages/

If tazpkg is set to wrong mirror

[c]tazpkg setup-mirror[/c]

Hit Enter

Current mirror(s)

================================================================================

  http://mirror.clarkson.edu/slitaz/packages/5.0/

Please enter URL of the new mirror (http, ftp or local path). You must specify

the complete address to the directory of the packages and packages.list file.

New mirror(s) URL:

Type this:

[c]http://cook.slitaz.org/cross/arm/packages/[/c]

Hit Enter

[c]Setting mirror(s) to: http://cook.slitaz.org/cross/arm/packages/[/c]

Recharge

[c]tazpkg recharge[/c]

After it downloads the lists from cook it shows 855 new packages on the arm mirror.

Verify package search returns arm version

root@slitaz:/home/tux# tazpkg search lighttpd

Search result for: lighttpd

================================================================================

Installed packages

================================================================================

================================================================================

0 installed packages found for: lighttpd

Available packages name-version

================================================================================

lighttpd-1.4.33-arm

lighttpd-modules-1.4.33-arm

lighttpd-ssl-1.4.33-arm

================================================================================

3 available packages found for: lighttpd

Offline

#5 2014-06-04 11:29:38

geev03
Member
Registered: 2012-01-09
Posts: 43

Re: LightTPD on RasPi: starting problem

Thanks,mojo. Finally lighttpd is up -> http://paste.slitaz.org/?adcf728594460d80#/nEeTt5gcMhySKwqjaal69Il1FE2BIZHne7oDQgFuP4= 

Started afresh as there were too many -- unexpected "(" -- errors.

[c]Starting afresh!

(i)

================================================================================

Architecture  : arm

Database      : /var/lib/tazpkg/installed

Cache info    : 4.0K /var/cache/tazpkg

Mirror URL    : http://cook.slitaz.org/cross/arm/packages/

Extra mirrors : 0

Installed     : 101

================================================================================

(ii)

================================================================================

Architecture  : arm

Database      : /var/lib/tazpkg/installed

Cache info    : 2.5M /var/cache/tazpkg

Mirror URL    : http://cook.slitaz.org/cross/arm/packages/

Extra mirrors : 0

Installed     : 112

Mirrored      : 856

================================================================================

(iii) lighttpd is up & running... [/c]

Offline

#6 2014-06-04 12:07:11

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: LightTPD on RasPi: starting problem

@geev03

That is great news.

I would recommend anyone that installs tazpkg on arm

[c]tazpkg -sm[/c]

to verify http://cook.slitaz.org/cross/arm/packages is the mirror before installing any packages.

Offline

#7 2014-06-04 21:07:34

geev03
Member
Registered: 2012-01-09
Posts: 43

Re: LightTPD on RasPi: starting problem

As per mojo's suggestions on the use spk, lot  more packages are now installed on a Raspberry Pi (2GB SD Card ).

[c]  root@slitaz:/var/www# spk info

Spk info

================================================================================

Architecture  : arm

Database      : /var/lib/tazpkg/installed

Cache info    : 73.3M /var/cache/tazpkg

Mirror URL    : http://cook.slitaz.org/cross/arm/packages/

Extra mirrors : 0

Installed     : 342

Mirrored      : 856

================================================================================

root@slitaz:/var/www#

342 >>  http://paste.slitaz.org/?b8c63c81dc1f5dea#62B3jjWEHaycGlwGMF1HFN9yTJyJkyntCpYMHT1wmGA=

[/c]

Offline

#8 2014-06-04 22:15:25

geev03
Member
Registered: 2012-01-09
Posts: 43

Re: LightTPD on RasPi: starting problem

raspi_x11vnc.jpg

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]