[RESOLVED] Problem in using ftp_choose_dir.php with CentOS 5.4, PHP 5.2.11 - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: [RESOLVED] Problem in using ftp_choose_dir.php with CentOS 5.4, PHP 5.2.11 (/thread-8810.html) |
[RESOLVED] Problem in using ftp_choose_dir.php with CentOS 5.4, PHP 5.2.11 - rexsham - 12-19-2009 05:36 AM I setup with a fresh CentOS 5.4 with all software packages listed in the documentation and followed the steps in the documentation. php 5.2.11 mysql 5.1.41 Apache/2.2.3 (CentOS) MySQL client version: 5.0.67 PHP extension: mysql ispcp 1.0.2 stable also with ispcp 1.0.3 2009.12.17 nightly build, both with same problem phpmyadmin , SQL and email are ok but the FTP and filemanager do not work. I cannot get the FTP working correctly, when I access "Add FTP user" I see the page like this: [attachment=1014] I have used over a week to find the problem but i am too stupid to have that problem found. RE: Problem in using ftp_choose_dir.php - Nuxwin - 12-19-2009 07:03 AM Hello ; Work fine on OpenSUSE ; I'll try with centos. RE: Problem in using ftp_choose_dir.php - motokochan - 12-19-2009 09:22 AM 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). Try applying the change mentioned in this post and see if you still have issues. RE: Problem in using ftp_choose_dir.php - Nuxwin - 12-19-2009 10:31 AM 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. Code: [root@ispcp etc]# php -v 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. [attachment=1015]
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 Code: AuthOrder mod_sql.c mod_auth_pam.c mod_auth_unix.c 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 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. Cheers ; RE: Problem in using ftp_choose_dir.php - rexsham - 12-20-2009 01:02 AM Thanks so much for your help nuwin, it works like a charm now! The wildcard there is really causing the wrong authentication error and screwed up the display on ftp. motokochan, thanks for your suggestion too, but my PHP is 5.2.11, not 5.3 and the error is not thrown from PHP, I have checked the logs. nuwin is right, I tried with latest stable 1.0.2 and 1.0.3 nightly build and both are reproducing the same error. That wildcard in the proftpd.conf is really causing the problem and that should be filed as a bug. Attached is the log from my /var/log/secure and it shows the same errors in nuwin's test. Code: Dec 17 04:48:43 host proftpd: pam_unix(proftpd:auth): check pass; user unknown Code: (218.254.184.138[218.254.184.138]) - USER ftp@~~~~~~~~~.com: Login successful. RE: Problem in using ftp_choose_dir.php - Nuxwin - 12-20-2009 01:07 AM Hi ; No problem ; Please, mark the thread as RESOLVED |