John Cole schrieb:
> I know this has been answered before but I can't find it in the mail
> archives and the search on the phpwiki wiki seems to be broken :-)
yes, there's something going on. editing also fails every 2nd time.
> What do you need to do to have phpwiki be in a subdirectory (like phpwiki)
> but have the server root use the index.php for phpwiki?
>
> For example, I've pulled phpwiki from cvs into a directory in my webserver
> root called 'phpwiki'. I copied the index.php from 'phpwiki' up one
> directory and modified the path in that file to reflect the path to the lib
> and config files.
>
> This seems to work, the wiki does come up, but the themes are not working.
> I've scanned the config.ini file for more paths to set, but I didn't find
> anything that seemed to make a difference.
>
> Any suggestions? Previously, I've copied everything in the phpwiki
> directory up one directory, but this is getting a little messy now :-) and
> I'd like to clean up my web server root.
DATA_PATH is the web path.
It should point to something outside of the scope of the phpwiki php
handler, but pointing to the necessary ressources, like images and css
files.
PHPWIKI_DIR
is the local path, needed e.g. to find the themes on the local disc.
There are many solutions, e.g. simple, vhosts or rewrite rules.
We support the native solution with the empty DATA_PATH = / also.
But be sure to use VIRTUAL_PATH = / also then!
PHPWIKI_DIR = /home/user/public_html/phpwiki
NameVirtualHost 192.168.0.2
<VirtualHost 192.168.0.2>
DocumentRoot /var/www
ServerName www.provider.com
</VirtualHost>
<VirtualHost 192.168.0.2>
DocumentRoot /home/user/public_html/phpwiki
ServerName www.my.org
ServerAlias my.org
</VirtualHost>
=> http://www.my.org/HomePage
VIRTUAL_PATH = /
SERVER_NAME = www.provider.com
DATA_PATH = /~user/phpwiki
=> http://www.provider.com/~user/phpwiki/themes/default/phpwiki.css
for the data.
or another attempt (not so good, and not tested)
VIRTUAL_PATH = /
SERVER_NAME =
DATA_PATH = /~user/phpwiki/
=> http://www.my.org/themes/default/phpwiki.css
for the data.
The problem here is that you cannot use any pagename which corresponds
to an existing directory name, like "themes", "schemas", "config", ...
because the apache handler would override it.
with mod_rewrite or mod_proxy it would work also.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
|