Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

PHPFusion 9 getting mkdir(): Permission denied error

Asked Modified Viewed 1,283 times
B
bsipple
B
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Hi all,
I can't seem to find how to fix the following error created from the FileCache.php file.
I'm not sure which directory to allow 777 or why this is occurring as I set the permissions according to the installation directions.
This directory or 'path' seems to be needed for more than just upgrading ... (Which I have tried to do)

 /**
34    * FileCache constructor.
35    *
36    * @param array $config
37    */
38    public function __construct($config) {
39    $this->path = $config['path'];
40   
41    if (!is_dir($this->path)) {
42    mkdir($this->path, 0777, TRUE);
 Line 42 -- 23 seconds ago
mkdir(): Permission denied
43    }
44   
45    if (!defined('SECRET_KEY')) {
46    define('SECRET_KEY', md5('temp_cache_key'));
47    }
48    }
49   


OS: Centos 7
PHP Version - PHP 7.4.27
MariaDB Version - 15.1 Distrib 10.3.32-MariaDB

Please let me know if there is anything else you might need to diagnose this issue.

Thanks
Edited by bsipple on 16-12-2021 03:28,
0 replies

8 posts

R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Looks like you have incorrect CHMOD in website root folder. If it's correct it creates cache folder without any problem.
0 replies
B
bsipple
B
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

I had set the /var/www/html directory to drwxrwxrwx (777) but I didn't have the root directory /html/mysite as (777) - so, once I set that, it removed that error. (777) <- seems a little dangerous to me.
Anyway, thank you for helping with that error.

It opened up a new error ..
When I try to upgrade to 9.10.11
I get this in my browser:

Not Found
The requested URL /administration/upgrade.php was not found on this server.

However, when I list the contents of the /html/mysite/administration/ directory - it exists.
Is this another issue with permissions?

$ ls - l administration/
-rw-r--r--. 1 user apache 2554 Dec 15 16:50 upgrade.php


Thanks again for the help
Edited by bsipple on 16-12-2021 16:35,
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Just set recursive CHMOD 777 to everything in website folder. It's common problem on some webhosts.
0 replies
B
bsipple
B
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

That didn't seem to work as I'm still getting the same browser issue.
I did a chmod -R 777 /mysite
All directories are drwxrwxrwx
All files are rwxrwxrwx

SELINUX is disabled as well

What's next to try?

Thanks again
Edited by bsipple on 16-12-2021 17:14,
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Problem is only with chmod, so try different combinations.
0 replies
B
bsipple
B
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

If every file and folder is set to 777, what other permissions could I offer it to allow it to be found?
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

I'm not Linux professional, so I'm not sure. It works well on one Linux distribution and not on another. Also you can check folder permissions in Home>Admin Dashboard>System Admin> Server Info : Folder Permissions

Have you tried 755? https://stackoverflow.com/questions/8...l-contents
0 replies
B
bsipple
B
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Thanks, I did as you said, I went to server info and looked at the permissions.

A screenshot is added below with everything listed

I have tried 755 and 777 - I am at a loss at this point.

I really appreciate everything you've tried to help with.

Thanks - I will still hope there is an answer as I keep doing trial and error.
bsipple attached the following image:
Image not found
0 replies

Category Forum

General Discussion

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
B
B
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet