Jump to content
  • 0

Flux CP Error


Seyren

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

Hi There, Can someone help me about this error. I'm hosting it through a VPS.. Thanks in advance!

Warning: fopen(data/tmp/ConfigServers.cache.php): failed to open stream: Permission denied in /usr/html/home/lib/Flux.php on line 275 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/home/lib/Flux.php on line 276 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/home/lib/Flux.php on line 277 Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/html/home/lib/Flux.php on line 278

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 '/usr/html/home/data/logs' is not writable. Remedy with `chmod 0600 /usr/html/home/data/logs`

File: /usr/html/home/index.php:119

Edited by Seyren
Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

type on your terminal

chmod 0600 /usr/html/home/data/logs

if it doesn't work change 0600 to 0707

then another error will pop now.. just copy the Remey and enter on your teminal.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

When fopen fails it returns an boolean false value, it's what causing the 4 last errors.

The first is beeing caused due to permissions file, your php probably don't have required permissions(read and write) to that file, try changing permissions of all files to 666, or make your php group as root of the files and change it to 644.

chown -c -R user /path

sample: chown -c -R user /var/www

It'll change the owner of path and sub path and files.

chmod -R permission /path

sample:

chmod -R 644 /var/www

I think it can be done this way too:

chmod 644 /var/www/*

It'll change permissions, to give read and write to owner of path and sub directory and files.

Edited by MarkZD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

When fopen fails it returns an boolean false value, it's what causing the 4 last errors.

The first is beeing caused due to permissions file, your php probably don't have required permissions(read and write) to that file, try changing permissions of all files to 666, or make your php group as root of the files and change it to 644.

chown -c -R user /path

sample: chown -c -R user /var/www

It'll change the owner of path and sub path and files.

chmod -R permission /path

sample:

chmod -R 644 /var/www

I think it can be done this way too:

chmod 644 /var/www/*

It'll change permissions, to give read and write to owner of path and sub directory and files.

i tried yours and i'm having 403 Forbidden :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

Try chmod 744 or 755, in the last case 777, one time I saw apache requiring execute permissions, I don't know why.

And, what I said was just a sample, did you used your correct user for php and what about directory?

/etc/passwd will show the users

/etc/group will show the groups

If I'm not wrong php don't have a user but a group so change your files to your main user"should be root" and change group to php group, check it first.

chgrp grouname -R /var/www

It'll change the group, so you change the permissions with chmod.

Edited by MarkZD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

got it fixed.. now it's my new problem =(

W1R14.jpg?1

Warning: fopen(data/tmp/ConfigServers.cache.php): failed to open stream: Permission denied in /usr/html/home/lib/Flux.php on line 275 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/home/lib/Flux.php on line 276 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/home/lib/Flux.php on line 277 Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/html/home/lib/Flux.php on line 278 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSD/4.0/DST' instead in /usr/html/home/lib/Flux/Connection/Statement.php on line 14 Warning: touch(): Unable to create file data/logs/mysql/errors/20120404.log.php because Permission denied in /usr/html/home/lib/Flux/LogFile.php on line 43 Warning: chmod(): No such file or directory in /usr/html/home/lib/Flux/LogFile.php on line 44 Warning: fopen(data/logs/mysql/errors/20120404.log.php): failed to open stream: Permission denied in /usr/html/home/lib/Flux/LogFile.php on line 47 Warning: fputs() expects parameter 1 to be resource, boolean given in /usr/html/home/lib/Flux/LogFile.php on line 49
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

There's some new timezone warning, but it just has nothing to see with the permissions, the problem is still the same.

Did you change your permissions from your "/usr/html/home/" directory the way I mentioned above?

Double check your permissions and directory, it's /usr/html/home/ as it's showed in the error, what I told before was just a sample.

Edited by MarkZD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

nope i didn't! can you please tell me how to do that again?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

Try first:

chmod 644 -R /usr/html/home

if 644 doesn't work, try 744, 764, 774.

If it doesn't work look in:

/etc/group and look for some group that looks like www or php something, www somethig is usually the one.

So use the command:

chgrp GroupName -R /usr/html/home

Edited by MarkZD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

it gives me 403 forbidden :P

Try first:

chmod 644 -R /usr/html/home

if 644 doesn't work, try 744, 764, 774.

there are no files inside /etc/group

So use the command:

chgrp GroupName -R /usr/html/home

I typed chrgrp www -R /usr/html/home

this is the error again

Warning: require_once(config/levels.php): failed to open stream: Permission denied in /usr/html/home/index.php on line 43 Fatal error: require_once(): Failed opening required 'config/levels.php' (include_path='lib:.:/usr/lib/php') in /usr/html/home/index.php on line 43
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

Try reverting as you did before, what permissions it was?

Did you try what the error message and ngk202 said?

chmod 0600 /usr/html/home/data/logs

If you don't know reverting again, deleting the entire flux directory and placing it again should do, I'm going to university now, keep trying.

Edited by MarkZD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

what should i do? it doesn't load anymore :P yeah i did that!

the only thing showing now is 403 forbidden.

okay :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

chmod 777 -R /usr/html/home

Hope it ends your forbidden problem if it doesn't so your server must have some special condition for security purpose as I already saw that only work with safe permissions, but 644 should be a safe one.

Or

Look the permission of your /usr/html path ls -l /usr/ or via a ftp file.

and put the same in /usr/html/home path, if you don't know how to, check it copy the ls -l response here so when I arrives I'll take a look.

Edited by MarkZD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

last problem is

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSD/4.0/DST' instead in /usr/html/home/lib/Flux/Connection/Statement.php on line 14

My last problem is a messed up Flux CP :P

W1R14.jpg?1

This is my new problem =(

Warning: touch(): Unable to create file data/logs/mysql/errors/20120405.log.php because Permission denied in /usr/html/cp/lib/Flux/LogFile.php on line 43 Warning: chmod(): No such file or directory in /usr/html/cp/lib/Flux/LogFile.php on line 44 Warning: fopen(data/logs/mysql/errors/20120405.log.php): failed to open stream: Permission denied in /usr/html/cp/lib/Flux/LogFile.php on line 47 Warning: fputs() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux/LogFile.php on line 49
Edited by Seyren
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

hi, give/set a write permission in your data/logs/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

how to do that Sir Jaypee? I'm newbie on this.

Tnx Sir Jaypee... i typed chmod 0707 -R and it works!

Edited by Seyren
Link to comment
Share on other sites

×
×
  • Create New...