Koozali.org: home of the SME Server

[Phorum] two questions

Timothée Bastin

[Phorum] two questions
« on: January 11, 2003, 07:13:41 PM »
Hi everyone,

I recently installed the Phorum rpm from Darrell May and ofcourse it works great :) However...almost great should be better. What's the problem?

Well...I have to questions:

1. The first one is about the DocumentRoot path for Phorum. Phorum is installed in /opt/groupware/phorum and is accessible at http://mydomain.com/phorum. Everything ok so far, but I want to link the /opt directory to a subdomain. I want to be able to connect to the forum software by for example http://phorum.minddigger.com. Thereby it would be nice if the original reference to /phorum was deleted, but that's not very important.

I just edited httpd.conf by hand (I know that's naughty :-)) and replaced the original DocumentRoot line for the subdomain phorum.minddigger.com to the path where the Phorum software is installed, /opt/groupware/phorum. Of course this works, but not for long!
I now wanted to ask how to write a template fragment which overwrites/replaces the standard DocumentRoot line(s). I know how to write template fragments for httpd.conf but these only add some information instead of replacing it.

2. My second question is related to the Phorum software functionality itself in combination with SME 5.1.2.
As I said before the forum works great, but I can't get the upload functionality working?! I added a directory "attachments" to the phorum dir and chmodded it 777. I also configured Phorum to enable the attachment functionality and it shows that you should be able to attach something (the accompanying buttons are shown). However, when I try to upload a picture and press the upload button, it always comes up with the following error:

Can't save upload file

I really don't know how this is possible because of the 777 chmodded attachments directory (and reference to it in the Phorum config). I tried another dir of which I was sure it was world wide accessible, but this also did not function.
FYI, I already disabled sandboxing (if that should possibly be the reason of disfunctioning).

Has anyone any idea how to correctly enable/setup the attachment functionality of Phorum?

TIA,

Timothée

Bill Talcott

Re: [Phorum] two questions
« Reply #1 on: January 13, 2003, 05:19:36 PM »
Timothée Bastin wrote:
>
> I just edited httpd.conf by hand (I know that's naughty :-))
> and replaced the original DocumentRoot line for the subdomain
> phorum.minddigger.com to the path where the Phorum software
> is installed, /opt/groupware/phorum. Of course this works,
> but not for long!
> I now wanted to ask how to write a template fragment which
> overwrites/replaces the standard DocumentRoot line(s). I know
> how to write template fragments for httpd.conf but these only
> add some information instead of replacing it.

If you want to change something, copy the existing template from /templates/ and save it with your changes in /templates-custom/. The custom dir takes precedence over the default dir.

Timothée Bastin

Re: [Phorum] two questions
« Reply #2 on: January 13, 2003, 05:40:23 PM »
I know that procedure, but I don't know what specific template (fragment) I have to edit to change the documentroot of one subdomain.

Timothée Bastin

Re: [Phorum] two questions
« Reply #3 on: January 13, 2003, 05:43:55 PM »
Sorry..I can't change my previous reply but I wanted to add that the problem in question 2 is already solved. Don't ask me why, but after I created a new forum everything worked fine?!