Posted on: 12/21/03 12:43am
By: Anonymous (Tocotoco)
It is runing for the first time and is looking good ! the "check" utility did a great job. Now to my problem: 1. Can't change passwords ..2..Can't do anything at Adimin. I see a small screen flash by only to land back to the main screen.
Please help. hey!, sorry if the answer to this is somewhere, I tried to find it unsuccesfully, sorry, please see if you can help, it is appreciated.
Thank you,
Toco
Re:No control over Admin / passord
Posted on: 12/21/03 12:58am
By: Anonymous (TocoToco)
Found it! found the answer in this very Forum. Extensive and detailed. Sorry again. Will see if I can manage.
Re:No control over Admin / passord
Posted on: 12/21/03 01:04am
By: Anonymous (Tocotoco)
I worked ! I got in there but, still could not change the password from default settings ...
Re:No control over Admin / passord
Posted on: 12/21/03 01:26am
By: Anonymous (Tocotoco)
This does not apply, I had another PHP program running before...
Make sure you have register_globals=on in your php.ini. And don't forget to restart your webserver when you change that setting.
The default for this setting is off as of PHP 4.2.0, so you may also run into this problem when you upgrade to a more recent version of PHP.
Re:No control over Admin / passord
Posted on: 12/21/03 06:07am
By: Dirk
[QUOTE BY= Tocotoco] This does not apply, I had another PHP program running before...[/QUOTE]
That doesn't mean anything, as that other PHP script may have been written such that it works with register_globals being off.
Please check your register_globals setting instead of assuming things.
bye, Dirk
Re:No control over Admin / passord
Posted on: 12/21/03 09:19am
By: Anonymous (Tocotoco)
Now, it appears that since I managed to login to "admin" with the generic password, I canĀ“t log out. Also, when I start the browser, pointed at http://domain/index.php, I am sent to " http://domain/index.php?msg=8 " which is the admin page.
I am awaiting repply from server owner about php.ini settings. Meanwhile, is there any other file within the program that might be worth looking at for corruption/repair?
Thank you
Toco
Re:No control over Admin / passord
Posted on: 12/21/03 09:36am
By: Dirk
[QUOTE BY= Tocotoco] I am sent to " http://domain/index.php?msg=8 " which is the admin page.[/QUOTE]
That's wrong then. All the admin pages should be in the "admin" directory. The index.php in the root of your domain is the one that displays Geeklog's standard front page, while the index.php in the admin directory is simply a redirect to admin/moderation.php.
Sounds like you mixed the files from the admin and public_html directories. I'd suggest you upload them again.
[QUOTE BY= Tocotoco] I am awaiting repply from server owner about php.ini settings.[/QUOTE]
http://yourdomain/admin/install/info.php should give you an overview of PHP's settings, one of which is register_globals.
To me, it sounds like you tried so many things that your install is now pretty much messed up. You may want to start over from the beginning ...
bye, Dirk
Re:No control over Admin / passord
Posted on: 12/21/03 10:09am
By: Anonymous (Tocotoco)
Thank you for your reply Dirk. It might be so. I wil re-load everything. I will still try and keep away from having both HTTPDOCS and PUBLIC_HTNL . should I do the changes while I have the files on my pc? or should I not do any changes at all?
Toco
Re:No control over Admin / passord
Posted on: 12/21/03 10:39am
By: Anonymous (Tocotoco)
Info.ph has only 1kb, no info. You should know that the first tar folder had 1kb on the config.php file. I will download another tar file folder.
Re:No control over Admin / passord
Posted on: 12/21/03 11:00am
By: Dirk
[QUOTE BY= Tocotoco] Info.ph has only 1kb, no info.[/QUOTE]
That's correct. It's a tiny PHP script (a one-liner, actually) which, when executed, will display all the information about the PHP settings on your webserver.
bye, Dirk
Re:No control over Admin / passord
Posted on: 12/21/03 11:48am
By: Anonymous (Tocotoco)
Thank you on the *.php question. One final request: I am now past the success screen, into the home screen and when tryed to log in to admin I got the "line 90 on the config.php file error" thsi tells me that the ADMIN pointer is wrong and I have
$_CONF['site_admin_url'] = '/home/httpd/vhosts/domain.com/httpdocs/admin';
which is the right path, perhaps I should go URL like
http://domain.com/admin
please anyone help me on this..
Re:No control over Admin / passord
Posted on: 12/21/03 12:17pm
By: Dirk
Yes, 'site_admin_url' should be a URL, not a path (obviously, all variables ending in "_path" should be paths and variables ending in "_url" should be URLs).
The default setting for that variable is
$_CONF['site_admin_url'] = $_CONF['site_url'] . '/admin';
and in most cases, it should work just fine if you leave it at that.
bye, Dirk
Re:No control over Admin / passord
Posted on: 12/21/03 12:27pm
By: Anonymous (Tocotoco)
even tho my path is
/home/httpd/vhosts/domain.com/httpdocs/admin
when I use your defaul, I get:
Parse error: parse error in /home/httpd/vhosts/homeya.com/httpdocs/config.php on line 90
Warning: main(classes/timer.class.php): failed to open stream: No such file or directory in /home/httpd/vhosts/homeya.com/httpdocs/lib-common.php on line 105
Fatal error: main(): Failed opening required 'classes/timer.class.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/homeya.com/httpdocs/lib-common.php on line 105
Can any one tell me how to do this URL as per above true path, properly please. (sorry, basic question, I know)
Re:No control over Admin / passord
Posted on: 12/21/03 12:58pm
By: Dirk
When you get a parse error it means that there is a syntax error somewhere (in your case: in the config.php). It has nothing to do with whether your paths are wrong or right.
Line 90 in the original config.php is the one just after the $_CONF['site_admin_url'], so chances are you forgot a single quote or a semicolon there.
Can any one tell me how to do this URL as per above true path, properly please.
Okay, let's try it another way: When you drop a simple HTML file, say "hello.html", into your httpdocs directory, then you can call it up by entering "http://yourdomain/hello.html" in your browser, right? If so, then you should have Geeklog's index.php, lib-common.php, etc., as well as the admin directory inside your httpdocs. Then http://yourdomain/admin/moderation.php would be the correct URL to the Admin's moderation page. Which means that the default setting for $_CONF['site_admin_url'], which I already quoted above, would be the correct choice for your site.
Also, I just realised you seem to have the config.php inside the httpdocs directory. It shouldn't be there, as that means it's accessible from a URL - and you really don't want that.
config.php, the system directory, and everything else that was
not in Geeklog's public_html should be outside of your httpdocs directory, i.e. in /home/httpd/vhosts/domain.com
Or, to put it another way: Imagine that "public_html" was really named "httpdocs". So everything that's inside "public_html" should go inside your httpdocs directory (keeping all the folders), and what's outside of public_html should also be outside of httpdocs on your server.
Hope that helps (and yes, I know: "By making something absolutely clear, somebody will be confused" ...).
bye, Dirk
Re:No control over Admin / passord
Posted on: 12/21/03 01:50pm
By: Anonymous (Tocotoco)
Dirk: thank you for the security advise. My question is this: By me mreging the public_html files into httpdocs , do I create any broken connections inside the program?. I just could not find the proper string to point to the ADMIN URL in the config.php file, and that is extrange. Your defaul did not work also string on the config.php file. As I preapare to upload the files again, I can't help but wonder why you made a separate directory for the public files and not just a separate directory for the private ones, is it because most people would have public_html instead of httpdocs?. All I want, is to avoid redundancy by having two public directories...Don't try to level down with me, I am new and I respect you for what you know about this great program. Should I not get it to work like this, I am going to try again using your default tree, with public_html included.
Re:No control over Admin / passord
Posted on: 12/21/03 02:44pm
By: Anonymous (Tocotoco)
OK now I am up and running but up until the login problem. First I get the proper start up page ander http://doamin.com including the info about the default password... then I log into Admin using it ... I get in, but when I tray to change anything I can't. So I looked at info.php and shows a path to php.ini I don't have access to. Until I get the reply by the server owner, I guess I am done. Unless I am missing something inside the admin screen, how do you change the password? Or would it have to do with settings somewhere?
Re:No control over Admin / passord
Posted on: 12/21/03 02:58pm
By: Dirk
You can change your password from the "Account Information" page, as linked from the "User Functions" block.
And did you check the settings for register_globals on the info.php output? It's somewhere in that long list.
bye, Dirk
Re:No control over Admin / passord
Posted on: 12/21/03 03:10pm
By: Anonymous (Tocotoco)
Dirk
I must say that the process has been painful, but nontheless very useful as a learning curve, I am now sure I will install Geeklog on my other domain as well. I got the server people to change the settings, not without momblings, here is what he said by ICQ
not by default (=on settings on php.ini )
Register Globals is a bad way to program and they all know that but some scripts still insist on using it even thought the entire php comunity has said DONT USE register_globals=on
So servers and accounts dont come set to on mode
Since I am sure this is in people's minds by now, I thougt I give to the chance to respond
Re:No control over Admin / passord
Posted on: 12/21/03 03:23pm
By: Anonymous (Tocotoco)
Dirk
1. Settings have been changed on php.ini to "on"
2. On hhttp://domain.com I get the proper initial screen. I log into Admin account fine but, if I click on account information, I get to stay in the same screen.
Please tell me how to trouble dhoot this one.
Re:No control over Admin / passord
Posted on: 12/21/03 03:23pm
By: Anonymous (Tocotoco)
Dirk
1. Settings have been changed on php.ini to "on"
2. On hhttp://domain.com I get the proper initial screen. I log into Admin account fine but, if I click on account information, I get to stay in the same screen.
Please tell me how to trouble dhoot this one.
Re:No control over Admin / passord
Posted on: 12/21/03 03:58pm
By: Dirk
[QUOTE BY= Tocotoco] Register Globals is a bad way to program and they all know that but some scripts still insist on using it even thought the entire php comunity has said DONT USE register_globals=on[/QUOTE]
This is covered both
in the FAQ[*1] and on our
Security Page[*2] .
[QUOTE BY= Tocotoco] I log into Admin account fine but, if I click on account information, I get to stay in the same screen.[/QUOTE]
Looks like register_globals is still off. For the Account Information, Geeklog will take you to "usersettings.php?mode=edit". If register_globals is off, the "mode=edit" bit will not be passed and Geeklog will take you back to the index page.
As I've said before, you can check the current status of register_globals on the info.php output.
bye, Dirk
Re:No control over Admin / passord
Posted on: 12/21/03 04:23pm
By: Anonymous (Tocotoco)
Php.ini was set "on" on global. it was even set with safe mode "off" as well and does not work. Any files I could re-load with the same installation and where? also, do we need safe mode on or off on php.ini?mine is set off for now as well
Re:No control over Admin / passord
Posted on: 12/21/03 04:41pm
By: Dirk
The Safe Mode setting doesn't matter - Geeklog should work with it being on or off. Also, the problem you described doesn't seem to have anything to do with safe mode settings.
FWIW, I can log into your site just fine (using the Moderator account) and even get to the Account Information page without a problem.
bye, Dirk
Re:No control over Admin / passord
Posted on: 12/21/03 06:08pm
By: Anonymous (Tocotoco)
Up and running !! I turned off the computer and unloaded history, cookies, shut off firewall (no need to do this) and BINGO!! as you said there it was. Thank you kindly. I am off in ahurry to turn this into spanish now, but, that is another chapter.
bye and merry chrismas!
Re:No control over Admin / passord
Posted on: 12/23/03 03:08pm
By: Anonymous (vegeta9870)
Dirk, my server has register_globals on, but on GL install it says its not on, and that it needs to be on. Then the install works fine. Is that going to be a problem?
Re:No control over Admin / passord
Posted on: 12/28/03 02:17pm
By: Dirk
[QUOTE BY= vegeta9870] my server has register_globals on, but on GL install it says its not on, and that it needs to be on. Then the install works fine. Is that going to be a problem?[/QUOTE]
To my knowledge, the install script has always been right when it says that register_globals is not on, so you better double-check.
The install script itself will work with register_globals being on or off, but Geeklog requires it to be on. So, yes, that will be a problem ...
bye, Dirk