Author Topic: I cant login after installation with the "install"  (Read 1723 times)

epipin

  • Posts: 11
    • View Profile
I cant login after installation with the "install"
« on: March 10, 2006, 08:18:54 pm »
Hi every body... I have the next problem:

1. Install listmail pro as manuall says and everthing is ok
2. Install database and everything is ok.... but
3. When I try to go to the "configuration" menu, instead of click at the left botton, I clicked the botton message where says that I have to go to the "configuration menu" and set my password and else....
4. This "click" redirect me to the login page but when I try to log I cant do it

Now I cant log in to my account and I dont know wath to do... I have just tryed the "install" password but it doesnt work

Please help me...

Thanks a lot

==============================================
Adittional information
==============================================

When I try to log using the "install" password I recive the next message:

Warning: Cannot modify header information - headers already sent by (output started at /home/viajesco/public_html/mailpro/config.php:1) in /home/viajesco/public_html/mailpro/login.php on line 56

Warning: Cannot modify header information - headers already sent by (output started at /home/viajesco/public_html/mailpro/config.php:1) in /home/viajesco/public_html/mailpro/login.php on line 57

And at the bottom says: Admin logged in, proceed...

But nothing happen...

I have to say that I just have done a "new and clean" installation in another file and with a new database but I get the same problem...

Well thats all folks, I hope you can help me.

Bye

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
I cant login after installation with the "install"
« Reply #1 on: March 11, 2006, 07:45:53 am »
It appears that some output from config.php is preventing the login cookie from being set. (Cookies must be set first before any output).

The clue is in this line:
(output started at /home/viajesco/public_html/mailpro/config.php:1)

I think that there may be a space or line above the expected Line 1, which should read:
Code: [Select]
<?php

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

epipin

  • Posts: 11
    • View Profile
I dont understand wath to do!!
« Reply #2 on: March 11, 2006, 11:00:47 pm »
Mr. Dean  I transcrib the config.php and login.php code I have beacuse I dont know how to correct the problem you mention at your post. Plese consider that I am not a php programmer else I am only a windows user  :lol:

1. Thits is my CONFIG.PHP file code as it appears in my own site:
===============================================
<?php
// CONFIG.PHP - ListMail Configuration File
//
// This is a .PHP file that must maintain proper syntax.  Be careful to only
// change the values between the single quotes and nothing else, or the script
// may not work correctly.
//
// Required is your database information, the host should normally be left at the
// setting, 'localhost', but not always.  Check with your host if it doesn't work.

// Enter your MySQL Information!

$sqlhost = 'localhost';

<edit>

// SAVE this file as config.php, -not- config.php.txt
// UPLOAD all of the files to a new folder on your web site, such as public_html/mail/
// BROWSE to the new subdirectory

// OPTIONS are available for different server types
// These options are rarely needed but are available if problems occur
// To change options remove and add the comment characters "//" from the beginning of the lines.
// Examples are provided with their defaults
// Setting an option to '' means no value, usually off.  Be careful to keep proper PHP syntax.

// Detect line endings for Mac browsers, default 0
// ini_set('auto_detect_line_endings',1);

// Use -f setting to set return-path correctly with PHP mail()
// This is used for welcome and confirmation messages.  If you are receiving "raw" bounce
// messages from welcome emails even if you have bounce configured this may need to be set.
$phpmailf = '';
// $phpmailf = 1;

// International character set, default iso-8859-1 if not set)
$charset = '';
// $charset = 'iso-8859-1';

// Manually set path to MySQL binaries - for problems with backup / restore.
// The linux commandline utilities "mysql" and "mysqldump" need to be available for the
// backup process.  If ListMail cannot detect this path, you can set it manually.

// $sqlpath = "/usr/bin/mysql/";
// $sqlpath = "/usr/local/bin/mysql/";
// $sqlpath = "/usr/local/mysql/bin/";
// $sqlpath = "/usr/local/psa/mysql/bin/";

// max random value for problematic servers (deprecated)
// $randmaxx = '50000';

// mail counter increment, default 50
// $mailcount = 50;

// add Maximizer option to exports
/* $maximizer = 1;
$max_header = '"MTI: Web Inquiry"
"BUSINESS_PEOPLE","1","401","E-mail Address"
"P_E-mail Address","FIRST NAME","LAST NAME","ADDRESS LINE 1","ADDRESS LINE 2","CITY","COUNTY","POSTCODE","COUNTRY","PHONE 1"
"ALPHA-39","ALPHA-39","ALPHA-39","ALPHA-39","ALPHA-39","ALPHA-59","ALPHA-21","ALPHA-21","ALPHA-21","ALPHA-119"';
$max_fields = 'em,fn,ln,u1,u2,u3,u4,u5,u6,u7'; */

// !! Do not change anything below here !!

//
if (get_magic_quotes_gpc()==1) { $gpc = 'yes'; }

?>
===============================================

2. This is my LOGIN.PHP file as it appears:
===============================================
<?php
/* ListMail (c) 2005 Dean Wiebe <dean@listmailpro.com>
   You may not modify or distribute the program without express permission from the author.
   Files are overwritten when updates are released, so it's not a good idea anyway. */

include('./config.php');
include('./admin.php');

ini_set("max_execution_time","0");

$loggedin='';
$islogged='';

$islogged = islogged();

if(!$islogged){ $dologin=1; } else { $loggedin=1; }

if(!$installed){
 $dologin=1;
 $loggedin=0;
 $logout='';
 setcookie ('LMadm1','',time()-2592000,'/','.'.getdomain(),0);
 setcookie ('LMadm2','',time()-2592000,'/','.'.getdomain(),0);

}

if($loggedin && !$logout){
 adminheader('ListMail','Logged in','jumplists');
 echo "<center>You are already logged in</center>";
 exit;
}

if($logout){
 if (!$loggedin){
  adminheader('Error',"Can't logout",'login');
  echo "You are not logged in. <a style=\"color: #000000\" href=./login.php>Login</a>?";
 } else {
  setcookie ('LMadm1','',time()-2592000,'/','.'.getdomain(),0);
  setcookie ('LMadm2','',time()-2592000,'/','.'.getdomain(),0);
  adminheader('ListMail Logout','Logged out','logout');
  echo "<span class=table_inside_normal>Admin logged out.  </span><a class=table_inside_normal href=./login.php>Re-login</a>?";
 }
}

if($chkpw){
 $adminpw='';
 $crow = mysql_query("select instid,admpw from $ctable where 1");
 if(@mysql_num_rows($crow)>0){
  list($instid,$adminpw)=mysql_fetch_row($crow);
 }
 if($adminpw=='') { $adminpw = 'install'; $xpw = 1; } else $xpw = '';

// echo "pw=$pw, adminpw=$adminpw<br>";
 if($pw == $adminpw){
  if($xpw) $adminpw='';
  setcookie('LMadm1',md5($instid),0,'/','.'.getdomain(),0);
  setcookie('LMadm2',md5($adminpw),0,'/','.'.getdomain(),0);

  if(!$installed){
   adminheader('ListMail Auto-Install','Auto-Install','autoinst');
   echo "<span class=table_inside_normal>Initiating auto-installer, please wait.</span>";
  } else {
   adminheader('ListMail Login','Logged in','jumplists');
   echo "<span class=table_inside_normal>Admin logged in, proceed.</span>";
  }
 } else {
  $narr = getnotifs($list,'cfg');
  if($narr[1]=='1'){
   $crow = mysql_query("select ver,errchk,admmail,erraddr from $ctable where 1");
   list($ver,$errchk,$admmail,$errmail)=mysql_fetch_row($crow);
   $xmails = explode(';',$admmail);
   $admmail = $xmails[0];

   $ipaddr = getip();
   $iphost = gethostbyaddr($ipaddr);

   if($errchk == '2' || $errchk == '1') $errmail = $errmail; else $errmail = $admmail;
   $sendn = "ListMail Notification";
   $sende = "$errmail";
   $subj = 'Bad Password Entered!';
   $msg = "This is a warning because someone (you?) entered a bad password in the ListMail login page.  There is a delay of 7 seconds when you enter a wrong password but it won't completely stop would-be \"brute force\" hackers.  Your safest bet is to make sure your password can not be found in a dictionary file and is at least 8 characters in length.\n\nHere is some information about the potential intruder:\n\nIP Address: $ipaddr ($iphost)\n\nThe password they tried was \"$pw\".\n";
     $htmsg = '';
   $crlf = "\n";
   $header ="From: \"$sendn\" <$sende>$crlf";
   $header .= "Return-Path: $errmail$crlf";
   $header .= "MIME-Version: 1.0$crlf";
   $header .="X-Mailer: ListMail v$ver$crlf";
   mail($admmail,$subj,$msg,$header);
  }
  sleep(7);
  adminheader('Bad password','Incorrect Password','login');
  echo '<span class=table_inside_normal>Incorrect password.  This attempt has been logged.</span>';
 }
}
if($dologin && !$logout && !$chkpw){
 adminheader('ListMail Login','Admin Login','login');
 echo "<!-- outer -->\n";
 // check upgrade
 if($installed){
  $link = mysql_connect($sqlhost,$sqluser,$sqlpass);
  mysql_selectdb($sqldb);
  // compare current_version with database
  $cmd = "select ver from $ctable where 1 limit 1";
  $cfgrow = mysql_query($cmd);
  list($cver)= @mysql_fetch_row($cfgrow);
  if(!$cver) $cver = '1.0';
  if($cver<>$current_version){
   include('./upgrade.php');
  }
 }
 echo "
<img src=1.gif height=10><br>
<table class=outer_table border=0 cellspacing=0 cellpadding=0>
 <tr>
  <td class=table_head_bg><span class=table_head_text style=\"padding: 0px 5px 0px 4px\">Enter Admin Password</span></td>
 </tr>
 <tr>
  <td>
<table width=100% border=0 cellspacing=0 cellpadding=5>
 <tr>
  <td class=bg2>
   <form name=getpw method=post>
   <center>
   <input name=chkpw type=hidden value=1>
   <input name=pw type=password size=10 value=\"$inpw\" class=xbox style=\"width: 84px\"><br>
   <img src=1.gif height=3><br>
   <input class=button name=sb type=submit value=Enter onmouseover=\"this.className='button_over'\" onmouseout=\"this.className='button'\" style=\"width: 56px\">
  </td></form>
 </tr>
</table>
  </td>
 </tr>
</table>
<!-- end outer -->
<script language=javascript><!--
getpw.pw.focus();
--></script>";
if($demo == 'yes'){ echo "<span class=table_inside_normal><br>This is a demo, enter \"demo\" as the password.</span>"; }
if(!$installed){ echo "<span class=table_inside_normal><br>To install, enter \"install\" as the password.</span>"; }
echo "</body>
</html>";
}


?>
===============================================

I hope you can help me with these extra information

Thanks a lot

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
I cant login after installation with the "install"
« Reply #3 on: March 14, 2006, 08:19:46 am »
I apologize for the delay - I would like to get this sorted out for you.  Please submit your info so I can take a look and possibly explain and fix the problem.

Regards, DW
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

epipin

  • Posts: 11
    • View Profile
Thanks a lot... every thing is ok
« Reply #4 on: March 15, 2006, 08:47:26 pm »
Mr. Dean thanks a lot for your support. Everything seems working ok. I hope this never happen again  :D

Thanks... have a nice day

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
I cant login after installation with the "install"
« Reply #5 on: March 15, 2006, 08:49:13 pm »
No problem!   In case anyone else is wondering about this I believe it had something to do with the text editor used to edit config.php.  Some invisible funny characters had appeared in the header of the file.  Once I overwrote it everything was ok.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting