SliTaz SliTaz Forum

You are not logged in.

#1 2013-04-20 15:15:11

d-
Member
Registered: 2013-03-28
Posts: 4

WiKiss and lighttpd

Hi there,

After installing lighttpd I've lost my wiki. I couldn't run it at all. So I added this piece of code into my /etc/lighttpd/lighttpd.conf

[c]$HTTP["url"] =~ "/wiki/" {
  cgi.assign = (
    ".sh" => "/bin/sh",
    ".cgi" => "/bin/sh"
  )
}[/c]
It's running again, but I can't navigate to other page than the main page. No matter what address I go to, it's always the main page that shows up. I can't figure it out and I hate it, because I love the idea of having WiKiss installed and I have some valuable info there. smile

Cheers.

Offline

#2 2013-04-20 15:40:14

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: WiKiss and lighttpd

Just my 5 cents:

Document root correctly set?

subdirectories allow world read? (chmod 755)

/emgi

Offline

#3 2013-04-20 18:33:13

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

Re: WiKiss and lighttpd

tazwikiss(Applications/Office/Wiki documents) running on auto-starting busybox httpd is installed if your booting into core flavor.

You don't want busybox httpd auto-starting:

If you install lighttpd to take the place of busybox httpd replace httpd with lighttpd in /etc/rcS.conf RUN_DAEMONS=

http://hg.slitaz.org/wok/file/f7aac850c3cd/tazwikiss/receipt

There are specific post_install configurations done by tazpkg depending if receipt detects install of lighttpd, apache, or busybox httpd.

Run this command after installing lighttpd to reconfigure tazwikiss:

[c]# tazpkg reconfigure tazwikiss[/c]

Maybe configuring lighttpd for tazwikiss will work for wikiss.

Offline

#4 2013-04-20 18:49:23

d-
Member
Registered: 2013-03-28
Posts: 4

Re: WiKiss and lighttpd

@mojo, I already have changed DAEMONS in rcS.conf (should've mentioned it earlier, sorry). Nevertheless, reconfiguring tazwikiss doesn't change anything. (I ran the command with lighttpd stopped).

@emgi

First of all, I didn't change permissions after installing lighttpd, didn't think it could have antyhing to do with wikiss not running, since it was working fine with httpd from busybox.

Strange enough, when I try to change the permissions, I fail.

[c]

sh-4.2# ls -l

total 48

-rwxr-xr-x    1 www      www            579 Mar 26 07:53 config-de.sh

-rwxr-xr-x    1 www      www            606 Mar 26 07:53 config-fr.sh

-rwxr-xr-x    1 www      www            522 Mar 26 07:53 config.sh

drwxr-xr-x   12 www      www           4096 Mar 29 18:39 historique

-rwxr-xr-x    1 www      www          15638 Mar 26 07:53 index.sh

drwxr-xr-x    2 www      www           4096 Mar 29 18:39 pages

drwxr-xr-x    2 www      www           4096 Mar 26 07:53 plugins

-rwxr-xr-x    1 www      www              0 Mar 29 18:39 rss.xml

-rwxr-xr-x    1 www      www           2075 Mar 26 07:53 style.css

-rwxr-xr-x    1 www      www           1282 Mar 26 07:53 template.html

sh-4.2# find . -type d -exec chmod 755 {} \;

sh-4.2# ls -l

total 48

-rwxr-xr-x    1 www      www            579 Mar 26 07:53 config-de.sh

-rwxr-xr-x    1 www      www            606 Mar 26 07:53 config-fr.sh

-rwxr-xr-x    1 www      www            522 Mar 26 07:53 config.sh

drwxr-xr-x   12 www      www           4096 Mar 29 18:39 historique

-rwxr-xr-x    1 www      www          15638 Mar 26 07:53 index.sh

drwxr-xr-x    2 www      www           4096 Mar 29 18:39 pages

drwxr-xr-x    2 www      www           4096 Mar 26 07:53 plugins

-rwxr-xr-x    1 www      www              0 Mar 29 18:39 rss.xml

-rwxr-xr-x    1 www      www           2075 Mar 26 07:53 style.css

-rwxr-xr-x    1 www      www           1282 Mar 26 07:53 template.html

[/c]

So I tried with one directory at a time:

[c]

sh-4.2# ls -l | grep historique

drwxr-xr-x   12 www      www           4096 Mar 29 18:39 historique

sh-4.2# chmod 755 historique

sh-4.2# ls -l | grep historique

drwxr-xr-x   12 www      www           4096 Mar 29 18:39 historique

[/c]

But I guess this is not the culprit, since the front page is being read; that means it can access the pages directory, even though it's 751.

As for the document root, I guess it's set properly since everything else is working.

Offline

#5 2013-04-21 01:06:05

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

Re: WiKiss and lighttpd

When I installed using this method with clean boot of core iso it works without any additional configuration. Main difference between tazwikiss and wikiss other than theme and english translation is wikiss requires php. Maybe your php isn't working ?

[c]# tazpkg -gi php[/c]

This installs php,php-common,lighttpd,lighttpd-modules,bzip2

Check php: Applications/Development/Php info

Install wikiss=> [c]# tazpkg -gi wikiss[/c]

Open wikiss=> [c]browser http://localhost/wikiss[/c]

Reconfigure tazwikiss to run on lighttpd=> [c]# tazpkg reconfigure tazwikiss[/c]

Open tazwikiss=> [c]browser http://localhost/wiki[/c]

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.54 MiB (Peak: 1.77 MiB) ]