Ticket #287 (closed defect: fixed)

Opened 2 years ago

Last modified 7 months ago

choosing DIR not working when adding a new ftp-user

Reported by: anonymous Assigned to:
Priority: minor Milestone: ispCP ω 1.0.0 - RC3
Component: Frontend (GUI) Version: ispCP ω 1.0.0 - RC2
Severity: Keywords:
Cc:

Description

Error message is: Warning: ftp_rawlist() expects parameter 1 to be resource, boolean given in /var/www/ispcp/gui/include/vfs.php on line 271

Attachments

Change History

05/18/07 11:34:47 changed by anonymous

Warning: ftp_rawlist() [function.ftp-rawlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/usr/share/php/) in /var/www/ispcp/gui/include/vfs.php on line 271

Warning: ftp_rawlist() [function.ftp-rawlist]: Unable to create temporary file. Check permissions in temporary files directory. in /var/www/ispcp/gui/include/vfs.php on line 271

05/19/07 20:39:32 changed by raphael

  • owner changed.
  • component changed from Backend to GUI (web frontend).

What are the steps to reproduce? Are you using any special setup? (e.g. multi-server)

(follow-ups: ↓ 4 ↓ 5 ) 05/20/07 01:30:43 changed by anonymous

add /tmp to basedir-list in php.ini to fix

(in reply to: ↑ 3 ) 05/20/07 20:50:48 changed by raphael

Replying to anonymous:

add /tmp to basedir-list in php.ini to fix

/tmp shouldn't be being used

(in reply to: ↑ 3 ; follow-up: ↓ 6 ) 05/24/07 11:37:23 changed by anonymous

Replying to anonymous:

add /tmp to basedir-list in php.ini to fix

is this an official solution for that problem?

(in reply to: ↑ 5 ; follow-up: ↓ 7 ) 05/24/07 19:49:50 changed by malte

Yes - that depends on your php version - some honour the openbasedir + phptmp - dir setting in the function ftprawlist - and some don't.

Debian etch is known to be working - Ubuntu seems to have problems with that - it really depends.

Adding /tmp to your php.ini on your master - host maybe the last option then. Perhaps you can even cross-use the debian .debs ?

I don't know that - please try & report :)

(in reply to: ↑ 6 ) 05/24/07 22:01:36 changed by parn@chat-net.ch

Replying to malte:

Yes - that depends on your php version - some honour the openbasedir + phptmp - dir setting in the function ftprawlist - and some don't. Debian etch is known to be working - Ubuntu seems to have problems with that - it really depends. Adding /tmp to your php.ini on your master - host maybe the last option then. I don't know that - please try & report :)

Hi

It don't working - but I'm using Debian Etch, a fresh installation. My open_basedir (on php.ini (php4 & 5)): open_basedir = "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/usr/share/php/:/tmp"

mfg parn

05/24/07 23:55:33 changed by raphael

  • status changed from new to closed.
  • resolution set to fixed.

Should be fixed in r601 There's no need of adding /tmp to open_basedir

(follow-up: ↓ 10 ) 05/25/07 00:02:05 changed by parn@chat-net.ch

  • status changed from closed to reopened.
  • resolution deleted.

On my Server, this fix is not usable - or better: this fix seems to be not the solution for this problem ;)

mh..my english..... :P

(in reply to: ↑ 9 ; follow-up: ↓ 11 ) 05/25/07 00:24:29 changed by raphael

Did you try the modifications? What is the error now?

(in reply to: ↑ 10 ; follow-up: ↓ 12 ) 05/25/07 07:21:09 changed by parn@chat-net.ch

Replying to raphael:

Did you try the modifications? What is the error now?

hi

i copied the file 'vfs.php' from trunk to the productive include directory. the error is the self... that can't be...?

(in reply to: ↑ 11 ; follow-up: ↓ 13 ) 05/25/07 21:21:05 changed by raphael

Replying to parn@chat-net.ch:

i copied the file 'vfs.php' from trunk to the productive include directory. the error is the self... that can't be...?

There are three different errors posted in this ticket. Which of them are bieng thrown? and, is the ftp server up and working?

(in reply to: ↑ 12 ; follow-up: ↓ 14 ) 05/25/07 21:33:28 changed by parn@chat-net.ch

hi raphael

the error-message is: Warning: ftp_rawlist() expects parameter 1 to be resource, null given in /var/www/ispcp/gui/include/vfs.php on line 272

and surely, the ftp-server is running and there are no problems - login etc. is no problem.

thanks, parn

(in reply to: ↑ 13 ) 05/27/07 04:06:14 changed by macbishop

I have the same error:

ftp_rawlist() expects parameter 1 to be resource, null given in /var/www/ispcp/gui/include/vfs.php on line 272

I have create a ftp account nevertheless and this is correctly inserted in database but if i connect from remote with ftp client:

May 27 03:39:37 hostname proftpd[23877] hostname (remote_adress): FTP session opened. May 27 03:39:37 hostname proftpd[23877] hostname (remote_adress): no such user 'user@domain.tld' May 27 03:39:37 hostname proftpd[23877] hostname (remote_adress): USER user@domain.tld: no such user found from remote_adress to [serverIP]:21 May 27 03:39:37 hostname proftpd[23877] hostname (remote_adress): FTP session closed

05/27/07 17:02:26 changed by Kasjan <kasjan@kasjan.pl>

it causes only when you while configuring ispcp select other directory for www than /var/www/virtual (i choose /home/virtual/ and have that same problem)

also logs tells us about it (/var/log/auth.log)

May 27 16:51:43 kasjan proftpd[26611]: kasjan (::ffff:127.0.0.1[::ffff:127.0.0.1]) - USER tmp_46599aff78740@dev.kasjan.pl: Login successful. May 27 16:51:43 kasjan proftpd[26611]: kasjan (::ffff:127.0.0.1[::ffff:127.0.0.1]) - notice: unable to use '~/' [resolved to '/var/www/virtual/dev.kasjan.pl/']: No such file or directory May 27 16:51:43 kasjan proftpd[26611]: kasjan (::ffff:127.0.0.1[::ffff:127.0.0.1]) - Preparing to chroot to directory '~/' May 27 16:51:43 kasjan proftpd[26611]: kasjan (::ffff:127.0.0.1[::ffff:127.0.0.1]) - tmp_46599aff78740@dev.kasjan.pl chroot("~/"): No such file or directory May 27 16:51:43 kasjan proftpd[26611]: kasjan (::ffff:127.0.0.1[::ffff:127.0.0.1]) - error: unable to set default root directory May 27 16:51:43 kasjan proftpd[26611]: kasjan (::ffff:127.0.0.1[::ffff:127.0.0.1]) - FTP session closed.

check your logs

05/27/07 17:08:22 changed by Kasjan <kasjan@kasjan.pl>

symbolic link helped here:

ln -s /home/virtual /var/www/virtual

check your systems

sorry for adding post under post

05/28/07 08:59:22 changed by rats

  • status changed from reopened to closed.
  • resolution set to fixed.

symbolic link helps:

ln -s /home/virtual /var/www/virtual

06/02/07 19:59:15 changed by sawoy

just for info: look as solution from ticket 252 -- think it can fix problem with:

Warning: ftp_rawlist() expects parameter 1 to be resource, boolean given in /var/www/ispcp/gui/include/vfs.php on line 271

07/07/07 03:35:26 changed by anonymous

05/05/08 00:43:10 changed by kocslpxea


Add/Change #287 (choosing DIR not working when adding a new ftp-user)




Action