INSTALL

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

XFileSharing Pro 3.

Requirements:
* Perl > 5.005 ver. [http://www.perl.com/download.csp]
* Extra Perl modules: LWP, DBI, DBD::mysql, perl-Digest-SHA
* MySQL database >= 4.1 ver. [http://www.mysql.com]
* Apache mod_rewrite module, mod_headers module (optional)
* .htaccess files enabled [http://www.tutorio.com/tutorial/enable-mod-
rewrite-on-apache]
* GD lib, GD perl module (optional) [http://www.libgd.org/Downloads]
* LWP::Protocol::https
* Cache::Memcached
* Mail::IMAPClient

You can install required perl modules through SSH console manually:

1. YUM way (recommended)


yum install perl-CGI perl-libwww-perl perl-DBI perl-DBD-MySQL perl-GD perl-Cache-
Memcached perl-Digest-SHA perl-LWP-Protocol-https

2. CPAN way
perl -MCPAN -e shell
install CGI
install LWP
install DBI
install DBD::mysql
install GD
install Digest::MD5
install LWP::Protocol::https

*** Main-Server + File-Server Installation ***

1) Copy (upload) all files and folders from "cgi-bin" into your cgi-bin folder
(folder where perl scripts running)
Copy (upload) all files and folders from "html" into your html (public_html)
folder (folder with HTML files)

2) Set install.cgi permissions to 755. Then open it in your browser (e.g.


http://server.com/cgi-bin/install.cgi)
Follow the instructions so all 4 steps will be OK.

3) After complete install delete install.cgi, install.sql, upgrade_32_33.cgi,


upgrade_32_33.sql files for security reasons.

4) Right after install you'll get message "there are no servers available for
upload" on index page.
Login with admin account and go to "Server Management" section, click "Add new
server".

5) Now go to the "Site Settings" section and set up your server configuration.

*** Extra File-Server Installation ***

1) Copy (upload) all files and folders from "FS-dist/cgi-bin" into FileServer cgi-
bin folder.
Copy (upload) all files and folders from "FS-dist/html" into FileServer html
(public_html) folder.

2) Chmod install_fs.cgi to 755 and run it in browser.


It will set correct permissions for other files and put correct paths into
config.

3) Login with admin account and go to "Server Management" section, click "Add new
server".
Put your FS cgi-bin and files URLs there, then Main server will test & update
FileServer configuration.

INFO: Please make sure that Apache's mod_headers is enabled if you're experiencing
the problem
that some files are getting played instead of being downloaded.

*** Multi-Drive Configuration Notices ***

Please take the following actions if you have more than one drive on a single file
server to be used for uploads:

1) Mount each of additional drives into the file server's operating system.
We suggest to use the following mount point naming convention: /pool/storageXX/

2) Create the "temp" and "uploads" directories in each drive's mount point and make
them writeable for Apache user:
mkdir /pool/storage01/temp/
mkdir /pool/storage01/uploads/
<...>
chown -R apache:apache /pool/storage*/

3) Create a symlink for each drive in your fs-dist installation's temp and uploads
directories:
ln -s /pool/storage01/temp/ /var/www/cgi-bin/temp/01
ln -s /pool/storage01/uploads/ /var/www/cgi-bin/uploads/01
<...>
The system will automatically detect that and stop writing to your root "temp"
and "uploads" directories.
If you need

*** Upgrade XFS Pro from 3.2 to 3.3 ***

1) IMPORTANT: Backup all .cgi, .pm files, main.css, images and Templates folders
and make a dump of your SQL database.

2) Upload all new files from cgi-bin, html folders over old ones except "temp" and
"uploads" folders and XFileConfig.pm and XFSConfig.pm files.
Update new XFileConfig.pm and XFSConfig.pm files with your old settings
manually.
Update all your extra FileServers files too from FS-dist folder.

3) Chmod 755 upgrade_32_33.cgi file. Run /cgi-bin/upgrade_32_33.cgi in browser to


upgrade the database. Should see "DONE." if everything's fine.
If it is, then delete upgrade_32_33.cgi and upgrade_32_33.sql for security
purposes.

*** Payment Gateways mod ***


The installation instruction is now moved in a separate INSTALL.TXT which is
bundled with a Payment Gateways package.

--------------------------------

*** Video & Encoding mod ***


The installation instruction is now moved in a separate INSTALL.TXT which is
bundled with a Video & Encoding mod package.

--------------------------------

*** Short link mod ***


1) Fill the form in admin_settings -> Mods -> Short links
2) Setup the short domain so that it will be pointing in the same place as the
primary one

-------------------------------

If you want to modify script layout you can find .html files in Templates
directory:
main.html - main design file, other templates been inserted into it
upload_form.html - index page with upload form
upload_results.html - page with generated links after upload
download0.html - pre-download page with [Premium] & [Free] download buttons
download1.html - page with file details, captcha/password fields
download2.html - page with generated direct file link
message.html - error/status message page
delete_file.html - page showed when you're about to delete file with Delete Link
confirm_email.html - upload notification email to admin
confirm_email_user.html - upload notification email to recipient

html/uploader-top.html - page showing in top frame if Desktop Uploader


html/tmp/status.html - progress bar page

Also you can put any .html pages in Templates/Pages/LANGUAGE/ folder and access
them via URL: http://YOURSITE.com/pages/NEWPAGE.html where NEWPAGE.html is your
file.

Get more support at:

XFileSharing Forum: http://sibsoft.net/forum/xfilesharing-pro-f7.html


XFileSharing Site: http://sibsoft.net/xfilesharing.html
Ticket System: http://support.sibsoft.net/create_ticket.php
Knowledge Database: http://support.sibsoft.net/knowledge_base.php?category_id=1

You might also like