[pmwiki-users] export to static html with wget
Erich Hoffmann
erichhoffmann at gmx.de
Sat Oct 16 23:46:14 CDT 2010
Hello all.
I tried to export my pwmiki site to static html with the wget command
from the cookbook: (this is a slackware linux 13.1)
~~~~~~~~~~~~~\
wget -r -k -np -p -l 0 http://localhost/E/pmwiki --html-extension --post-data=authid={MY_USERNAME}&authpw={MY_PASSWD} 2> wget.log
~~~~~~~~~~~~~/
Did that with and without POST request.
Here is the failure log:
~~~~~~~~~~~~~\
--2010-10-17 06:27:21-- http://localhost/E/pmwiki
Auflösen des Hostnamen »localhost (localhost)«.... 127.0.0.1
("resolving hostname localhost...")
Verbindungsaufbau zu localhost (localhost)|127.0.0.1|:80... verbunden.
("connection to localhost [...]... connected.)
HTTP Anforderung gesendet, warte auf Antwort... 301 Moved Permanently
("HTTP request sent, waiting for answer... 301 Moved Permanently")
Platz: http://localhost/E/pmwiki/[folge]
("place: http://localhost/E/pmwiki/[following]")
--2010-10-17 06:27:21-- http://localhost/E/pmwiki/
Wiederverwendung der bestehenden Verbindung zu localhost:80.
("reusing the existing connection to localhost:80.")
HTTP Anforderung gesendet, warte auf Antwort... 403 Forbidden
("http request sent, waiting for answer... 403 Forbidden")
2010-10-17 06:27:21 FEHLER 403: Forbidden.
("2010-10-17 06:27:21 ERROR 403: Forbidden.")
0 Dateien in 0 Sekunden konvertiert.
("0 files in 0 seconds were converted.")
~~~~~~~~~~~~~/
I hope the translation is correct and readable.
Is this a wget problem with localhost?
There is a comment in the cookbook:
~~~~~~~~~~~~~\
18-Mar-2007 Olivier Bilodeau - I'm using CleanUrls (the ones that
wraps around index.php) and this cookbook didn't work. After a little
bit of research, I've found a workaround. You just need to create a
local index.php directory where your pmwiki wraps around index.php. No
more wget errors.
~~~~~~~~~~~~~/
Excuse me - I can't follow, obviously because I'm new to php. I am
to create a directory named "index.php" ? What is meant by "where your
pmwiki wraps around index.php" i.e. what am I to do?
Cheers and thanks in advance,
erich
More information about the pmwiki-users
mailing list