[pmwiki-users] export to static html with wget
Petko Yotov
5ko at 5ko.fr
Mon Oct 18 20:31:34 CDT 2010
On Sunday 17 October 2010 06:46:14 Erich Hoffmann wrote:
> 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
> ~~~~~~~~~~~~~/
Hello. It should be easier to get the site if it is at least temporarily
without a "read" password. Otherwise you should add an option to the command
line to store and re-use cookies (in a single disk file) :
wget --load-cookies=./cookie.txt --save-cookies=./cookie.txt [...]
> 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.")
Some servers are configured to block "robots" like wget from downloading
pages. If that is the case for yours, you can force a different user agent:
wget --user-agent="Mozilla/5.0" [other options...]
> 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?
"index.php" is not a directory, just a text file containing this single line:
<?php include_once("pmwiki.php");
See the "Notes" section at http://www.pmwiki.org/wiki/PmWiki/Installation .
Thanks,
Petko
More information about the pmwiki-users
mailing list