Ticket #2111 (closed Bug: invalid)

Opened 6 years ago

Last modified 6 years ago

File upload problem when using tilde in path

Reported by: bwit Owned by:
Priority: Normal Milestone:
Component: File Browser Version:
Keywords: Pending WorksForMe Cc: ai4u@…

Description

I have a site on IP and the DNS is not resolved on Linux server using PHP . It is like : http://an.I.P.Address/~username

When I use FCKEDITOR and go to File Manager it shows Permission Denied and would not let me upload the files/images .

However I have the "image" folder on public_html with 777 permission.

As soon as the DNS is resolved the problem goes away automatically .

Any help will be appreciated

Change History

comment:1 Changed 6 years ago by w.olchawa

  • Keywords Pending WorksForMe added
  • Priority changed from High to Normal

The error occurs probably due to your server side configuration. Check lines 38 and 44 in config.php (editor\filemanager\connectors\php\config.php) and see what path is set in: $Config['UserFilesPath'] = '/' ; and $Config['UserFilesAbsolutePath'] = '' ;

If you'll set them the properly it's mostly possible that the bug will no longer occur. Let us know what are your results.

comment:2 Changed 6 years ago by bwit

Thanks for the Inputs . Can you please inform what should I write in these becuase my Server Guys say that In preview mode(using tilde) you should use Absolute Path and not the Relative Path .

My Absolute web path is :

http://IPADDRESS/~username/

and my Document Root when DNS is resolved is : "/home/username/public_html" and without DNS resolved is : "/usr/local/apache/htdocs"

At present my settings are :

$ConfigUserFilesPath? = '/' ; $ConfigUserFilesAbsolutePath? = ;

I tried writing $ConfigUserFilesAbsolutePath? = 'http://IPADDRESS/~username/' ; But it gave me wrror that Directory "http:/" cannot be created.

Please help.

comment:3 Changed 6 years ago by wwalc

Set $Config['UserFilesAbsolutePath'] to the absolute server path (not the url), e.g.: /usr/local/apache/htdocs/

comment:4 Changed 6 years ago by alfonsoml

  • Status changed from new to closed
  • Resolution set to invalid

Expired

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy