View Full Version : Can't Login To Webmail On Plesk


tomyknoker
01-07-2007, 08:48 PM
Hi All,

I'm running Plesk and can't seem to login to my webmail with any of my users I create, anyone had this issue before?

linuxcares
01-07-2007, 09:00 PM
What is the error message you receive while trying to login the webmail?

tomyknoker
01-07-2007, 09:07 PM
It just says "login failed", and the address bar has this "&logout_reason=failed"

linuxcares
01-07-2007, 09:11 PM
Please do the following things:

1) Make sure that "session.auto_start" is disabled in php.ini. It should be session.auto_start = 0

Don't forget to restart Apache after php.ini will have been changed.

2) Check that directory /tmp has permissions 1777:

root@server [~]# ls -ald /tmp
drwxrwxrwt 11 root root 13312 Jan 8 06:37 /tmp/

Let us know how it goes.

tomyknoker
01-07-2007, 09:59 PM
Sorry how do I do no. 1? Through ssh?

linuxcares
01-07-2007, 10:05 PM
yes. Login to ssh, then locate the php.ini file by,

php -i |grep ini

Then, open the php.ini file and check the line session.auto_start

tomyknoker
01-07-2007, 10:08 PM
Ok I typed the command and got this
[root@as ~]# php -i |grep ini
<tr><td class="e">Configuration File (php.ini) Path </td><td class="v">/etc/php.ini </td></tr>
<tr><td class="e">Scan this dir for additional .ini files </td><td class="v">/etc/php.d </td></tr>
<tr><td class="e">additional .ini files parsed </td><td class="v">/etc/php.d/domxml.ini,
/etc/php.d/gd.ini,
/etc/php.d/imap.ini,
/etc/php.d/ioncube-loader.ini,
/etc/php.d/ldap.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mysql.ini,
/etc/php.d/ncurses.ini,
/etc/php.d/odbc.ini,
/etc/php.d/snmp.ini,
/etc/php.d/sqlite.ini,
/etc/php.d/xmlrpc.ini
<tr><td class="e">Supported handlers </td><td class="v">cdb cdb_make db4 inifile flatfile </td></tr>
<tr><td class="e">open sourced by </td><td class="v">Epinions.com </td></tr>
Not sure how to save it, I am assuming I need to save this to my desktop to edit it?

linuxcares
01-07-2007, 10:17 PM
It shows that the php.ini file is /etc/php.ini , now please proceed ;)

tomyknoker
01-07-2007, 10:22 PM
Not sure how to edit at file from within the terminal... :(

Chikita
01-07-2007, 11:43 PM
type in command line

nano /etc/php.ini

(Stephen)
01-07-2007, 11:45 PM
see that the pop server is listening on 127.0.0.1 I recently had this issue in plesk 8 :)

tomyknoker
01-07-2007, 11:55 PM
type in command line

nano /etc/php.iniI got this
-bash: nano: command not found

How do I see if the pop server is listening on 127.0.0.1, from within Plesk?

tomyknoker
01-08-2007, 12:03 AM
Ok guys well I did a Google search and made a bit of headway I used the vicommand... and got this
[root@as ~]# cd /etc/
[root@as etc]# vi php.ini

[PHP]

;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
;
; This is the recommended, PHP 4-style version of the php.ini-dist file. It
; sets some non standard settings, that make PHP more efficient, more secure,
; and encourage cleaner coding.
; The price is that with these settings, PHP may be incompatible with some
; applications, and sometimes, more difficult to develop with. Using this
; file is warmly recommended for production sites. As all of the changes from
; the standard settings are thoroughly documented, you can go over each one,
; and decide whether you want to use it or not.
;
; For general information about the php.ini file, please consult the php.ini-dist
; file, included in your PHP distribution.
;
; This file is different from the php.ini-dist file in the fact that it features
; different values for several directives, in order to improve performance, while
; possibly breaking compatibility with the standard out-of-the-box behavior of
; PHP 3. Please make sure you read what's different, and modify your scripts
; accordingly, if you decide to use this file instead.
;
; - register_globals = Off [Security, Performance]
; Global variables are no longer registered for input data (POST, GET, cookies,
; environment and other server variables). Instead of using $foo, you must use
; you can use $_REQUEST["foo"] (includes any variable that arrives through the
; request, namely, POST, GET and cookie variables), or use one of the specific
; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
; on where the input originates. Also, you can look at the
"php.ini" 1071L, 38411C

linuxcares
01-08-2007, 12:11 AM
search for the string session.auto_start in the file.

See http://www.cs.colostate.edu/helpdocs/vi.html to know how to use vi editor

tomyknoker
01-08-2007, 12:24 AM
I can't work it out... Is there no way to save the file to my desktop and edit it? I tried to use the vi but it only seems to give me part of the file as above??

tomyknoker
01-08-2007, 06:08 PM
Still having no luck with the vi, I've tried to search but it keeps trying to insert string session.auto_start... as long as I keep typing ":q!" will I be killing the file?