From: Jeff D. <da...@da...> - 2003-03-08 20:56:35
|
> First, when I access the phpwiki site locally, there is no problem. > When I access the site remotely from the internet there is a problem. > The links created using [ and ] point to > "http://mycomputername.local/phpwiki/index.php/thenameofthewikipage". > As I said, this works on my local network, but obviously not from the > web. If I manually type in > "http://myipaddress/phpwiki/index.php/thenameofthewikipage" the page > does come up fine. It's really a problem with your http server configuration. By default, PhpWiki deduces the server host name from the $SERVER_NAME environment variable which is set by the http server (e.g. apache). So the best way to fix the problem is to fix your web server configuration so that it reports the correct server name. > Is there a way to change the "mycomputername.local" > in the index.php so that it just points to the local server instead of > the name my computer has in the local network? What part of index.php > do I need to change, and how do I need to change it? As a work-around you can manually set SERVER_NAME in index.php. Uncomment the line which says: if (!defined('SERVER_NAME')) define('SERVER_NAME', 'some.host.com'); and change 'some.host.com' to something more appropriate. > My second questions is, where are the new pages being created? In the > "INSTALL" file it says that new pages are created in a "tmp" folder. I > do not have a "tmp" folder in my phpwiki folder. So where are these > pages being created? The pages are stored in the MySQL database (if you're using the MySQL backend, which you are.) -- -- Jeff Dairiki <da...@da...> |