YaBB Forum won't work / CHMOD advice?

I get a 500 error with my YaBB Forum.

I’m wondering here if there is other advice for chmod with dreamhost.

Like when it says 766 or 777, is 766 the way to go? Or should it be 755?

If there is any other advice for YaBB forums on dreamhost, please post that, too!

-needing help.

The JavaScript Kit website has this handy chmod calculator for easily calculating the octal value you need to pass to chmod to set permissions for a file or directory.

The key thing to understand is what minimum permissions you need to set in order to accomplish what you are trying to do. Sometimes this isn’t obvious, but the documentation may give you some clues. Googling for advice might help, too.

For a CGI script, you want to be able to read, write, and execute the CGI file yourself. For other users, you want to allow only read and execute operations. When you OR the bitfields (execute=1, write=2, read=4) together for user, group, others, that gives you 755.

For static HTML pages, you need to read and write the files, but others only need to read them. No one needs to execute them. Thus, you use 644.

For directories, you need to set the execute bit if you want to allow users to list the contents of the directory. Remember that users aren’t just interactive users. Programs like HTTP servers execute operations as a user on your files and directories on behalf of people browsing your website.

Normally, you set the permissions for group and others to be the same. If your server has a group of users to which you want to give higher privileges, then you would obviously need to use different values for group and others. You can use chgrp to change the group ownership for a file or directory. Type ls-l in a Unix shell to see the current owner/user and group for a file or directory. Type groups to see what group(s) you are in.

In almost every case, you want to set the privileges to the absolute minimum level that will accomplish your objective. For CGI scripts, that means using 755 instead of 777.

With respect to your original question, 766 makes the most sense to me for a directory. That means you can read, write, and execute (i.e., list the directory contents) and everyone else can read and write. I would go with 766, although I can’t say this from first hand YaBB experience. If a user can’t access a directory, you wouldn’t be getting a 500 error. Some CGI scripts require 766 or 744 for data files that they write.

Hopeful this was helpful and not overly pedantic,


I’m not sure if this was you, or somebody else who submitted this same
thing through tech support, but I just thought I’d let you know the
problem turned out to be just a bad .htaccess file in your forums
directory (it just included a path name, which isn’t valid for a .htaccess

Just for reference, the way to figure out what the problem is
whenever you get a 500 error is to look in your error.log file!
It’s in /home/username/logs/domainname.com/http/error.log and it’ll say
something like “.htaccess: Invalid command” which should help you figure
out the problem! If it just says “premature end of script headers”, then
that means your script isn’t running right, OR you didn’t chmod it (AND
the directory it’s in) to be 755.

And good luck if you’re not the guy I just fixed too! :slight_smile:


I think there was a memo a while back saying that they were discouraging people from using YaBB because it was a huge resource hog, and trying to steer us towards more efficient scripts like phpBB instead. And they were going to disable all YaBB installations after a certain date. Or am I mixing it up with a different bulletin board program?


Business: http://www.spidersilk.net
Personal: http://www.wildideas.net