YetiShare v4.3 - Installation Script

Use these pages to install or upgrade the script. For new installations you can use the wizard below to automatically setup the script. For upgrades you'll need to manually apply the changes. Select your installation type below to start.

Checking Script Requirements (New Install)

PHP Version: 5.6.29RC1
System: Linux megaupload.us 2.6.32-642.11.1.el6.x86_64 #1 SMP Fri Nov 18 19:25:05 UTC 2016 x86_64
Session Support: Enabled
Server API: Apache 2.0 Handler
PHP PDO MySQL Module: Found
PHP GD Extension: Found
PHP FreeType Support: Found
PHP JSON Support: Found
PHP FTP Support: Found
PHP Safe Mode OFF: OFF
PHP Memory Limit: OK
Curl Support: Found
Mcrypt Support: Found
Detect Site Url: www.megaupload.us
Install Path: www.megaupload.us
Use HTTPS: No
 

Folder/File Permissions

/_config.inc.php Writable
/files/ Writable
/plugins/ Writable
/core/logs/ Writable
/core/cache/ Writable
 
-  Click on the start button to begin the new installation

Upgrade from v3.x to v4.0

Use this installation document if you already run on YetiShare v3.x. The structure of YetiShare v4.0 has substantially changed from previous versions, so to ensure you keep all your files & data please follow the guidelines below. Note: If you run multiple file servers, follow this process for all of them.


[top]

Step 1. Backup Existing Code & Database.


VERY IMPORTANT! - Before you do any changes to the code at all, ensure you've taken a backup copy of the site, files & database.


[top]

Step 2. Uncompress Downloaded Zip File.


Open the downloaded zip file on your computer and extract the files into a new folder on your desktop. If you can't open zip files you may need to download a zip client such as WinZip.


[top]

Step 3. Import Database Patches.


Within your hosting control panel, load phpMyAdmin and select your new database. In the right-hand section click on 'import'. Attach the the relevant sql patches from the directory `/install/resources/upgrade_sql_statements/` and submit the form. Choose the patches between your current script version number and the latest, ensuring you do them in version number order.


[top]

Step 4. Remove Existing Code.


The code structure of v4.0 has changed so it's easier to remove the existing code and re-upload new. Delete everything from your install apart from:

  • _config.inc.php
  • /files/


[top]

Step 5. Upload Files.


Using an FTP client such as FileZilla, upload all the files to your webroot (normally public_html folder) apart from the '/install' folder and the '/_config.inc.php' file.


[top]

Step 6. Set Folder Permissions.


Using your FTP client, set permissions to CHMOD 777 on the following folders: '/files', '/core/logs', '/core/cache' & '/plugins'.


[top]

Step 7. Update Version Number.


In _config.inc.php update the _CONFIG_SCRIPT_VERSION value to the latest version number, i.e. 4.1.


[top]

Step 8. Setup Cron Tasks.


YetiShare uses a number of cron (background) tasks to ensure redundant files are deleted, accounts are auto downgraded etc. Details of these are below. You can leave these until later if you want to test the upgrade first. See here for more information on cron tasks.

  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/auto_prune.cron.php >> /dev/null 2>&1
  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/create_internal_notifications.cron.php >> /dev/null 2>&1
  • 0 * * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/downgrade_accounts.cron.php >> /dev/null 2>&1
  • */5 * * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/process_file_queue.cron.php >> /dev/null 2>&1


[top]

Step 9. Redownload Plugins.


If you have any plugins, redownload them via your account on yetishare.com. Manually upload them via FTP into /plugins/[plugin_name]/, i.e. /plugins/rewards/ or /plugins/mediaconverter/. Apply any database changes in order from /plugins/rewards/offline/upgrade_sql_statements/


Congratulations, you now completed the upgrade to v4.0. Feel free to contact us or post of our forum if you have any problems.

Manual Installation: (New Install)


[top]

Step 1. Uncompress Downloaded Zip File.


Open the downloaded zip file on your computer and extract the files into a new folder on your desktop. If you can't open zip files you may need to download a zip client such as WinZip.

In addition, make sure that the .htaccess file in the root of the zip file is also extracted. Some operating systems hide files starting a dot by default. This file is needed for the mod_rewrite rules in the script and it wont work without it. You may need to amend your OS settings to show these files if you can't see it in the zip archive.


[top]

Step 2. Create Database.


Using your hosting control panel, login and create a new MySQL database. Then create a database user and assign full privileges for the user on the database. Note the details for the next stage.


[top]

Step 3. Import Database Structure.


Within your hosting control panel, load phpMyAdmin and select your new database. In the right-hand section click on 'import'. Attach the .sql file located at /install/resources/database.sql and submit the form. Your database should now be ready.


[top]

Step 4. Update Config File.


Update "_config.inc.php" in your extract script code with your site url and the full path to the root of the script. In most instances, this will be your domain name (for _CONFIG_SITE_HOST_URL & _CONFIG_SITE_FULL_URL) in the format www.mydomain.com. Don't include the http:// or the trailing forward slash.

Set your database connection details in the same file. (host, user, password & db name)


[top]

Step 5. Upload Files.


Using an FTP client such as FileZilla, upload all the files to your webroot (normally public_html folder) apart from the 'install' folder.


[top]

Step 6. Set Folder Permissions.


Using your FTP client, set permissions to CHMOD 777 on the following folders: '/files', '/core/logs', '/core/cache' & '/plugins'.


[top]

Step 7. Setup Cron Tasks.


YetiShare uses a number of cron (background) tasks to ensure redundant files are deleted, accounts are auto downgraded etc. Details of these are below. You can leave these until later if you want to test the installation first. See here for more information on cron tasks.

  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/auto_prune.cron.php >> /dev/null 2>&1
  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/create_internal_notifications.cron.php >> /dev/null 2>&1
  • 0 * * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/downgrade_accounts.cron.php >> /dev/null 2>&1
  • */5 * * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/process_file_queue.cron.php >> /dev/null 2>&1
  • 0 1 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/create_email_notifications.cron.php >> /dev/null 2>&1


[top]

Step 8. Admin Area Access Details.


The admin area can be accessed by adding "/admin/" onto the domain - i.e. yourdomain.com/admin/

Admin area access details:
- user: admin
- pass: password

We'd recommend that you change the admin password to something more secure on first login.


Congratulations, you now completed the installation. Feel free to contact us or post of our forum if you have any problems.

Manual Installation: (Upgrade To Existing Code)


[top]

Step 1. Backup Existing Code & Database.


VERY IMPORTANT! - Before you do any changes to the code at all, ensure you've taken a backup copy of the site, files & database.


[top]

Step 2. Uncompress Downloaded Zip File.


Open the downloaded zip file on your computer and extract the files into a new folder on your desktop. If you can't open zip files you may need to download a zip client such as WinZip.


[top]

Step 3. Import Database Patches.


Within your hosting control panel, load phpMyAdmin and select your new database. In the right-hand section click on 'import'. Attach the the relevant sql patches from the directory `/install/resources/upgrade_sql_statements/` and submit the form. Choose the patches between your current script version number and the latest, ensuring you do them in version number order.


[top]

Step 4. Upload Files.


Using an FTP client such as FileZilla, upload all the files to your webroot (normally public_html folder) apart from the '/install' folder and the '/_config.inc.php' file.


[top]

Step 5. Set Folder Permissions.


Using your FTP client, set permissions to CHMOD 777 on the following folders: '/files', '/core/logs', '/core/cache' & '/plugins'.


[top]

Step 6. Update Version Number.


In _config.inc.php update the _CONFIG_SCRIPT_VERSION value to the latest version number, i.e. 4.1.


[top]

Step 7. Setup Cron Tasks.


YetiShare uses a number of cron (background) tasks to ensure redundant files are deleted, accounts are auto downgraded etc. Details of these are below. You can leave these until later if you want to test the upgrade first. See here for more information on cron tasks.

  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/auto_prune.cron.php >> /dev/null 2>&1
  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/create_internal_notifications.cron.php >> /dev/null 2>&1
  • 0 * * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
  • 0 0 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/downgrade_accounts.cron.php >> /dev/null 2>&1
  • */5 * * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/process_file_queue.cron.php >> /dev/null 2>&1
  • 0 1 * * * php /home/admin/web/megaupload.us/public_html/admin/tasks/create_email_notifications.cron.php >> /dev/null 2>&1


Congratulations, you now completed the upgrade. Feel free to contact us or post of our forum if you have any problems.