Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 05:44 am EST
Geeklog Forums
Logout errors & /logs permissions
dninness
Anonymous
On logging out from my Geeklog installation, I briefly get a screen with the following information:
Warning: fopen("/path/to/my/geeklog/logs/access.log", "a") - Permission denied in /path/to/my/geeklog/public_html/lib-common.php on line 1626
Warning: fputs(): supplied arguement is not valid File-Handle resource in /path/to/my/geeklog/public_html/lib-common.php on line 1631
Warning: Cannot add header information - headers already sent by (output started at /path/to/my/geeklog/public_html/lib-common.php: 1626) in /path/to/my/geeklog/public_html/users.php on line 688
Warning: Cannot add header information - headers already sent by (output started at /path/to/my/geeklog/public_html/lib-common.php: 1626) in /path/to/my/geeklog/public_html/users.php on line 690
(Note: I had to re-type these by hand, since the screen flashed by so quick all I could do was snag a screen capture..)
Also, apparantly my host (1&1) doesn't allow me to change the permissions on my /logs directory, so Geeklog can't write its logs there (a problem noted in /admin/install/check.php, too).
I'm guessing, straight off the top of my head, that at least part of the errors at the top of the page are due to the logs file...
Any ideas?
NIN
Warning: fopen("/path/to/my/geeklog/logs/access.log", "a") - Permission denied in /path/to/my/geeklog/public_html/lib-common.php on line 1626
Warning: fputs(): supplied arguement is not valid File-Handle resource in /path/to/my/geeklog/public_html/lib-common.php on line 1631
Warning: Cannot add header information - headers already sent by (output started at /path/to/my/geeklog/public_html/lib-common.php: 1626) in /path/to/my/geeklog/public_html/users.php on line 688
Warning: Cannot add header information - headers already sent by (output started at /path/to/my/geeklog/public_html/lib-common.php: 1626) in /path/to/my/geeklog/public_html/users.php on line 690
(Note: I had to re-type these by hand, since the screen flashed by so quick all I could do was snag a screen capture..)
Also, apparantly my host (1&1) doesn't allow me to change the permissions on my /logs directory, so Geeklog can't write its logs there (a problem noted in /admin/install/check.php, too).
I'm guessing, straight off the top of my head, that at least part of the errors at the top of the page are due to the logs file...
Any ideas?
NIN
8
7
Quote
SammyJ
Anonymous
I get the same error, whats worse is it doen't actually log me out. It says "You have been succesfully logged out". But it is clear that I haven't. Looking forward to suggestions,
Sam
Sam
5
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by dninness: Also, apparantly my host (1&1) doesn't allow me to change the permissions on my /logs directory, so Geeklog can't write its logs there (a problem noted in /admin/install/check.php, too).
I have to doubt that. Webspace where you can't change the permissions on files / directories is pretty much worthless.
Make sure that you have changed the permissions on the logs directory and both the files in that directory. Try 775 first and if that doesn't help, try 777. All this has been discussed here ad nauseam ...
And, yes, these warnings will cause problems when login in or out.
bye, Dirk
5
5
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
I also use 1and1 hosting and you most definitely can change the permissions on your directories and files. You can do it with either FTP or with SSH. How to do both can be found in the install directions for Geeklog.
-Vinny
-Vinny
3
7
Quote
dninness
Anonymous
Quote by Dirk: I have to doubt that. Webspace where you can't change the permissions on files / directories is pretty much worthless.
Make sure that you have changed the permissions on the logs directory and both the files in that directory. Try 775 first and if that doesn't help, try 777. All this has been discussed here ad nauseam ...
And, yes, these warnings will cause problems when login in or out.
Make sure that you have changed the permissions on the logs directory and both the files in that directory. Try 775 first and if that doesn't help, try 777. All this has been discussed here ad nauseam ...
And, yes, these warnings will cause problems when login in or out.
I will so stipulate that webspace where you can't change directory permissions is worthless. Since this is one of those free 1&1 accounts (500mb, no banners, free for three years, SSH, FTP, email, etc), you've hit the nail on the head: its worth nothing to me, as its not costing me a dime for fairly high-quality hosting. If this /logs thing is the only problem, well, I can deal with that.
I can change directory permissions on every other directory in my webspace all day long. Those generally are not problems.
CHMODing the /logs directory, however, merely reverts the permissions back to 705. Grrrr. I tried to take ownership of the directory, too, and that failed as well. The /logs folder is owned by root.
Is there a way to configure geeklog to write its logs into a different dirctory, say, /public_html/logs?
6
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by dninness: CHMODing the /logs directory, however, merely reverts the permissions back to 705. Grrrr. I tried to take ownership of the directory, too, and that failed as well. The /logs folder is owned by root.
Ah, so this may be a directory created by your hosting service. It probably contains your webserver's logfiles.
Quote by dninness: Is there a way to configure geeklog to write its logs into a different dirctory, say, /public_html/logs?
config.php:
$_CONF['path_log'] = $_CONF['path'] . 'logs/';
bye, Dirk
3
6
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
Again, this is no problem with the free 1and1 account. If you are having problems using chmod, join irc.freenode.net, #geeklog and it'll be easier to get you straightened out.
If you'd prefer help here, tell exactly the chmod command you are using, along with your value for $_CONF['path'].
-Vinny
If you'd prefer help here, tell exactly the chmod command you are using, along with your value for $_CONF['path'].
-Vinny
7
4
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
I apologize. I misunderstood how you had geeklog installed. Can I suggest making a "geeklog" directory and putting all you Geeklog files in there. Or as Dirk suggested you can change the value of $_CONF['path_log'].
-Vinny
-Vinny
5
8
Quote
dninness
Anonymous
Quote by vinny: I apologize. I misunderstood how you had geeklog installed. Can I suggest making a "geeklog" directory and putting all you Geeklog files in there. Or as Dirk suggested you can change the value of $_CONF['path_log'].
-Vinny
-Vinny
Hey, guys, no sweat. Your answers have been excellent so far. (BTW, I'd log onto to IRC, but boy, its been so long.. I might get addicted again..)
If I'd been thinking ahead of the curve a little, I'd have installed geeklog into a higher level directory (ie. like "/geeklog") to allow for this.
As it was, 1&1 points the webspace right to the root of your account, so you really don't have a "public_ html" directory to start with. That caused a boatload of issues, too, but I was able to repoint the URL's destination to the /public_html directory and installed Geeklog as per the install directions. That went fine after I sorted the whole destination issue.
I leery of moving everything yet again, but I suppose I could do that right now with little repercussion (its not like I have content or anything..)
I just moved everything over to /path/to/my/webspace/geeklog and repointed the URL destination to /path/to/my/webspace/geeklog/public_html
Everything else should be relative. Now I gotta wait for the redirect to kick in...
Thanks for the help, guys!
4
3
Quote
dninness
Anonymous
FYI, I moved everything over, and even the /logs directory came over. I changed permissions (root was not the owner on the copy), cleared it out, and everything seems to be working ducky.
Thanks again, guys. You rock!
NIN
Thanks again, guys. You rock!
NIN
5
5
Quote
All times are EST. The time is now 05:44 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content