Jump to content
  • 0

Exception Details Error: Flux_PermissionError for FLuxCP


Question

Posted (edited)
Critical Error
An error was encountered during the lifetime of the application.

This could be due to a variety of problems, such as a bug in the application.

However, normally it is caused by misconfiguration.

Exception Details
Error: Flux_PermissionError

Message: The log storage directory '/var/www/html/FluxCP/data/logs' is not writable. Remedy with `chmod 0600 /var/www/html/FluxCP/data/logs`

File: /var/www/html/FluxCP/index.php:123

 

Good day, I cannot get past this error. I have given full permissions to these directories; 0707,0777,0600.
"Remedy with `chmod 0600 /var/www/html/FluxCP/data/logs`" does not work.

running on Mariadb, centos7, fluxcp 

Edited by Rivers

12 answers to this question

Recommended Posts

  • 0
Posted (edited)
1 hour ago, Rivers said:

I re-ran the commands without CP in it, they went through successfully but it still changed nothing.

Any particular errors? 

Maybe give this a try:

Disable SELinux:

nano /etc/sysconfig/selinux

SELinux=enforcing
to
SELinux=disabled

After the changes Reboot your VPS.

Note: Make sure your phpMyAdmin user host is pointing to '%' instead of 'localhost'
 

Edited by Royr
  • Upvote 1
  • 0
Posted (edited)
total 48K
drwxrwxrwx. 11 apache root  262 Dec  9 23:21 .
drwxrwxrwx.  4 apache root   33 Dec  9 23:21 ..
drwxrwxrwx.  3 apache root   24 Dec  9 19:18 addons
drwxrwxrwx.  2 apache root 4.0K Dec  9 19:18 config
drwxrwxrwx. 15 apache root  203 Dec 10 01:44 data
drwxrwxrwx.  2 apache root   47 Dec  9 19:18 doc
-rwxrwxrwx.  1 apache root  337 Dec  9 19:18 .editorconfig
-rwxrwxrwx.  1 apache root 2.6K Dec  9 19:18 error.php
-rwxrwxrwx.  1 apache root 1.2K Dec  9 19:18 favicon.ico
drwxrwxrwx.  8 apache root  163 Dec  9 19:18 .git
-rwxrwxrwx.  1 apache root  300 Dec  9 19:18 .gitignore
-rwxrwxrwx.  1 apache root  177 Dec  9 19:18 .htaccess
-rwxrwxrwx.  1 apache root 6.8K Dec  9 19:18 index.php
drwxrwxrwx.  2 apache root   74 Dec  9 19:18 lang
drwxrwxrwx.  5 apache root   86 Dec  9 19:18 lib
-rwxrwxrwx.  1 apache root 7.5K Dec  9 19:18 LICENSE
drwxrwxrwx. 35 apache root 4.0K Dec  9 19:18 modules
-rwxrwxrwx.  1 apache root 2.4K Dec  9 19:18 README.md
drwxrwxrwx.  5 apache root   55 Dec  9 23:23 themes

Thanks for your fast reply.

Edited by Rivers
  • 0
Posted

Well.. CentOS and Suexec are a pain the ass, so I'd first check to see if changing the directory owner works:

chown -R apache:apache /var/www/html/FluxCP

 

  • 0
Posted (edited)
22 hours ago, Rivers said:

What if I don't have a SuExec?

1234.png


Please try to execute this.

chmod -R 777 /var/www/html/FluxCP/data/logs
chown -R apache:apache /var/www/html/FluxCP/data/logs

chmod -R 777 /var/www/html/FluxCP/data/itemshop
chown -R apache:apache /var/www/html/FluxCP/data/itemshop

chmod -R 777 /var/www/html/FluxCP/data/tmp
chown -R apache:apache /var/www/html/FluxCP/data/tmp

 

Edited by Royr
Apologize for typo 'removed' the "cp"
  • 0
Posted
[root@VanaheimRO-Centos-7 ~]# chmod -R 777 /var/www/html/FluxCP/data/logs
[root@VanaheimRO-Centos-7 ~]# chown -R apache:apache /var/www/html/FluxCP/cp/data/logs
chown: cannot access ‘/var/www/html/FluxCP/cp/data/logs’: No such file or directory
[root@VanaheimRO-Centos-7 ~]#
[root@VanaheimRO-Centos-7 ~]# chmod -R 777 /var/www/html/FluxCP/cp/data/itemshop
chmod: cannot access ‘/var/www/html/FluxCP/cp/data/itemshop’: No such file or directory
[root@VanaheimRO-Centos-7 ~]# chown -R apache:apache /var/www/html/FluxCP/cp/data/itemshop
chown: cannot access ‘/var/www/html/FluxCP/cp/data/itemshop’: No such file or directory
[root@VanaheimRO-Centos-7 ~]#
[root@VanaheimRO-Centos-7 ~]# chmod -R 777 /var/www/html/FluxCP/cp/data/tmp
chmod: cannot access ‘/var/www/html/FluxCP/cp/data/tmp’: No such file or directory
[root@VanaheimRO-Centos-7 ~]# chown -R apache:apache /var/www/html/FluxCP/data/tmp

This was the results of that.

  • 0
Posted
8 hours ago, Rivers said:

[root@VanaheimRO-Centos-7 ~]# chmod -R 777 /var/www/html/FluxCP/data/logs
[root@VanaheimRO-Centos-7 ~]# chown -R apache:apache /var/www/html/FluxCP/cp/data/logs
chown: cannot access ‘/var/www/html/FluxCP/cp/data/logs’: No such file or directory
[root@VanaheimRO-Centos-7 ~]#
[root@VanaheimRO-Centos-7 ~]# chmod -R 777 /var/www/html/FluxCP/cp/data/itemshop
chmod: cannot access ‘/var/www/html/FluxCP/cp/data/itemshop’: No such file or directory
[root@VanaheimRO-Centos-7 ~]# chown -R apache:apache /var/www/html/FluxCP/cp/data/itemshop
chown: cannot access ‘/var/www/html/FluxCP/cp/data/itemshop’: No such file or directory
[root@VanaheimRO-Centos-7 ~]#
[root@VanaheimRO-Centos-7 ~]# chmod -R 777 /var/www/html/FluxCP/cp/data/tmp
chmod: cannot access ‘/var/www/html/FluxCP/cp/data/tmp’: No such file or directory
[root@VanaheimRO-Centos-7 ~]# chown -R apache:apache /var/www/html/FluxCP/data/tmp

This was the results of that.

It means remove cp/ from the filepath. Essentially this has already been covered earlier, the only difference is adding world-writable and world-readable, which FluxCP doesn't ask you to do because it's insecure.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...