MyBB Community Forums

Full Version: Installation Issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I'm attempting to install myBB and have run into an issue. I am following [url=http://wiki.mybb.com/index.php/Installing] and have got to the point where I am running the installation wizard. I get the following errors:

Configuration File Writable: Not Writable
Settings File Writable: Not Writable
Cache Directory Writable: Not Writable
File Uploads Directory Writable: Not Writable
Avatar Uploads Directory Writable: Not Writable

I have done exactly what the guide has instructed me to do regarding chmod:

./inc/config.php >> 666
./inc/settings.php >> 666
./cache/ >> 777
./cache/themes/ >> 777
./uploads/ >> 777
./uploads/avatars/ >> 777

I have verified these changes were successfully made:

-rw-rw-rw-. 1 root root 0 May 6 13:06 config.php
-rw-rw-rw-. 1 root root 0 May 6 13:06 settings.php
drwxrwxrwx. 3 root root 4096 May 6 13:06 cache
drwxrwxrwx. 2 root root 4096 May 6 13:06 themes
drwxrwxrwx. 3 root root 4096 May 6 13:07 uploads
drwxrwxrwx. 2 root root 4096 May 6 13:07 avatars

I have changed the owner and groups to root, the user which runs apache, and the user I'm currently logged in as. None of them fixed the errors.

This is a personal server of mine and I have access to whatever I need to fix this. I'm just as a loss as to what to try next. I am fairly new to Linux so I have a feeling it is something I am doing fundamentally wrong somewhere. Any suggestions would be greatly appreciated!

Edit: System Info:

Fedora 16 OS
Apache Server
MySQL database
Change the user/group to apache.

chown -Rv apache:apache /path/to/mybb/

If the webserver is running as apache and the files/directories are owned by root, apache won't be able to read or write to those directories as root has higher permissions.
(2012-05-06, 09:52 PM)Nathan Malcolm Wrote: [ -> ]Change the user/group to apache.

chown -Rv apache:apache /path/to/mybb/

If the webserver is running as apache and the files/directories are owned by root, apache won't be able to read or write to those directories as root has higher permissions.

Thank you for the response. MyBB is in /var/www/html for me. I ran:

chown -Rv apache:apache /var/www/html

This changed the ownership but did not correct the error.

I backed it out one level to:

chown -Rv apache:apache /var/www

This also did not fix the error. I restarted the apache service after both changes.
Are you running SELinux? By default it's switched on. I'm running Fedora 16 as a desktop so I know it can be an issue.

You can either disable it, or run the following command:

chcon -R -t httpd_sys_content_rw_t /var/www/html/
(2012-05-06, 10:03 PM)Nathan Malcolm Wrote: [ -> ]Are you running SELinux? By default it's switched on. I'm running Fedora 16 as a desktop so I know it can be an issue.

You can either disable it, or run the following command:

chcon -R -t httpd_sys_content_rw_t /var/www/html/

I am running SELinux. I'll try your suggestion and let you know. If it makes in difference, which i doubt, I am running the server in a VM with the host as Fedora 16 as well.

(2012-05-06, 10:03 PM)Nathan Malcolm Wrote: [ -> ]Are you running SELinux? By default it's switched on. I'm running Fedora 16 as a desktop so I know it can be an issue.

You can either disable it, or run the following command:

chcon -R -t httpd_sys_content_rw_t /var/www/html/

This worked perfectly. Thank you very much for your help!