LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-13-2012, 04:00 AM   #1
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Rep: Reputation: Disabled
Smile Squirrel Mail + change_SQLpass plugin in


HI,

After i add-in the change_SQLpass plugin. My web page was going empty when i click change password from option page.

If i switch to changepass plugin and then it work fine. Due to i'm using virtual domain, i have to use the change_SQLpass plugin.

any ideas ?

Thanks
 
Old 01-13-2012, 06:56 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

A blank page means that there is some php error in the php script you're trying to run. Are you sure you configured the plugin correctly?
You should check your webserver error_log, or enable php logging in php.ini (you need to restart webserver)
And you should give some details about what is your webserver, squirrelmail version etc.

Regards
 
Old 01-13-2012, 06:52 PM   #3
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

So sorry for my poor explanation.

i'm configuring squirrelmail change_SQLpass plugin in.
version squirrelmail : 1.4.22
webserver : apache

Web Site i refering

MYSQL & Virtual Domain & Postfix SMTP Authentication and Dovecot SASL
http://www.linuxmail.info/multiple-d...dmin-centos-5/

http://www.linuxmail.info/squirrelma...assword-howto/
http://www.linuxmail.info/postfix-sm...sasl-centos-6/


error_log for webserver (/var/log/httpd/error_log)
[Sat Jan 14 08:28:10 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sat Jan 14 08:44:10 2012] [error] Exception KeyError: KeyError(140416465770464,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sat Jan 14 08:44:10 2012] [error] Exception KeyError: KeyError(140416465770464,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sat Jan 14 08:44:10 2012] [error] Exception KeyError: KeyError(140416465770464,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sat Jan 14 08:44:10 2012] [error] Exception KeyError: KeyError(140416465770464,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sat Jan 14 08:44:10 2012] [error] Exception KeyError: KeyError(140416465770464,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sat Jan 14 08:44:10 2012] [error] Exception KeyError: KeyError(140416465770464,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sat Jan 14 08:44:10 2012] [error] Exception KeyError: KeyError(140416465770464,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sat Jan 14 08:44:10 2012] [error] Exception KeyError: KeyError(140416465770464,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sat Jan 14 08:44:11 2012] [notice] caught SIGTERM, shutting down
[Sat Jan 14 08:44:12 2012] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Sat Jan 14 08:44:12 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jan 14 08:44:12 2012] [notice] Digest: generating secret for digest authentication ...
[Sat Jan 14 08:44:12 2012] [notice] Digest: done
[Sat Jan 14 08:44:12 2012] [warn] mod_wsgi: Compiled for Python/2.6.2.
[Sat Jan 14 08:44:12 2012] [warn] mod_wsgi: Runtime using Python/2.6.6.
[Sat Jan 14 08:44:12 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations


config php
$csp_dsn = 'mysql://postfixassword@localhost/postfix';
$lookup_password_query = 'SELECT count(*) FROM users WHERE username = "%1" AND password = %4';
$password_update_queries = array(
'UPDATE users SET password = %4 WHERE username = "%1"',
// 'UPDATE user_flags SET force_change_pwd = 0 WHERE username = "%1"',
// 'UPDATE users SET crypt_password = %4, force_change_pwd = 0 WHERE username = "%1"',
);
$force_change_password_check_query = '';
$password_encryption = 'MYSQLPWD';
$csp_salt_static = 'password';
$csp_salt_query = 'SELECT salt FROM users WHERE username = "%1"';
$csp_secure_port = 0;
$csp_non_standard_http_port = 0;
$min_password_length = 6;
$max_password_length = 0;
$include_digit_in_password = 0;
$include_uppercase_letter_in_password = 0;
$include_lowercase_letter_in_password = 0;
$include_nonalphanumeric_in_password = 0;
$csp_delimiter = '@';
$csp_debug = 0;



i enable php.ini but no able to see the log (what i add in php.ini)
error_log = /var/log/php-scripts.log

Last edited by chengli; 01-13-2012 at 07:02 PM.
 
Old 01-14-2012, 03:03 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Quote:
i enable php.ini but no able to see the log (what i add in php.ini)
error_log = /var/log/php-scripts.log
In apache logs there is nothing related to the change password script. You should try to use the script and see what's logged.

You may also try the following in php.ini for better results:
Code:
error_reporting = E_ALL
log_errors = On
error_log = /var/log/php-scripts.log
Regards
 
Old 01-15-2012, 08:32 PM   #5
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

i already follow your step update php.ini but still unable to see the error log (php-scripts.log not found in dir).

Code:

error_reporting = E_ALL
log_errors = On
error_log = /var/log/php-scripts.log


Any Ideas ?

Thanks for your further assist.
 
Old 01-16-2012, 12:26 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Are you restarting apache after editing php.ini?
 
Old 01-16-2012, 12:47 AM   #7
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

yes, i did already (even restart the pc).


Thanks
Chengli
 
Old 01-16-2012, 03:49 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by chengli View Post
Hi Bathory,

yes, i did already (even restart the pc).
Thanks
Chengli
Huh, could be selinux. Change the error_log location to some place that the apache has write permissions (/var/log/httpd/php.log)
Perhaps you need also to change ownership to apache:apache for the php.log file
 
Old 01-16-2012, 08:20 PM   #9
chengli
LQ Newbie
 
Registered: Jan 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
HI bathory,

Thanks for your help. PHP.log work perfectly.

thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail LXer Syndicated Linux News 0 03-12-2008 10:50 PM
bind to LDAP failed (squirrel mail plugin ch_ldap passwd) johnyquest743 Linux - Enterprise 0 06-24-2007 11:40 AM
anti spam plugin for squirrel mail zealkabi Linux - Enterprise 4 06-16-2006 01:55 AM
Squirrel Mail Plugin's Big Brad Linux - Newbie 0 12-01-2003 02:34 AM
SQUIRREL MAIL twc_weather plugin illtbagu Linux - Software 2 11-10-2003 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration