Re: [openupload-devel] require proper instruction
Status: Beta
Brought to you by:
tsdogs
|
From: Alessandro B. <ts...@br...> - 2008-11-20 12:17:13
|
Dear cg road,
cg road ha scritto:
> Dear Sir,
>
> As per your installation instruction in openupload install file
> * Copy all files to somewhere which is accessible from the web (i.e.
> /var/www/html/openupload)
Ok this is complex to explain. Basically:
Install instructions also state this:
* BIG FAT NOTE: This procedure is aimed to let you test the program
functionality.
Once this program is right for you, read the MULTISITE
INSTALLATION to avoid security issues.
You should make sure the files other than "www" are not directly
accessible via WEB
More specifically this are the most important:
"data" directory where files are stored
"txtdb" if a flat txt database is used
So, the instructions at the top are for testing the application fast
(QUICK START :-) ). Production servers should only publish the www
directory contents.
- Install the whole app in /usr/local/share/openupload and publish only
the www folder.
Either copying the www/* content to the DocumenRoot (i.e. /var/www/html)
of your web server (or subfolder) [1]
Or (better) by creating a configuration which points to the www folder [2]
so only the files under the www folder can be accessed by the user.
Then verify the config.inc.php points to the correct paths like:
[1] If you copy the files configuration should look something like this:
// this points to the installation directory
$CONFIG['INSTALL_ROOT'] = '/usr/local/share/openupload';
// this points to where the config.inc.php and index.php files are
$CONFIG['WEB_ROOT'] = '/var/www/html';
[2] If you create a web server configuration
file: '/etc/httpd/conf.d/openupload.conf'
Alias /upload /usr/local/share/openupload/www
<Directory /usr/local/share/openupload/www>
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride Options
</Directory>
then the config.inc.php should be something like
// this points to the installation directory
$CONFIG['INSTALL_ROOT'] = '/usr/local/share/openupload';
// this points to where the config.inc.php and index.php files are
$CONFIG['WEB_ROOT'] = '/usr/local/share/openupload/www';
$CONFIG['WWW_SERVER'] = 'http://your.web.server.com';
$CONFIG['WWW_ROOT'] = '/upload';
And point your browser to:
http://your.web.server.com/upload
I know documentation is lacking, I'll be updating it once the
application is stable enough.
>
> but your php configuration says that the path is /usr/local/share/openupload
> after configuration I am able to login in openupload but http error log say
>
> [Thu Nov 20 12:04:40 2008] [error] [client 61.11.35.191] PHP Notice:
> Undefined index: debug_acl in
> /usr/local/share/openupload/lib/main.inc.php on line 273,
>
This is more a programming issue (php notices, can usually be ignored),
but of course they are bad if the error_reporting is to be viewd in the
browser. It's a small "bug" I'll be removing.
Though this is not an issue which prevents the application from running
properly.
I suppose that basically the application is working, you only wanted
clarification on how to install it properly, right?
Hoping I clarified (and did not add more confusion).
Regards,
Alessandro
|