Starting web server: LightTPD... /usr/sbin/lighttpd: line 1: syntax error: unexpected "("
Is there a way to resolve this and get 'Lighty' up and running ?
LightTPD on RasPi: starting problem
(8 posts) (3 voices)-
Posted 10 years ago #
-
Can you show us the contents of /etc/lighttpd/lighttpd.conf?
Posted 10 years ago # -
Please see this link for the contents of lighttpd.conf -> http://paste.slitaz.org/?5cfdf4707c9d942e#kk2P16QFAF2xmmz5d6K3jZe2wyD8AF1lxnzjjLBsYxw=
Posted 10 years ago # -
@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.
cat /etc/slitaz-release
arm
Verify spk mirror is correct.
spk info
Mirror URL; http://cook.slitaz.org/cross/arm/packages/
Clean cache with tazpkg before you remove it.
tazpkg clean-cache
Remove wrong architecture lighttpd and tazpkg.
spk-rm lighttpd tazpkg
Clean the cache
spk clean
Install lighttpd and tazpkg
spk-add lighttpd tazpkg
Verify tazpkg mirror is correct.
cat /var/lib/tazpkg/mirror
http://cook.slitaz.org/cross/arm/packages/
If tazpkg is set to wrong mirror
tazpkg setup-mirror
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:
http://cook.slitaz.org/cross/arm/packages/
Hit Enter
Setting mirror(s) to: http://cook.slitaz.org/cross/arm/packages/
Recharge
tazpkg recharge
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 lighttpdSearch result for: lighttpd
================================================================================
Installed packages
================================================================================
================================================================================
0 installed packages found for: lighttpdAvailable 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: lighttpdPosted 10 years ago # -
Thanks,mojo. Finally lighttpd is up -> http://paste.slitaz.org/?adcf728594460d80#/nEeTt5gcMhySKwqjaal69Il1FE2BIZHne7oDQgFuP4=
Started afresh as there were too many -- unexpected "(" -- errors.
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...Posted 10 years ago # -
@geev03
That is great news.
I would recommend anyone that installs tazpkg on arm
tazpkg -sm
to verify http://cook.slitaz.org/cross/arm/packages is the mirror before installing any packages.Posted 10 years ago # -
As per mojo's suggestions on the use spk, lot more packages are now installed on a Raspberry Pi (2GB SD Card ).
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=
Posted 10 years ago # -
Posted 10 years ago #
Reply
You must log in to post.