I have some problem with the installation of magento.
This is the config:
Dedicated Server,
CentOS Linux release 7.3.1611 (Core),
Apache,
Mysql,
Magento CE 2.1.6
I have a user named web
and the web service user is named apache
:
$ id web
uid=1000(web) gid=48(apache) groups=48(apache)
$ id apache
uid=48(apache) gid=48(apache) groups=48(apache)
I had a permission problem which I will talk about here, so I have givenchmod -R 777 for all files and directories inside my Magento dir.
Also, I have done chown -R web:apache for all files and dirs inside my Magento dir.
Now permissions are as follows:
drwxrwxrwx. 4 web apache 4096 Apr 22 00:03 app
drwxrwxrwx. 2 web apache 36 Apr 22 00:03 bin
-rwxrwxrwx. 1 web apache 435065 Mar 28 23:07 CHANGELOG.md
-rwxrwxrwx. 1 web apache 1843 Mar 28 23:05 composer.json
-rwxrwxrwx. 1 web apache 344410 Mar 28 23:07 composer.lock
-rwxrwxrwx. 1 web apache 3381 Mar 28 23:07 CONTRIBUTING.md
-rwxrwxrwx. 1 web apache 631 Mar 28 23:07 COPYING.txt
drwxrwxrwx. 5 web apache 59 Apr 22 00:03 dev
-rwxrwxrwx. 1 web apache 2864 Mar 28 23:07 Gruntfile.js.sample
-rwxrwxrwx. 1 web apache 1368 Mar 28 23:07 index.php
-rwxrwxrwx. 1 web apache 315 Mar 28 23:07 ISSUE_TEMPLATE.md
drwxrwxrwx. 4 web apache 47 Apr 22 00:03 lib
-rwxrwxrwx. 1 web apache 10376 Mar 28 23:07 LICENSE_AFL.txt
-rwxrwxrwx. 1 web apache 10364 Mar 28 23:07 LICENSE.txt
-rwxrwxrwx. 1 web apache 5071 Mar 28 23:07 nginx.conf.sample
-rwxrwxrwx. 1 web apache 1427 Mar 28 23:07 package.json.sample
-rwxrwxrwx. 1 web apache 814 Mar 28 23:07 php.ini.sample
drwxrwxrwx. 2 web apache 55 Apr 22 00:03 phpserver
drwxrwxrwx. 6 web apache 4096 Apr 22 00:03 pub
drwxrwxrwx. 7 web apache 4096 Apr 22 00:03 setup
drwxrwxrwx. 7 web apache 4096 Apr 22 00:03 update
drwxrwxrwx. 6 web apache 88 Apr 22 19:02 var
drwxrwxrwx. 29 web apache 4096 Apr 22 00:03 vendor
Still I get File Permission Check Error on installation:
File Permission Check
4 file permission not met. Hide detail
The best way to resolve this is to allow write permissions for files in the following Magento directories and subdirectories. The exact fix depends on your server, your host, and other system variables.
For help, see our File Permission Help or call your hosting provider.
"/var/www/html/zibajooyan/app/etc" - Not writable, change the permissions. Show details
"/var/www/html/zibajooyan/var" - Not writable, change the permissions. Show details
"/var/www/html/zibajooyan/pub/media" - Not writable, change the permissions. Show details
"/var/www/html/zibajooyan/pub/static" - Not writable, change the permissions