[Discuss] Having trouble browsing a backed-up MediaWiki (PHP)
site.
Deryk Barker
dbarker at camosun.bc.ca
Tue Sep 26 15:11:57 PDT 2006
Alan W. Irwin wrote:
> Since I got no response to my first detailed question I will boil this
> down
> to something which I hope is really simple enough for the apache and
> PHP gurus here to answer; how do I set up apache on my local machine
> so that I
> get the same browsing experience for downloaded (with wget) files like
> /home/irwin/public_html/plplot_wiki/index.php?title=Main_Page (viewed
> with a
> browser as the URL
> http://localhost/~irwin/plplot_wiki/index.php?title=Main_Page) as I do
> for
> the original PHP-generated pages like
> http://www.miscdebris.net/plplot_wiki/index.php?title=Main_Page
>
> ?
>
> When I browse the localhost URL above corresponding to the downloaded
> file,
> I simply get a view of the source code for the page, and it is not
> rendered.
> How can I fix that?
Do you have the Apache PHP module enabled? (Assuming you're running Apache)
I have both php4.conf and php4.load in the /etc/apache2/mods-available
and mods-enabled directories.
I also have (in /etc/apache2/apache2.conf) the line:
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
I don't recall if there's anything else you need - it's been a while
since I set it up.
More information about the Discuss
mailing list