Page 1 of 3

Login problem

Posted: Thu 7. Feb 2008, 21:08
by xinoy
Hi,

i have a problem with one of my websites.

Login allways worked tilll..

The hostingcompany updated their mysql from 4 till 5. When i want to login in the backend of the website i don't get an error, i only get back the login screen again.

No forward from login.php to phpwcms.php but just login.php comes back.

Someone got a clue?

usernamd and password are oke, cause when i use different usernames of passwords i will get an error" bad logindata or something.

Thx already !

Re: Login problem

Posted: Thu 7. Feb 2008, 22:45
by DeXXus
What version of phpWCMS?
Can you update your setting for "conf.inc.php"?

Code: Select all

$phpwcms['db_version']        = 50041; // <-Set to YOUR version

Re: Login problem

Posted: Fri 8. Feb 2008, 00:00
by xinoy
i did, didn't help :(

Re: Login problem

Posted: Fri 8. Feb 2008, 01:18
by DeXXus
Perhaps (*as an experiment*) you could investigate whether your MySQL settings involve "strict mode" OR perhaps try the code hack listed here:

http://forum.phpwcms.org/viewtopic.php?p=98412#p98412

Re: Login problem

Posted: Fri 8. Feb 2008, 16:13
by xinoy
hmm tried that to didn't work.

btw they also updated their php from 4 to PHP Version 5.1.6.

Can there be a problem ?

Re: Login problem

Posted: Fri 8. Feb 2008, 17:35
by DeXXus
Don't know! Maybe more info would help. What version of phpWCMS?
Did PHP version change too? Is Session save path changed or full or permissions issue?
Do you have all errors, warnings and notices "turned on" in php.ini?
Perhaps there is a PHP screen message that would accompany the login error. Just guessing.

How to change password:
http://forum.phpwcms.org/viewtopic.php?p=65646#p65646

Re: Login problem

Posted: Sun 10. Feb 2008, 12:12
by romet
Hi,

I have the same problem. After logging in I stay on the login.php, but if i key in manually phpwcms.php i can work in admin area.
Also after creating new Article "phpwcms.php?do=articles&p=1" gives error HTTP 404

My PHP version is 4.3.11, PHPWCMS version is 1.3.3.
--
romet

Re: Login problem

Posted: Mon 11. Feb 2008, 01:15
by godmd
Same problem here, too.

phpwcms: 1.3.5. (rel 05-12-2007)
Provider: http://dreamhost.com
MySQL: 5.0.24a
PHP: 4.4.8
Cookies are enabled in FF; Session cookies are greyed out/inactive (could this be the problem?).

In frontend everythings seems okay.

Login fails -> "Errors during login!"

After the 3rd installation I kept the setup folder and returned to "database settings".
There it says "There is a database problem! Account for user admin was not created or updated. Try again."

In fact a user was created and the values are identical in the datbase and in config file.

I tried to login with default values as well as with created password. Also entered the passwort as plain text into the db table using MD5 - to no avail.

Here my config:

Code: Select all

// database values
$phpwcms['db_host']           = 'mysql.xxx.com';
$phpwcms['db_user']           = 'xxx';
$phpwcms['db_pass']           = 'xxx';
$phpwcms['db_table']          = 'xxx';
$phpwcms['db_prepend']        = '';
$phpwcms['db_pers']           = 1;
$phpwcms['db_charset']        = 'utf8';
$phpwcms['db_collation']      = 'utf8_general_ci';
$phpwcms['db_version']        = 50024;  // tried with 50041 as well

// site values
$phpwcms['site']              = 'http://hartmantravels.com/';
$phpwcms['admin_name']        = 'Webmaster'; //default: Webmaster
$phpwcms['admin_user']        = 'xxx'; //default: admin
$phpwcms['admin_pass']        = 'xxx'; //MD5(phpwcms)
$phpwcms['admin_email']       = 'webmaster@hartmantravels.com'; //default: noreplay@host

// paths
$phpwcms['DOC_ROOT']          = $_SERVER['DOCUMENT_ROOT'];// real DOC_ROOT seems to be: '/home/.holbrook/hartmantravels/hartmantravels.com/inc' 
$phpwcms['root']         		= '';         //default: ''
$phpwcms['file_path']         = 'filearchive';    //default: 'filearchive'
$phpwcms['templates']         = 'template';    //default: 'template'
$phpwcms['content_path']      = 'content'; //default: 'content'
$phpwcms['cimage_path']       = 'images';  //default: 'images'
$phpwcms['ftp_path']          = 'upload';     //default: 'upload'

// content values
$phpwcms['file_maxsize']      = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms['content_width']     = 940; //max width of the article content column - important for rendering multi column images
$phpwcms['img_list_width']    = 100; //max with of the list thumbnail image
$phpwcms['img_list_height']   = 75; //max height of the list thumbnail image
$phpwcms['img_prev_width']    = 940; //max width of the large preview image
$phpwcms['img_prev_height']   = 600; //max height of the large preview image
$phpwcms['max_time']          = 7200; //logout after max_time/60 seconds

// other stuff
$phpwcms['compress_page']     = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms['imagick']           = 1; //0 = GD,  1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms['imagick_path']      = ''; //Path to ImageMagick (default='' - none)
$phpwcms['use_gd2']           = 1; //0 = GD1, 1 = GD2
$phpwcms['rewrite_url']       = 0;  //whether URL should be rewritable
$phpwcms['wysiwyg_editor']    = 2;  //0 = no wysiwyg editor, 2 = FCKeditor, 4 = spaw
$phpwcms['phpmyadmin']        = 0;  //enable/disable phpMyAdmin in Backend
$phpwcms['default_lang']      = 'en';  //default language
$phpwcms['charset']           = 'utf-8';  //default charset 'iso-8859-1'
$phpwcms['allow_remote_URL']  = 1;  //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms['gt_mod']            = 1;  //0 = Graphical Text MOD disabled, 1 = enabled
$phpwcms['jpg_quality']       = 85; //JPG Quality Range 25-100
$phpwcms['sharpen_level']     = 1;  //Sharpen Level - only ImageMagick: 0, 1, 2, 3, 4, 5 -- 0 = no, 5 = extra sharp
$phpwcms['allow_ext_init']    = 1;  //allow including of custom external scripts at frontend initialization
$phpwcms['allow_ext_render']  = 1;  //allow including of custom external scripts at frontend rendering
$phpwcms['cache_enabled']     = 0;        //cache On/Off - 1 = caching On / 0 = caching Off (default)
$phpwcms['cache_timeout']     = 0;  //default cache timeout setting in seconds - 0 = caching Off
$phpwcms['imgext_disabled']   = '';  //comma seperated list of imagetypes which should not be handled 'pdf,ps'
$phpwcms['multimedia_ext']    = 'aif,aiff,mov,movie,mp3,mpeg,mpeg4,mpeg2,wav,swf,swc,ram,ra,wma,wmv,avi,au,midi,moov,rm,rpm,mid,midi'; //comma seperated list of file extensiosn allowed for multimedia
$phpwcms['inline_download']   = 1;  //1 = try to display download documents in new window; 0 = show safe under dialog
$phpwcms['form_tracking']     = 1; //make a db entry for each form
$phpwcms['formmailer_set']    = array('allow_send_copy' => 0, 'global_recipient_email' => 'form@localhost'); //for better security handling
$phpwcms['allow_cntPHP_rt']   = 0; //allow PHP replacement tags and includes in content parts
$phpwcms['GETparameterName']  = 'id'; //must have a minimum of 2 chars 
$phpwcms['no_session_start']  = array('googlebot', 'msnbot', 'ia_archiver', 'altavista', 'slurp', 'yahoo', 'jeeves', 'teoma', 'lycos', 'crawler'); //don't start session 
$phpwcms['mode_XHTML']        = 1; // Doctype: 1 = XHTML 1.0 Transitional, 0 = HTML 4.01 Transitional 
$phpwcms['header_XML']        = 1; // Content Type: 1 = application/xhtml+xml, 0 = text/html 
$phpwcms['IE_htc_hover']      = 0; // enables HTC Hover for IE < 7 - has no effect in other browsers 
$phpwcms['IE_htc_png']        = 0; // enables HTC pngbehavior for IE < 7 - has no effect in other browsers 
$phpwcms['Bad_Behavior']      = 0; // 1 enables spam blocking by Bad Behavior, 0 off 
$phpwcms['wysiwyg_template']  = array('FCKeditor' => 'phpwcms_basic,phpwcms_default,Default,Basic', 
										'SPAW2' => 'standard,all,mini' );
$phpwcms['GET_pageinfo']      = 0; // will add "&pageinfo=/cat1/cat2/page-title.htm" based on the breadcrumb information for each site link 
$phpwcms['version_check']     = 1; // checks for current release of phpwcms online 
$phpwcms['SESSION_FEinit']    = 1; // set 1 to enable sessions in frontend, 0 to disable sessions in frontend 
$phpwcms['Login_IPcheck']    = 0; 

// dynamic ssl encryption engine
$phpwcms['site_ssl_mode']     = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms['site_ssl_url']      = '';  //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. 'https://www.yourdomainhere.tld'
$phpwcms['site_ssl_port']     = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'webmaster@hartmantravels.com'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'HartmanTravels'; // reply/from name
$phpwcms['SMTP_HOST']         = 'mail.hartmantravels.com'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 1; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = 'webmaster@hartmantravels.com'; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = 'xxx'; // default SMTP password

define('PHPWCMS_INCLUDE_CHECK', true);
Now, I'm at a total loss here. Had this site installed on my own server before as a sample. My customer chose this provider because he has more domains there. I checked their offer as to the availability of mysql, php and imagemagick and thought it was okay. I can hardly tell my customer now that he has to change his provider after he just registered this domain today ...

Hope someone knows a solution.

Anka

Re: Login problem

Posted: Mon 11. Feb 2008, 02:26
by Jensensen
at first sight and not sure but
real DOC_ROOT seems to be: '/home/.holbrook/hartmantravels/hartmantravels.com/inc'

.holbrook ??? no good idea...hmmm, grĂ¼bel...

$phpwcms['db_host'] = 'mysql.xxx.com';
shouldn't be 'localhost' ???

$phpwcms['imagick'] = 1; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
You have ImageMagick on board??

some minor issues:
when using SMTP and with $phpwcms['SMTP_AUTH'] = 1;
then mailer should set to $phpwcms['SMTP_MAILER'] = 'smtp'; // default phpMailer: smtp, mail (default), sendmail
not 'mail', isn't it [DF6IH please help!]

Re: Login problem

Posted: Mon 11. Feb 2008, 08:16
by juergen
Jensensen wrote: [DF6IH please help!]
dreamhost.com wrote:Log Files Wiki Link
Every time somebody visits your web site, our server takes a log of it in either your access.log file or your error.log file (for times when people get errors like 404, etc... These logs are available for you to download at any time via FTP in the directory logs/yourdomain.com/http/ on our server. We rotate the logs every night so that access.log and error.log only contain today's logs, while error.log.0 and access.log.0 contain yesterdays (the last FULL day of logging available). After two days, we delete the log files. However, you can specify that we save log files for as long as 31 days from our web panel. Normally, your log files do not count towards your disk usage total. If you tell us to save any extra logs though, those will count towards your total. To save you some disk space, we compress these files via "gzip". You can uncompress them from the shell by running "gunzip filename.gz" on them, or on your home computer with a program like winzip. You can only delete log files more than two days old from the server. We need the logs for the first few days to generate your site statistics!
In my eyes DNS Stuff :shock: 's ok . Servers name sounds like hollywood title: Target Name: hartmantravels.com--> apache2-noxim.plenty.dreamhost.com [205.196.214.115] they had better Names for RDNS.

Extra sql Server is equal (mostly) to localhost.... don't know if an extra IP entry would be better, but phpwcms is running (index.php)

For my eyes dreamhosting offers no ImageMagic, so if so, this can be changed.

Would try to use another browser and then see in log what happend..

//Edit : noxim .. might replace "no Exim" ... Never seen MTA Info in RDNS *g* ?

//Edit2: When reading within these dreamhost informations they say ->php4 or php5 ... perhaps you should try to switch php Version.

//Edit3:

Code: Select all

$phpwcms['db_version']        = 50024;  // tried with 50041 as well
replace with

Code: Select all

$phpwcms['db_version']        = 50016; 

Re: Login problem

Posted: Mon 11. Feb 2008, 12:47
by godmd
Well, I changed the mysql setting to

Code: Select all

$phpwcms['db_version']        = 50016;
No change.

Tried to login in IE7 and there I get this js error:

Code: Select all

Zeile: 1
Zeichen: 1
Fehler: Objekt erwartet
Code: 0
URL: http://hartmantravels.com/login.php
So my guess is that it might have something to do with session and/or cookie settings. That is why I switched from PHP5 to PHP4 (after phpwcms install) in the DreamHost admin panel, because PHP5 is configured "session.use_trans_sid OFF OFF" while with PHP4 it is "session.use_trans_sid ON ON".

Enabled Galerix now, showing that in frontend everything works excellently. Just no login.

Code: Select all

$phpwcms['db_host'] = 'mysql.xxx.com';
shouldn't be 'localhost' ???
I always enter the sql-host and never had any probs there.

DOC_ROOT is this:

Code: Select all

/home/.holbrook/hartmantravels/hartmantravels.com
The "inc" is added by phpwcms in almost all my installations. Don't know why, but the installations are okay. If my problem had anything to do with this root, then I think the frontend wouldn't work either.

Thanks for the smtp-tip. I'll change it but it was working anyway.

I'd really appreciate it if you have further suggestions as to the login error.

Anka

Re: Login problem

Posted: Mon 11. Feb 2008, 12:57
by Jensensen
The "inc" is added by phpwcms in almost all my installations.
yes, me too. don't now why, where but no prob at all.

i was thinking about: .holbrook in DOC_ROOT, because of some visibility issues... [and read/write/exec permissions]...

Re: Login problem

Posted: Mon 11. Feb 2008, 12:59
by juergen
Hi


Behavior of phpwcms seems to be normal ... I found this : mod_fastcgi/2.4.2 and ... :evil: ... and... :roll: .. this is problem number 300 with this mod..

@claus . how's it going with fastcgi ...?

Wonder if the "fast" is german :)

Re: Login problem

Posted: Mon 11. Feb 2008, 13:06
by juergen
http://www.seaoffire.net/fcgi-faq.html#III-D :

Code: Select all

D : Configuring php.ini

There are two things that MUST be set in php.ini in order for this configuration to work. They are vital to chroot working correctly with FastCGI :

First is "doc_root." In our current setup, our chroot is at /www/h/o/host.com/ our web space is at /www/h/o/host.com/html.

So, we must set :

doc_root = "/html"

We do this because FastCGI does not know our wrapper is chroot'ing, it sends all the full paths through the pipe to the php-fcgi process. Setting doc_root to the path inside the chroot allows PHP to find the scripts in the correct location : /html/file.php

Otherwise, php-fcgi will try to open /www/h/o/host.com/html/file.php, and since it is running in a chroot environment, that path does not exist. The "/www/h/o/host.com" does basically not exist any longer for this process.

The second is :

cgi.fix_pathinfo = 0

This keeps the correct paths we need for the scripts to be found under the chroot environment.
I DO NOT UNTERSTAND THIS FASTCGI MOD :mrgreen:
I DO NOT UNDERSTAND WHY THEY SWITCH SAFE MODE to OFF ... tzzz

Re: Login problem

Posted: Mon 11. Feb 2008, 13:18
by Jensensen
phpinfo claims

Code: Select all

_ENV["DOCUMENT_ROOT"]	/home/hartmantravels/hartmantravels.com
without: .holbrook
???