Jump to content
  • 0

Exception Details Error: Flux_PermissionError for FLuxCP


Rivers

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

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
Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

Jump into ssh and do:

cd /var/www/html/FluxCP/
ls -alh

Provide full output.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

No change with that.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

Here's one I made earlier ? 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

What if I don't have a SuExec?

1234.png

Edited by Rivers
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

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"
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

[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.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

Thanks that worked great for me. 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...