Advertisement
Guest User

Untitled

a guest
Apr 7th, 2017
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. XFileSharing Pro 2.4.1
  2.  
  3. Requirements:
  4. * Perl > 5.005 ver. [http://www.perl.com/download.csp]
  5. * Extra Perl modules: LWP, DBI, DBD::mysql, perl-Digest-SHA
  6. * MySQL database >= 4.1 ver. [http://www.mysql.com]
  7. * Apache mod_rewrite module, mod_headers module (optional)
  8. * .htaccess files enabled [http://www.tutorio.com/tutorial/enable-mod-rewrite-on-apache]
  9. * GD lib, GD perl module (optional) [http://www.libgd.org/Downloads]
  10. * LWP::Protocol::https
  11. * Cache::Memcached
  12.  
  13. You can install required perl modules through SSH console manually:
  14.  
  15. 1. YUM way (recommended)
  16. yum install perl-CGI perl-libwww-perl.noarch perl-DBI perl-DBD-MySQL perl-GD perl-Cache-Memcached
  17.  
  18. 2. CPAN way
  19. perl -MCPAN -e shell
  20. install CGI
  21. install LWP
  22. install DBI
  23. install DBD::mysql
  24. install GD
  25.  
  26.  
  27. *** Main-Server + File-Server Installation ***
  28.  
  29. 1) Copy (upload) all files and folders from "cgi-bin" into your cgi-bin folder (folder where perl scripts running)
  30. Copy (upload) all files and folders from "htdocs" into your htdocs (public_html) folder (folder with HTML files)
  31.  
  32. 2) Set install.cgi permissions to 755. Then open it in your browser (e.g. http://server.com/cgi-bin/install.cgi)
  33. Follow the instructions so all 4 steps will be OK.
  34.  
  35. 3) After complete install delete install.cgi, install.sql, upgrade_23_24.cgi, upgrade_23_24.sql files for security reasons.
  36.  
  37. 4) Right after install you'll get message "there are no servers available for upload" on index page.
  38. Login with admin account and go to "Server Management" section, click "Add new server".
  39.  
  40. 5) Now go to the "Site Settings" section and set up your server configuration.
  41.  
  42. 6) Cronjobs are now getting automatically added in the user's crontab by the installation script, so normally you don't have to do this point. But you may find this info useful if you're migrating from one server to another.
  43. 0 * * * * cd /var/www/cgi-bin;./cron.pl >/dev/null 2>&1
  44. 0 0 * * * cd /var/www/cgi-bin;./cron_deleted_email.pl >/dev/null 2>&1
  45. * * * * * cd /var/www/cgi-bin;./transfer.pl >/dev/null 2>&1
  46.  
  47. Note: You have to specify correct path to the cgi-bin folder (replace /var/www/cgi-bin to your local path).
  48.  
  49.  
  50.  
  51. *** Extra File-Server Installation ***
  52.  
  53. 1) Copy (upload) all files and folders from "FS-dist/cgi-bin" into FileServer cgi-bin folder.
  54. Copy (upload) all files and folders from "FS-disr/htdocs" into FileServer htdocs (public_html) folder.
  55.  
  56. 2) Chmod install_fs.cgi to 755 and run it in browser.
  57. It will set correct permissions for other files and put correct paths into config.
  58.  
  59. 3) Login with admin account and go to "Server Management" section, click "Add new server".
  60. Put your FS cgi-bin and files URLs there, then Main server will test & update FileServer configuration.
  61.  
  62. 4) Same as in the case of 'Main Server + File Server Installation', the cronjobs are now getting automatically added in the user's crontab by the installation script, so normally you don't have to do that. However, here is the info about how are the cronjobs that are installed by the script looking like in the case if something goes wrong.
  63. * * * * * cd /var/www/cgi-bin;./transfer.pl >/dev/null 2>&1
  64.  
  65. INFO: Please make sure that Apache's mod_headers is enabled if you're experiencing the problem
  66. that some files are getting played instead of being downloaded.
  67.  
  68.  
  69. *** Upgrade XFS Pro from 2.3 to 2.4 ***
  70.  
  71. 1) IMPORTANT: Backup all .cgi, .pm files, main.css, images and Templates folders and make a dump of your SQL database.
  72.  
  73. 2) Upload all new files from cgi-bin, htdocs folders over old ones except "temp" and "uploads" folders and XFileConfig.pm and XFSConfig.pm files.
  74. Update new XFileConfig.pm and XFSConfig.pm files with your old settings manually.
  75. Update all your extra FileServers files too from FS-dist folder.
  76.  
  77. 3) Chmod 755 upgrade_23_24.cgi file. Run /cgi-bin/upgrade_23_24.cgi in browser to upgrade the database. Should see "DONE." if everything's fine.
  78. If it is, then delete upgrade_23_24.cgi and upgrade_23_24.sql for security purposes.
  79.  
  80. Note: you might need to upgrade Nginx mod if you would like to use some of new features (connections & resume limitation from admin_settings, upload speed limitation).
  81.  
  82.  
  83. *** Payment Gateways mod ***
  84. The installation instruction is now moved in a separate INSTALL.TXT which is bundled with a Payment Gateways package.
  85.  
  86. --------------------------------
  87.  
  88. *** Video mod ***
  89. Video mod uses MPlayer to get video info/snapshots. You can install it from the root console:
  90. debian,ubuntu> apt-get install mplayer
  91. OR
  92. redhat,centos> yum install mplayer
  93.  
  94. Alternatively, you can get our static build of mplayer for x64 architecture:
  95. > wget http://sibsoft.net/xvideosharing/mplayer.gz
  96. > gzip -d mplayer.gz && chmod 755 mplayer && mv mplayer /usr/bin/
  97.  
  98. --------------------------------
  99.  
  100. *** Short link mod ***
  101. 1) Fill the form in admin_settings -> Mods -> Short links
  102. 2) Setup the short domain so that it will be pointing in the same place as the primary one
  103.  
  104. -------------------------------
  105.  
  106. If you want to modify script layout you can find .html files in Templates directory:
  107. main.html - main design file, other templates been inserted into it
  108. upload_form.html - index page with upload form
  109. upload_results.html - page with generated links after upload
  110. download0.html - pre-download page with [Premium] & [Free] download buttons
  111. download1.html - page with file details, captcha/password fields
  112. download2.html - page with generated direct file link
  113. message.html - error/status message page
  114. delete_file.html - page showed when you're about to delete file with Delete Link
  115. confirm_email.html - upload notification email to admin
  116. confirm_email_user.html - upload notification email to recipient
  117.  
  118. htdocs/uploader-top.html - page showing in top frame if Desktop Uploader
  119. htdocs/tmp/status.html - progress bar page
  120.  
  121. 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.
  122.  
  123. Get more support at:
  124.  
  125. XFileSharing Forum: http://sibsoft.net/forum/xfilesharing-pro-f7.html
  126. XFileSharing Site: http://sibsoft.net/xfilesharing.html
  127. Ticket System: http://support.sibsoft.net/create_ticket.php
  128. Knowledge Database: http://support.sibsoft.net/knowledge_base.php?category_id=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement