eGroupware vs. phpBB (conflicting requirements on mbstring.func_overload)

apps

#1

Hi,

Happy new year for all geeks working today :slight_smile:

I contacted Dreamhost support about this, but they told me:

[quote]"…Unfortunately, this issue is beyond our scope of tech support as we do not provide assistance nor support for third party scripts or custom
code…"[/quote]

Here is my question:

I’m instaling phpBB by “One-Click Installs”.
When I go to “Requirement” tab of phpBB I saw:
mbstring.func_overload must be set to either [color=#FF0000]0 or 4[/color]

BUT, I have eGroupware installed too, and according the wiki page (http://wiki.dreamhost.com/EGroupWare), it require:
mbstring.func_overload=[color=#FF0000]7[/color]

Anyone know a workaround to use both (eGroupware and phpBB)?

Best regards,
Renato S. Yamane


#2

put a .htaccess in for each of the sites, with the following:
php_flag [variable_name] [value]

so for phpBB:
php_flag mbstring.func_overload 0

eGroupware:
php_flag mbstring.func_overload 7


#3

Sorry for my newbie question, but:

So, I have only one .htaccess, that is on mysite.com

Best regards,
Renato S. Yamane


#4

Put a file called .htaccess in mysite.com/egroupware/ and one in mysite.com/forum/

.htaccess files apply to the directory they are in, and all subdirectories.

So if you had something like this:

mysite.com/.htaccess
mysite.com/egroupware/.htaccess
mysite.com/forum/.htaccess

Then any rules in mysite.com/.htaccess would apply to all three directories.

Any rules in mysite.com/egroupware/.htaccess would apply to mysite.com/egroupware/ and any sub directories.

Any rules in mysite.com/forum/.htaccess would apply to mysite.com/forum/ and any sub directories.

If you had a rule in mysite.com/.htaccess and a rule in mysite.com/forum/.htaccess conflicted with it, then in mysite.com/forum/ and sub directories, it would use the rule in mysite.com/forum/.htaccess

I hope that makes sense.

#EDIT: You can also make ‘directory specific’ rules in a .htaccess file.

So in your main .htaccess file, you could have something like this:

<Directory "egroupware">
php_flag mbstring.func_overload 7
</Directory>
<Directory "forum">
php_flag mbstring.func_overload 0
</Directory>

#5

bobthecheese - two issues:

  1. doesn’t work in .htaccess files. They’re always implicitly scoped to the directory that the .htaccess file is in.

  2. php_flag doesn’t work on our system anyway. It’s specific to mod_php, which we don’t use.


#6

Thanks Bob!

Fixed with:

<Directory “egroupware”>
php_flag mbstring.func_overload 7

<Directory “forum”>
php_flag mbstring.func_overload 0