Current time: 12-23-2024, 10:11 PM Hello There, Guest! (LoginRegister)


Post Reply 
[RESOLVED] Problem in using ftp_choose_dir.php with CentOS 5.4, PHP 5.2.11
Author Message
Nuxwin
Unregistered

 
Post: #4
RE: Problem in using ftp_choose_dir.php
Hello motokochan ;

(12-19-2009 09:22 AM)motokochan Wrote:  I see template names in the page output, which probably means that the issue with substr and PHP 5.3 wasn't resolved (or you're using a version without the fix).

No, it's not a problem with PHP5.3. Wink

Code:
[root@ispcp etc]# php -v
PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
[root@ispcp etc]#

For testing, I performed a fresh install of Centos 5.4 in strict compliance with the procedure described in the howto comes with ispCP and the same hostname as rexsham for the panel access.

As I could reproduce the error, I will now correct the problem. Wink

   

EDIT:

I found the source of the problem.

That is just an FTP authentication issue due to a mistakes in the proftpd configuration file. To fix it, edit your "/etc/proftpd.conf" and change the line:

Code:
AuthOrder                  mod_sql.c mod_auth_pam.c* mod_auth_unix.c
To
Code:
AuthOrder                  mod_sql.c mod_auth_pam.c mod_auth_unix.c
Note: Here, we are simply removed the asterisk (*) after the module name because ispCP dot use PAM. So, the module "mod_auth_pam.c" should not be authoritative. See http://www.proftpd.org/docs/directives/l...Order.html for more information about this issue.

And then, restart your Proftpd server:
Code:
# /etc/init.d/proftpd/restart

Note: For the record : The fact that the template variable is not be replaced does not come from a PHP error. It is simply because when the FTP authentication fails ( I will not go into the details here ), the script stops before the variable is replaced.


logs ( /var/log/secure):

Example with no changes:
Code:
Dec 19 03:45:35 ispcp proftpd: pam_unix(proftpd:auth): check pass; user unknown
Dec 19 03:45:35 ispcp proftpd: pam_unix(proftpd:auth): authentication failure; logname= uid=0 euid=0 tty=/dev/ftpd14024 ruser=tmp_4b2c3e4f8321d@nuxwin.com rhost=127.0.0.1
Dec 19 03:45:35 ispcp proftpd: pam_succeed_if(proftpd:auth): error retrieving information about user tmp_4b2c3e4f8321d@nuxwin.com
Dec 19 03:45:37 ispcp proftpd[14024]: ispcp.nuxwin.com (127.0.0.1[127.0.0.1]) - USER tmp_4b2c3e4f8321d@nuxwin.com (Login failed): Incorrect password.
Dec 19 03:45:38 ispcp proftpd[14024]: ispcp.nuxwin.com (127.0.0.1[127.0.0.1]) - FTP session closed.

Example with my changes:
Code:
Dec 19 03:44:02 ispcp proftpd[14003]: ispcp.nuxwin.com (127.0.0.1[127.0.0.1]) - USER tmp_4b2c3df074f3f@nuxwin.com: Login successful.
Dec 19 03:44:02 ispcp proftpd[14003]: ispcp.nuxwin.com (127.0.0.1[127.0.0.1]) - FTP session closed.

Cheers ;
12-19-2009 10:31 AM
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Problem in using ftp_choose_dir.php - Nuxwin - 12-19-2009, 07:03 AM
RE: Problem in using ftp_choose_dir.php - Nuxwin - 12-19-2009 10:31 AM
RE: Problem in using ftp_choose_dir.php - Nuxwin - 12-20-2009, 01:07 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)