Re: PHP 4.3.4 ftp_rawlist null output
| From: | Federico Petronio | Date: | Tue, 17 Feb 2004 17:34:56 +0000 |
| Subject: | Re: PHP 4.3.4 ftp_rawlist null output | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177986@lists.php.net to get a copy of this message | ||
Finally I found the problem... I post it because could help to others...
The problem was that PHP ftp module use a fixed tmp directory (at least
I could not change it). That dir is /var/tmp and that dir was not
present in my chrooted environment. I create it, set permissions and
that was it.
Bye !!
Federico Petronio wrote:
Hi... I search about this and found different answers but not a clear one. Somebody talk about a PHP bug, other that it's solved in 4.3.4. I installer PHP 4.3.4 (without ftp-support) and Apache 2.0.48 on Solaris 8, the /tmp dir permission are 777. Time after that I compilled ftp.so module and included it in php.ini. Then I wrote a script (ftp.php) that connects OK, chdir OK, but when it try a ftp_rawlist the answer is "". I try the same script in RedHat linux PHP 4.3.4 compilled with the same parameters and worked OK (the only differece was that the module ftp.so was compilled and installed at the same time as the rest of the PHP was). BTW... what is the right way to add a module after the compilation is already done (I mean... doing a "make install" does not look good on a running production environment)? What could be the problem with the PHP on Solaris? In the FTP log I get this.. (the LIST command is never issued) 10.2.0.10 UNKNOWN nobody [13/Feb/2004:17:29:08 -0300] 10.2.0.10 "USER XXX@XXX.com.ar" 331 - 10.2.0.10 UNKNOWN XXX@XXX.com.ar [13/Feb/2004:17:29:08 -0300] 10.2.0.10 UPASS (hidden)" 230 - 10.2.0.10 UNKNOWN XXX@XXX.com.ar [13/Feb/2004:17:29:08 -0300] 10.2.0.10 "QUIT" 221 - but if I do the same on Linux it works ok: 10.2.0.11 "LIST /" 226 381 Any help will be welcome.-- Federico Petronio petrus@activesec.biz