Downloading file, please wait...
Unable to read or write to the /var/www/html/mailscanner/temp/ directory.
Permission related issues
Permission related issues
What are the proper permissions for the below. Getting this when running Update GeoIP Database. I have the owner as php-fpm and rw-r--r-x/0645 on "GeoLite2-Country.mmdb". The temp folder is root 0775.
Re: Permission related issues
This is from EFA 3
$ ls -la /var/www/html/mailscanner/temp/
total 3268
drwxrwxr-x 2 root apache 4096 Nov 22 2017 .
drwxr-xr-x 6 root root 4096 Feb 1 2018 ..
-rw-r--r-- 1 apache apache 1176796 Nov 22 2017 GeoIP.dat
-rw-r--r-- 1 apache apache 2151677 Nov 22 2017 GeoIPv6.dat
-rw-r--r-- 1 root root 84 Sep 14 2017 .gitignore
-rw-r--r-- 1 root root 0 Sep 14 2017 index.html
So looks like root:apache 775 chmodded
$ ls -la /var/www/html/mailscanner/temp/
total 3268
drwxrwxr-x 2 root apache 4096 Nov 22 2017 .
drwxr-xr-x 6 root root 4096 Feb 1 2018 ..
-rw-r--r-- 1 apache apache 1176796 Nov 22 2017 GeoIP.dat
-rw-r--r-- 1 apache apache 2151677 Nov 22 2017 GeoIPv6.dat
-rw-r--r-- 1 root root 84 Sep 14 2017 .gitignore
-rw-r--r-- 1 root root 0 Sep 14 2017 index.html
So looks like root:apache 775 chmodded
Re: Permission related issues
No go, same error.
ls -la /var/www/html/mailscanner/temp/
total 3584
drwxrwxr-x. 2 root apache 53 Feb 10 13:54 .
drwxr-xr-x. 7 root root 8192 Feb 10 10:32 ..
-rwxrwxr-x. 1 apache apache 3656998 Feb 9 21:52 GeoLite2-Country.mmdb
-rwxrwxr-x. 1 root root 0 Dec 30 16:38 index.html
ls -la /var/www/html/mailscanner/temp/
total 3584
drwxrwxr-x. 2 root apache 53 Feb 10 13:54 .
drwxr-xr-x. 7 root root 8192 Feb 10 10:32 ..
-rwxrwxr-x. 1 apache apache 3656998 Feb 9 21:52 GeoLite2-Country.mmdb
-rwxrwxr-x. 1 root root 0 Dec 30 16:38 index.html
- shawniverson
- Posts: 3650
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Permission related issues
Change the ownership to php-fpm on the temp folder and contents.
Code: Select all
sudo chown root:php-fpm /var/www/html/mailscanner/temp
sudo chown php-fpm:php-fpm /var/www/html/mailscanner/temp/GeoLite2-Country.mmdb
Re: Permission related issues
Yes thats the good stuff!shawniverson wrote: ↑10 Feb 2019 21:58 Change the ownership to php-fpm on the temp folder and contents.
Code: Select all
sudo chown root:php-fpm /var/www/html/mailscanner/temp sudo chown php-fpm:php-fpm /var/www/html/mailscanner/temp/GeoLite2-Country.mmdb
Downloading file, please wait...
GeoIP data file successfully downloaded
Download complete, unpacking files...
GeoIP data file successfully unpacked
Process completed!