Solved: 6 Years, 1 Month, 4 Weeks ago Permissions problems on installation, despite following instructions
#1
Solved: 6 Years, 1 Month, 4 Weeks ago
I get the following during installation:
=====
Requirements Check
Before you can install MyBB, we must check that you meet the minimum requirements for installation.
Requirements Check
RequirementsPHP Version:
5.4.16
Supported DB Extensions:
MySQL Improved, MySQL, SQLite 3
Supported Translation Extensions:
Multi-Byte, iconv
PHP XML Extensions:
Installed
Configuration File Writable:
Not Writable
Settings File Writable:
Writable
Cache Directory Writable:
Not Writable
File Uploads Directory Writable:
Writable
Avatar Uploads Directory Writable:
Writable

Error
The MyBB Requirements check failed due to the reasons below. MyBB installation cannot continue because you did not meet the MyBB requirements. Please correct the errors below and try again:
  • The configuration file (inc/config.php) is not writable. Please adjust the chmodpermissions to allow it to be written to.
  • The cache directory (cache/) is not writable. Please adjust the chmod permissions to allow it to be written to.
=====
I am running apache under CentOS 7
Here are the permissions:

-rw-rw-rw-. 1 apache apache 0 Oct 16  2012 inc/config.php
drwxrwxrwx. 3 apache apache 36 Sep  7  2015 cache

Not sure what to try next.
Reply
#2
Solved: 6 Years, 1 Month, 4 Weeks ago
can you recheck the file permissions through file manager / ftp client ..
Reply
#3
Solved: 6 Years, 1 Month, 4 Weeks ago
(2016-03-18, 10:08 AM).m. Wrote: can you recheck the file permissions through file manager / ftp client ..

I am not accessing through ftp, but rather directly from ssh session.
Reply
#4
Solved: 6 Years, 1 Month, 4 Weeks ago
I finally found how to fix this.

The problem was that I needed to modify the selinux configuration appropriately. For others encountering the same problem: if selinux is enforced, you need to do (single line command)


chcon -t httpd_sys_rw_content_t cache cache/themes uploads uploads/avatars admin/backups inc/config.php inc/settings.php inc/languages/english/*.php inc/languages/english/admin/*.php
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)