From: Jim F. <ja...@wa...> - 2006-01-25 13:17:31
|
On Tue, 2006-01-24 at 14:42 +0100, Jim Ford wrote: > Some time ago I installed phpwiki on a Slack box, and after a bit of > fiddling, got it working OK. I'm now trying to install it on a new > Kubuntu/Debian system via 'Adept'. All seemed to go OK - the files > got installed, but I can't get it working. I presume that I should be > able to just point a browser at /usr/share/phpwiki for it to start up, > but all I get is the directory! I suspect that this is an apache2/php > issue, as the index.php isn't being interpreted by apache. > > The README.Debian file that came with the package states that it should > 'work out of the box' - mine must have come in a different box! The Debian PHPwiki package (which Ubuntu uses pretty much unmodified) sets up PHPwiki to be visible at http://your-site/phpwiki/ by default. As you install the package you should be asked a debconf question to give you the opportunity to change this. I've not heard of adept before, but if you're not getting asked this question blame adept. Thanks for the reply Matt When I installed phpwiki I just accepted the default for the installation directory, and it ended up in /usr/share/. I've tried making a soft link to /var/www/ but it didn't work - I got the following error: lib/main.php:20: Fatal[2048]: Assigning the return value of new by reference is deprecated I've tried uninstalling and re-installing, hoping to get the package installation prompts again, but apt-get seems to remember where it was previously installed. Any idea how I can make apt-get completely forget the previous installation so I can start again? Jim Ford |
From: Jim F. <ja...@wa...> - 2006-01-25 16:35:44
|
The Debian PHPwiki package (which Ubuntu uses pretty much unmodified) sets up PHPwiki to be visible at http://your-site/phpwiki/ by default. As you install the package you should be asked a debconf question to give you the opportunity to change this. I've not heard of adept before, but if you're not getting asked this question blame adept. I've now found how to purge a package 'dpkg --purge phpwiki' which gets rid of all the config files. I've tried reinstalling, but whatever I put in the installation path: /phpwiki (the default) /apache2-default/phpwiki (my site) /var/www/apache2-default (absolute path) It never appears as a link or otherwise in /var/www/apache2-default. It always ends up in /usr/share/phpwiki BTW adept seems to be a graphical front-end to apt-get Jim Ford |
From: Matthew P. <mp...@he...> - 2006-01-25 21:29:35
|
On Wed, Jan 25, 2006 at 05:35:21PM +0100, Jim Ford wrote: > > The Debian PHPwiki package (which Ubuntu uses pretty much unmodified) > sets up PHPwiki to be visible at http://your-site/phpwiki/ by default. > > As you install the package you should be asked a debconf question to > give you the opportunity to change this. I've not heard of adept before, > but if you're not getting asked this question blame adept. > > I've now found how to purge a package 'dpkg --purge phpwiki' which > gets rid of all the config files. I've tried reinstalling, but whatever > I put in the installation path: > /phpwiki (the default) > /apache2-default/phpwiki (my site) > /var/www/apache2-default (absolute path) > It never appears as a link or otherwise in /var/www/apache2-default. > It always ends up in /usr/share/phpwiki Which is where it should be. Dropping crap in /var/www is a Bad Idea. Instead, phpwiki uses Alias to take requests for the specified path and redirect it to the files in /usr/share/phpwiki. - Matt |
From: Matt B. <ma...@ma...> - 2006-01-25 22:20:05
|
On Wed, 2006-01-25 at 17:35 +0100, Jim Ford wrote: > I've now found how to purge a package 'dpkg --purge phpwiki' which > gets rid of all the config files. I've tried reinstalling, but whatever > I put in the installation path: > /phpwiki (the default) > /apache2-default/phpwiki (my site) > /var/www/apache2-default (absolute path) > It never appears as a link or otherwise in /var/www/apache2-default. > It always ends up in /usr/share/phpwiki As Matt Palmer has already mentioned the package sets up Alias directives for apache to make the site visible. I'm guessing that you're still using the PHPwiki 1.3.7 package that is in Ubuntu which does not integrate with apache2 automatically. If so you have two options: - Use the PHPwiki 1.3.11p1 package as per my previous email - Manually link the PHPwiki package into apache2, to do this: symlink /etc/phpwiki/apache.conf to /etc/apache2/conf.d/phpwiki.conf or simply Include /etc/phpwiki/apache.conf from the configuration of the vhost that you want PHPwiki to appear under. Does this make sense? If you're still having problems, can you please supply more details: - phpwiki package version (dpkg -s phpwiki) - Apache version (I'm assuming apache2 from above) - Contents of /etc/phpwiki/apache.conf - Do the /etc/apache/conf.d/phpwiki.conf or /etc/apache2/conf.d/phpwiki.conf symlinks exist. Cheers -- Matt Brown ma...@ma... Mob +64 275 611 544 www.mattb.net.nz |
From: Reini U. <ru...@x-...> - 2006-01-25 17:09:06
|
2006/1/25, Jim Ford <ja...@wa...>: > > On Tue, 2006-01-24 at 14:42 +0100, Jim Ford wrote: > > Some time ago I installed phpwiki on a Slack box, and after a bit of > > fiddling, got it working OK. I'm now trying to install it on a new > > Kubuntu/Debian system via 'Adept'. All seemed to go OK - the files > > got installed, but I can't get it working. I presume that I should be > > able to just point a browser at /usr/share/phpwiki for it to start up, > > but all I get is the directory! I suspect that this is an apache2/php > > issue, as the index.php isn't being interpreted by apache. > > > > The README.Debian file that came with the package states that it shoul= d > > 'work out of the box' - mine must have come in a different box! > > The Debian PHPwiki package (which Ubuntu uses pretty much unmodified) > sets up PHPwiki to be visible at http://your-site/phpwiki/ by default. > > As you install the package you should be asked a debconf question to > give you the opportunity to change this. I've not heard of adept before, > but if you're not getting asked this question blame adept. > > Thanks for the reply Matt > > When I installed phpwiki I just accepted the default for the installation= directory, and it ended up > in /usr/share/. I've tried making a soft link to /var/www/ but it didn't = work - I got the following > error: > > lib/main.php:20: Fatal[2048]: Assigning the return value of new by refere= nce is deprecated This cannot be 1.3.11p1 In line 20 there's still the header. What is the rcs_id line in your lib/main.php? -- Reini Urban http://phpwiki.org/ http://spacemovie.mur.at/ |