PDA

View Full Version : EE Home FTP Server Problems (open_basedir restriction)


Fujisawa
5th of June 2004 (Sat), 05:09
Hi,

I get the following effor using RC5, I was previously using RC4 but messed up installation of this and started again. Everything used to work ok. The setup of the FTP server works ok, I don't get any errors when using this path '/httpdocs/gallery/test' but when the path '/httpdocs/gallery' is ued I get the following error as soon as EE trued to upload the 1st test image..

FAILED Reason: ftp_put(): open_basedir restriction in effect. File(ftp_test_files/ee_test0.jpg) is not within the allowed path(s): (/usr/local/psa/home/vhosts/fujisawa-power.com/httpdocs:/tmp)

PHP isn't in safe mode and it worked ok in RC4. Where am I going wrong?

The entire error thread is below..


msg 1104 | ftp: EE PROGRAM SERVER: FTP TEST PROCEDURE ENDED
msg 1103 | ftp: EE PROGRAM SERVER: DISCONNECT OK (close)
msg 1102 | ftp: EE PROGRAM SERVER: Working directory changed to '/httpdocs/gallery/outputstyles'
msg 1101 | ftp: EE PROGRAM SERVER: DELETE OF REMOTE TEST IMAGE 'ee_test4.jpg' FAILED. Reason: ftp_delete(): DELE: Couldn't get file status for ee_test4.jpg
msg 1100 | ftp: EE PROGRAM SERVER: DELETE OF REMOTE TEST IMAGE 'ee_test3.jpg' FAILED. Reason: ftp_delete(): DELE: Couldn't get file status for ee_test3.jpg
msg 1099 | ftp: EE PROGRAM SERVER: DELETE OF REMOTE TEST IMAGE 'ee_test2.jpg' FAILED. Reason: ftp_delete(): DELE: Couldn't get file status for ee_test2.jpg
msg 1098 | ftp: EE PROGRAM SERVER: DELETE OF REMOTE TEST IMAGE 'ee_test1.jpg' FAILED. Reason: ftp_delete(): DELE: Couldn't get file status for ee_test1.jpg
msg 1097 | ftp: EE PROGRAM SERVER: DELETE OF REMOTE TEST IMAGE 'ee_test0.jpg' FAILED. Reason: ftp_delete(): DELE: Couldn't get file status for ee_test0.jpg
msg 1096 | ftp: EE PROGRAM SERVER: Modified data retrieve successfull
msg 1095 | ftp: EE PROGRAM SERVER: Size retrieve successfull
msg 1094 | ftp: EE PROGRAM SERVER: UPLOAD OF 'ee_test4.jpg' FAILED. Reason: ftp_put(): open_basedir restriction in effect. File(ftp_test_files/ee_test4.jpg) is not within the allowed path(s): (/usr/local/psa/home/vhosts/fujisawa-power.com/httpdocs:/tmp)
msg 1093 | ftp: EE PROGRAM SERVER: Modified data retrieve successfull
msg 1092 | ftp: EE PROGRAM SERVER: Size retrieve successfull
msg 1091 | ftp: EE PROGRAM SERVER: UPLOAD OF 'ee_test3.jpg' FAILED. Reason: ftp_put(): open_basedir restriction in effect. File(ftp_test_files/ee_test3.jpg) is not within the allowed path(s): (/usr/local/psa/home/vhosts/fujisawa-power.com/httpdocs:/tmp)
msg 1090 | ftp: EE PROGRAM SERVER: Modified data retrieve successfull
msg 1089 | ftp: EE PROGRAM SERVER: Size retrieve successfull
msg 1088 | ftp: EE PROGRAM SERVER: UPLOAD OF 'ee_test2.jpg' FAILED. Reason: ftp_put(): open_basedir restriction in effect. File(ftp_test_files/ee_test2.jpg) is not within the allowed path(s): (/usr/local/psa/home/vhosts/fujisawa-power.com/httpdocs:/tmp)
msg 1087 | ftp: EE PROGRAM SERVER: Modified data retrieve successfull
msg 1086 | ftp: EE PROGRAM SERVER: Size retrieve successfull
msg 1085 | ftp: EE PROGRAM SERVER: UPLOAD OF 'ee_test1.jpg' FAILED. Reason: ftp_put(): open_basedir restriction in effect. File(ftp_test_files/ee_test1.jpg) is not within the allowed path(s): (/usr/local/psa/home/vhosts/fujisawa-power.com/httpdocs:/tmp)
msg 1084 | ftp: EE PROGRAM SERVER: Modified data retrieve successfull
msg 1083 | ftp: EE PROGRAM SERVER: Size retrieve successfull
msg 1082 | ftp: EE PROGRAM SERVER: UPLOAD OF 'ee_test0.jpg' FAILED. Reason: ftp_put(): open_basedir restriction in effect. File(ftp_test_files/ee_test0.jpg) is not within the allowed path(s): (/usr/local/psa/home/vhosts/fujisawa-power.com/httpdocs:/tmp)
msg 1081 | ftp: EE PROGRAM SERVER: Directory 'ee_ftp_test_directory_creation' removed
msg 1080 | ftp: EE PROGRAM SERVER: Working directory changed to '/httpdocs/gallery'

Pekka
5th of June 2004 (Sat), 17:26
By default you have in php.ini

;open_basedir =

if it is

open_basedir =

or

open_basedir = /some/path/

you'll restrict file access to specific path(s). This directive is NOT affected by whether Safe Mode is turned On or Off. See http://fi.php.net/features.safe-mode

Check also that EE's temp directories have 777 permissions.