Another can't login

Please post all install related problems here. Visit this forum first for troubleshooting.
E.A.Murphy
Posts: 81
Joined: Sun 16. Jan 2005, 00:31
Location: Köln
Contact:

Another can't login

Post by E.A.Murphy »

Hi,
I installed phpwcms (it's 1.2.6) now for the third time - all rights set, admin created, all blocks green. But if I try to login I'm just redirected to loginscreen, without any comment.

Code: Select all

// database values
$phpwcms["db_host"]           = "webdb01.netcologne.de";
$phpwcms["db_user"]           = "db60001852_1";
$phpwcms["db_pass"]           = "***";
$phpwcms["db_table"]          = "db60001852_1";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 1;

// site values
$phpwcms["site"]              = "http://www.lfe-wein.de/";
$phpwcms["admin_email"]       = "info@mail.com";

// paths
$phpwcms["DOC_ROOT"]          = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"]         		= "lfe_php";         //default: ""
$phpwcms["file_path"]         = "phpwcms_filestorage";    //default: "phpwcms_filestorage"
$phpwcms["templates"]         = "phpwcms_template";    //default: "phpwcms_template"
$phpwcms["content_path"]      = "content"; //default: "content"
$phpwcms["cimage_path"]       = "images";  //default: "images"
$phpwcms["ftp_path"]          = "phpwcms_ftp";     //default: "phpwcms_ftp"
i did the setup on my server and several localhosts without a problem - but at netcologne ... :cry:
Couldn' find a solution on the forum up to now, so if anone got a sugestion? Thanx in advance
ff123
Posts: 172
Joined: Thu 9. Jun 2005, 20:03
Location: The Netherlands
Contact:

Post by ff123 »

I had a similar problem. Turned out to be a mysql problem.

See post:
http://www.phpwcms.de/forum/viewtopic.php?p=65298#65298
-- Vuurvos --
E.A.Murphy
Posts: 81
Joined: Sun 16. Jan 2005, 00:31
Location: Köln
Contact:

Post by E.A.Murphy »

MySQl is version: 3.23.56 - all tables are created. everything seems to be fine. Well, and I don't really get what's been done at these posts :oops:
ff123
Posts: 172
Joined: Thu 9. Jun 2005, 20:03
Location: The Netherlands
Contact:

Post by ff123 »

Did you read this?
--> http://peperkorn-online.de/installation-v1_2_1.phtml

What was meant in the posts was that you have phpwcms let create your tables and not import it yourself.
Did you do a complete setup of phpwcms on the server, or did you setup it locally and then upload it?
-- Vuurvos --
Pappnase

Post by Pappnase »

E.A.Murphy wrote:MySQl is version: 3.23.56 - all tables are created. everything seems to be fine. Well, and I don't really get what's been done at these posts :oops:
hello

if you ant send me an mail. with ftp access and an admin aaccount to phpwcms and i will take a look!
E.A.Murphy
Posts: 81
Joined: Sun 16. Jan 2005, 00:31
Location: Köln
Contact:

Post by E.A.Murphy »

yes, I read pepperkorns guide; but it's been some time :)
by now I use the guide only for the rwx-rights

and I did the complete install on the server, what was quite complicated because of the unusual folder setup - spend two houres to find the MySQL folder before I remembered to search for it in phpMyAdmin :?

# I let pepperkorn take a look, maybe he finds something #
I ment pappnase
E.A.Murphy
Posts: 81
Joined: Sun 16. Jan 2005, 00:31
Location: Köln
Contact:

Post by E.A.Murphy »

so, a mont later it's confirmed
it's not possible to turn on:

Code: Select all

session.use_trans_sid Off Off
at net-cologne for performance reasons.
so the login-script and others can't be used
BernieFMB
Posts: 7
Joined: Fri 16. Jun 2006, 18:35

Post by BernieFMB »

I too am having the same issue. I had my server change session.use_trans_sid to 1 and still same issue.

I have no side screen that shows someone is logged in. All I get is the same login screen I always get. No errors, no nothing just looks like a page reload.
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

session.use_trans_sid is not really neccessary. For some reasons - why ever - session handling on some systems does not work as expected.

Maybe send me a login to such system and I will have a look. Because the session is opened and database check is successful otherwise an error message must appear. So you are logged in and again logged out.

Please - always try the new 1.2.7 release available here in the forum.

regards
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
E.A.Murphy
Posts: 81
Joined: Sun 16. Jan 2005, 00:31
Location: Köln
Contact:

Post by E.A.Murphy »

just installed "pre 1.2.7" - still the same problem :(
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

What Oliver has said is the unfortunate truth.
Little nagging SERVER issues of MANY kinds can creep in from time to time.

My WILD guess, at your problem, would be that the PHP session data MAY STILL BE WRITING when the script redirects user to backend in "login.php" (meaning that the session may be lost upon redirect). If I remember right... the function definition for header('Location: ...') on php.net mentions something like this.

One way around it might be to TRY a function session_write_close(); before header('Location: ...') gets initiated (as a "trouble-shooting" determination) to ensure preservation of session data, BEFORE the redirect is attempted.

Why not try placing one in "login.php":
mysql_free_result($check);
$_SESSION['PHPWCMS_ROOT'] = PHPWCMS_ROOT;
session_write_close();
header("Location: ".PHPWCMS_URL."phpwcms.php");
exit();
OR replace header('Location: ...') with one of these (substitute the correct URL representation for my "shorthand"):
header("Refresh: 0; URL=\"$url\"");

<meta http-equiv="refresh" content="0;url=<?=$url?>" />

<script type="text/javascript">
window.location.href='<?=$url?>';
</script>
In some environments, it MAY need initiation of a header('Location: ...') -=BEFORE=- setting $_SESSION variables, and then the NEXT header('Location: ...') will PRESERVE the session variables on redirect. Slight variations of procedure may need experimentation! NO FUN

Some other trouble-shooting techniques might involve trying other methods of geting from login.php to phpwcms.php. That might be something like removing the redirect, staying on the current page and writing in a "clickable" link that would take you there.

Also make sure of little things like making sure you have a "fully-qualified" path in "conf.inc.php":
// site values
$phpwcms["site"] = "http://www.mydomain.de/";
Some OTHER typical issues with session:

-Insufficient free space in the server's session file for the user.
-Various settings in httpd.conf, php.ini, .htaccess files can affect sessions differently when PHP is enabled as ISAPI module, instead of CGI.
-PHP enabled as CGI treats some header directives differently.
-Servers using load balancing may write session data in /tmp dir of A, but when a new page is requested it is being served from B.
-ISP/Webhost issues with server caching proxy/webcache "schemes".
-Browser settings/plugins/addons (also unrecognized user_agent string) and/or local "security" applications (virus/firewall).

Good luck!! If you find out anything, it would be great to get your feedback. :wink:
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Yes sometimes it is horrible.

I have written some litte session check files. These are very simple and also using session_write_close(). Try it and see if session vars are lost by reloading or hopping to the next script.
http://www.phpwcms.org/support/session_check.zip

You can see it here:
http://www.phpwcms.net/session/simple_session.php
http://www.phpwcms.net/session/session.php


On all of my servers and systems it is working very well - but for the E.A.Murphy's system still not...

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
BernieFMB
Posts: 7
Joined: Fri 16. Jun 2006, 18:35

Post by BernieFMB »

Yes those scripts will not work on my server. Any idea what is causing it? The server is linux running php5.

I need something to tell my hosting company.

Thanks guys,
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Send them the scripts or link to the scripts on your system.

Any other php script that works using sessions on your system?

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
BernieFMB
Posts: 7
Joined: Fri 16. Jun 2006, 18:35

Post by BernieFMB »

I am running phpbb on it and some other game-specific things like phpraid, wowroster and eqdkp.

Thanks,
Post Reply