chrometweaks.org

How do I upload my web site to iPage.com?

Click Here To View All Answers...


My question is How do I upload my web site to iPage.com? Thanks for any answer. Second question.. When I try to upload images (make a new catagory for example) I get to following message:.

Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home2/...../public_html/shop/images/laptops.jpg) is not within the allowed path(s): (/home2/....../:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/...../public_html/shop/admin/includes/classes/upload.php on line 94.

Warning: Cannot modify header information - headers already sent by (output started at /home/...../public_html/shop/admin/includes/classes/upload.php:94) in /home/....../public_html/shop/admin/includes/functions/general.php on line 20.

Is this some kind of setting problem??.

PLEASE HELP......

Comments (118)

I would like to know the answer too. Anyone here know what is the answer to that question. I'll do some investigation and get back to you if I find an useful answer. You should email the people at iPage as they probably could help you..

Comment #1

It appears you are tyring to upload to a tmp directory in your php lib. I would check your config file and make sure your tmp directory is pointing correctly. This seemps weir to me. Usually the tmp directory is right off the root path of your site, for instance:.

/home/public_html/tmp.

???.

JM..

Comment #2

Thanks for your reply but I think that's not the problem.....

The directory permissions are on 777. The file is uploaded to:.

(/home2/...../public_html/shop/images/laptops.jpg) so not to a temp dir.......

Comment #3

It is a permissions problem, maybe with your host. Maybe you do not have access to that path. That is what it is saying in the error message..

See:.

Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home2/...../public_html/shop/images/laptops.jpg) is not within the allowed path(s): (/home2/....../:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/...../public_html/shop/admin/includes/classes/upload.php on line 94..

Comment #4

Is this what you have for your images directory in your catalog/includes/config.php.

File.

Define('DIR_WS_IMAGES', 'images/');..

Comment #5

Yes:.

Define('HTTP_COOKIE_PATH', '/');.

Define('HTTPS_COOKIE_PATH', '');.

Define('DIR_WS_HTTP_CATALOG', '/');.

Define('DIR_WS_HTTPS_CATALOG', '');.

Define('DIR_WS_IMAGES', 'images/');.

Define('DIR_WS_ICONS', DIR_WS_IMAGES'icons/');.

Define('DIR_WS_INCLUDES', 'includes/');.

Define('DIR_WS_BOXES', DIR_WS_INCLUDES'boxes/');.

Define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES'functions/');.

Define('DIR_WS_CLASSES', DIR_WS_INCLUDES'classes/');.

Define('DIR_WS_MODULES', DIR_WS_INCLUDES'modules/');.

Define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES'languages/');..

Comment #6

Did you remove the paths to your http and https and catalog areas or is this an overlook?..

Comment #7

No these are set right. I've found the solution:.

It is a PHP setting. One which rejects PHP users to upload files in other dirs than the Basedir. This setting was OFF, when my host turned it ON the problem was solved!!!..

Comment #8

Could you please write the exact line in the PHP.ini so I can tell that to my iPage hosting provider....

Thanksss..

Comment #9

Line 194 (PHP.ini).

; open_basedir, if set, limits all file operations to the defined directory.

; and below. This directive makes most sense if used in a per-directory.

; or per-virtualhost web server configuration file. This directive is.

; *NOT* affected by whether Safe Mode is turned On or Off..

;open_basedir =..

Comment #10

I am having similar problems when uploading images using the admin tool. Here are my php.ini settings re: basedir:.

; open_basedir, if set, limits all file operations to the defined directory.

; and below. This directive makes most sense if used in a per-directory.

; or per-virtualhost web server configuration file. This directive is.

; *NOT* affected by whether Safe Mode is turned On or Off..

;open_basedir =.

Should open_basedir= be commented out? should a path be there??.

Can anyone help?.

Thanks...

Comment #11

When I try to upload images (make a new catagory for example) I get to following message:.

Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home2/...../public_html/shop/images/laptops.jpg) is not within the allowed path(s): (/home2/....../:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/...../public_html/shop/admin/includes/classes/upload.php on line 94.

Warning: Cannot modify header information - headers already sent by (output started at /home/...../public_html/shop/admin/includes/classes/upload.php:94) in /home/....../public_html/shop/admin/includes/functions/general.php on line 20.

Is this some kind of setting problem??.

PLEASE HELP......

Comment #12

CHMOD your images directory to 777 and refresh. Try this first, usually this is a simple permissions problem..

JM..

Comment #13


This question was taken from a support group/message board and re-posted here so others can learn from it.