]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/can__39__t_connect_to_local_url_after_installing_ikiwiki/comment_1_9feba07c25d226bf63d0886139ed7847._comment
Added a comment: You'll need a web server, and don't run ikiwiki as root
[git.ikiwiki.info.git] / doc / forum / can__39__t_connect_to_local_url_after_installing_ikiwiki / comment_1_9feba07c25d226bf63d0886139ed7847._comment
1 [[!comment format=mdwn
2  username="smcv"
3  subject="You'll need a web server, and don't run ikiwiki as root"
4  date="2016-03-11T20:39:35Z"
5  content="""
6 > sudo ikiwiki --setup /opt/local/etc/ikiwiki/auto.setup
8 This is probably not the cause of your problem, but please don't do this. ikiwiki
9 should always be run as an ordinary user, never as root. If it runs as root, any
10 bugs in ikiwiki could have very bad consequences.
12 (I'm tempted to make it just exit with an error message if run as root, actually.)
14 > ```
15 >     url:         http://kund-Mac-2.local/~root/RelatiicuPublicul
16 >     srcdir:      ~/RelatiicuPublicul
17 >     destdir:     ~/public_html/RelatiicuPublicul
18 >     repository:  ~/RelatiicuPublicul.git
19 > ```
21 ikiwiki does not include a web server (http server), so you cannot edit via a
22 browser without providing one.
24 `auto.setup` tries to guess at some reasonable defaults that will work on a
25 reasonable number of Unix machines: it assumes that `~/public_html` is
26 mapped to `http://${hostname}/~${username}/` by your web server. This is
27 the default configuration on many Linux and *BSD systems; I don't know
28 whether that's true on OS X or not.
30 It also assumes that an executable named `ikiwiki.cgi` in `public_html`
31 will be run as a CGI script. Again, this is often true, but not always.
33 Perhaps we should have some wording like
35 ```
36 If you have a web server running, your site might be available at:
38      url:         http://kund-Mac-2.local/~root/RelatiicuPublicul
39      srcdir:      ~/RelatiicuPublicul
40      destdir:     ~/public_html/RelatiicuPublicul
41      repository:  ~/RelatiicuPublicul.git
42 ```
44 as a hint that ikiwiki has done what it can, and the rest is up to you?
46 > Unescaped left brace in regex is deprecated
48 I think we fixed this in the latest version of ikiwiki, so you might not
49 be running the current version (that won't affect this particular
50 issue, but there are other improvements).
51 """]]