Camen Design Forum

What are the recommended Chmod for NoNonsenseForum

append delete NNFNewbie

So I am racking my head over this one..had it working at one time.

Running CentOS 6.5


<Directory />
Options FollowSymLinks
AllowOverride None
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Alow from all
<Directory "/var/www/html/forum">
AllowOverride All
Order allow,deny
Allow from all

I've created a user: webadmin and assigned it to groups wheel and apache

[root@server1 forum]# ls -la
total 304
drwxrwxr-x 5 apache apache 4096 Mar 14 14:51 .
drwxrwxr-x 5 apache apache 4096 Mar 14 03:50 ..
-rw-rw-r-- 1 webadmin apache 1727 Feb 22 06:21 apple-touch-icon.default.png
-rw-rw-r-- 1 webadmin apache 2944 Feb 22 06:21 config.default.php
-rw-rw-r-- 1 webadmin apache 2954 Mar 14 03:52 config.php
-rw-rw-r-- 1 webadmin apache 9286 Feb 22 06:21 favicon.default.ico
-rw-rw-r-- 1 webadmin apache 15413 Feb 22 06:21 HISTORY.txt
-rw-r--r-- 1 webadmin apache 7082 Mar 14 14:51 .htaccess
-rw-rw-r-- 1 webadmin apache 17225 Feb 22 06:21 index.php
-rw-r--r-- 1 webadmin apache 20 Mar 14 03:54 info.php
-rw-rw-r-- 1 webadmin apache 9642 Feb 22 06:21 INSTALL.txt
drwxrwxr-x 3 webadmin apache 4096 Feb 22 06:21 lib
-rw-rw-r-- 1 webadmin apache 2591 Feb 22 06:21 LICENCE.txt
-rw-rw-r-- 1 webadmin apache 649 Feb 22 06:21 markup.php
-rw-rw-r-- 1 webadmin apache 103019 Feb 22 06:21 metro-tile.default.png
-rw-rw-r-- 1 webadmin apache 646 Feb 22 06:21 privacy.php
-rw-rw-r-- 1 webadmin apache 10603 Feb 22 06:21 README.txt
-rw-rw-r-- 1 webadmin apache 56 Feb 22 06:21 robots.txt
-rw-rw-r-- 1 webadmin apache 20809 Feb 22 06:21 start.php
drwxrwxr-x 3 webadmin apache 4096 Feb 22 06:21 themes
-rw-rw-r-- 1 webadmin apache 37997 Feb 22 06:21 thread.php
drwxrwxr-x 2 webadmin apache 4096 Feb 22 06:21 users

I can run info.php from /var/www/html/forum/info.php, but I can not get NNF to run.

Any assistance is appreciated. Thank you.

Reply RSS


append delete #1. Martijn

The user that PHP runs under needs to have write access to the folder you put the forum in, in your case /var/www/html/forum/. That’s where it creates the per-topic `.xml` files.

That’s really the only CHMOD setting there is. On most servers I have worked with, this was already the case.

append delete #2. NNFNewbie

Replacing index.php with a simple new index.php that displays phpinfo() works. So this dosn't seem to be a permissions issue. AllowOverride All is in httpd.conf

/forum/ is owned by wwwrun and has write permissions. /forum/users/ also has write permissions and is owned by wwwrun.

I'm spending too much time on this (2 days into this) now. I'm getting ready to find some other option.

append delete #3. Martijn

So do you get any actual errors from NNF’s index.php that you could share?

Note that phpinfo() doesn’t need write access to the folder to run, so if your problem is CHMOD related (which I thought it was due to your topic title) that test doesn’t tell you anything.

append delete #4. NNFNewbie

Martijn: thank you, it was your question that got me thinking along the right lines.

The problem was that php-mbstring was missing from my CentOS installation.

For other CentOS users:

yum install php php-mbstring

It's working..cheers!

append delete #5. Martijn

Glad I was able to help in some way. I have opened a ticket on the code repository asking for NNF to specifically check for multibyte string functions in the future and displaying a clear error when they are missing:


(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn