From Proxscripts Documentation
Revision as of 11:07, 21 February 2015 by Maksa (talk | contribs)
Jump to: navigation, search
Installation Steps
  • Download ProXCore script from your ProXScripts account from the following path :
    • Go to your ProXScripts account
    • Click on the "Downloads" link in the menu
    • You will be able to see the products available for download. Click on "<a href="#">More...</a>"
    • You can see the script version and click on "<a href="#">Download Now</a>" to download your script.
  • Unzip downloaded and upload all files present in the folder named "upload " :
    • FTP to your webhost account. Upload all the files to public_html directory.

Change the permissions (CHMOD) of The following Files/Folders : </br></br> settings.php - Writeable (666)</br> app/webroot/db_backup/ - Writeable (707)</br> app/webroot/img/testimonials - Writeable (777)</br> app/webroot/img/bankwire - Writeable (777)</br> app/webroot/img/banners - Writeable (777)</br> app/webroot/img/member - Writeable (777)</br> app/webroot/img/support - Writeable (777)</br> app/tmp(and all of its subfolders/files) - Writeable (777)</br></br> (Permissions of following files should be changed so that admin can edit template files from adminpanel.)</br> app/View/Themed/[THEMENAME]/Layouts/default.ctp - Writeable (646)</br> app/view/[FOLDER]/*.ctp - Writeable (646)</br> (Permissions of all the front side ctp files,the ones without 'adminpanel_' prefix, are to be set.)</br> (Permissions of following files should be changed so that admin can add new language phases from adminpanel.)</br> app/Locale/[LANGUAGE DIRECTORY]/default.po - Writeable (646)</br> (Permissions of files present in all the language directories are to be set.)

  • Create Database
    • During script installation, you will come across "Database Configuration". Enter your Host Name, Database Name, Username, Password and your database will be created. When you install the script, you will be prompted with
  • Run install/index.php File
    • [YOUR SITE URL]/install/index.php
  • Insert details
    • Insert the necessary details and follow the setup.
  • Your site is ready
    • Once the installation is complete, you can visit your site:
      • Admin Area - [YOUR SITE URL]/adminpanel/
      • Public/Member Area - [YOUR SITE URL]
  • Important
    • Delete the Install directory located in public_html/app/webroot/ directory and set the CHMOD of settings.php back to (644).
  • Most Important
    • Setting up cronjobs</br>Go through the following steps to set up cronjobs.
CRONJOB SETTINGS (For cPanel Users)
  • A) Login to your cPanel
  • B) Go to "Advanced" option and select cron jobs
  • C) Enter your email address in the cron email option.

You will receive a notification each time the cronjob runs on this email i.e. you will receive emails every day from your server.

In case if you do not receive any cron emails at the specified time for cronjobs, then kindly contact your hosting company to make sure that all cronjobs are running.

You will get notification every time cronjob runs on the specified email. i.e. you will get emails every day from your server.

Important Note :

  • Cronjobs are run from the server according to the time specified for them.
  • As per the time specified above, cronjobs run every day at 12 A.M. midnight. The script has an option to set your Time Zone.
  • All the records in the database are saved based on your selected Time Zone. We recommend not to change it once your website has started.
  • Whenever you change the Time Zone, make sure that your cronjobs run at 12 A.M. midnight according to the time zone you have set so that members get timely earnings. Contact Support Team before changing the Time Zone if you're Not Sure.
  • D) Set the following cronjobs as per your requirements after replacing your cPanel username with [USERNAME] with the following list one by one. (Exclude Angle brackets with USERNAME too.)
  • Autoresponder (Optional)

Sends autoresponder mails to the members of the site as per admin's settings. It is Useful for follow-ups.

Timing : Once a Day (0 0 * * *)

Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php autoresponder -app /home/[USERNAME]/public_html/app

  • Common (Recommended)

Does miscellaneous jobs such as clearing old logs, providing signup bonus and notifying members via an email when the credits of their banner/text ads are used up.

Timing : Once a Day (0 0 * * *)

Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php common -app /home/[USERNAME]/public_html/app

  • Currency (Optional)

Fetches the currency rates from ProXScripts.com and updates the currency rates in the site. Set if you plan to use multiple currencies in your site.

Timing : Once a Day (0 0 * * *) - Keep less time for quicker currency updates (Minimum every 12 hours)

Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php currency -app /home/[USERNAME]/public_html/app

Note :Currency cronjob fetches the latest currency rates from our site and updates them to your site. You can change the timing of the cronjob according to your requirements. Take a note that we update the rates on our site every 12 hours. So, do not keep the cronjob time less than that or there won't be any updates unless 12 hours are complete.
</div>

  • Regular Earning Days Plans (Recommended)**
 <p>Provides earnings to members of regular earning plans that are providing earnings every 'n' days. Not needed if you do not intend to use these type of plans.</p>
 <p>Timing : Once a Day  (0  0  *  *  *)</p>
 <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearndays stage1 -app /home/[USERNAME]/public_html/app</p>
  • Regular Earning Hourly Plans (Recommended)**

<p>Provides earnings to members of regular earning plans that are providing earnings every 'n' hours. Not needed if you do not intend to use these type of plans.</p> <p>Timing : Once an Hour (0 * * * *)</p> <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearnhours stage1 -app /home/[USERNAME]/public_html/app</p>

  • Regular Earning Daily Plans (Recommended)**

<p>Provides earnings to members of regular earning plans that are providing earnings daily. Not needed if you do not intend to use these type of plans.</p> <p>Timing : Once a Day (0 0 * * *)</p> <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearn stage1 -app /home/[USERNAME]/public_html/app</p>

  • Dynamic Earning Days Plans (Recommended)**
 <p>Provides earnings to members of dynamic earning plans that are providing earnings every 'n' days. Not needed if you do not intend to use these type of plans.</p>
 <p>Timing : Once a Day  (0  0  *  *  *)</p>
 <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearndays stage1 -app /home/[USERNAME]/public_html/app</p>
  • Dynamic Earning Hourly Plans (Recommended)**
 <p>Provides earnings to members of dynamic earning plans that are providing the earnings every 'n' hours. Not needed if you do not intend to use these type of plans.</p>
 <p>Timing : Once an Hour  (0  *  *  *  *)</p>
 <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearnhours stage1 -app /home/[USERNAME]/public_html/app</p>
  • Dynamic Earning Daily Plans (Recommended)**
 <p>Provides earnings to members of dynamic earning plans that are providing earnings daily. Not needed if you do not intend to use these type of plans.</p>
 <p>Timing : Once a Day  (0  0  *  *  *)</p>
 <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearn stage1 -app /home/[USERNAME]/public_html/app</p>
  • Jackpot Winner (Optional)
 <p>Randomly selects the winners of maturing jackpots, sends emails to them and informs the admin via an email.</p>
 <p>Timing : Once a Day  (0  0  *  *  *)</p>
 <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php jackpotwinner -app /home/[USERNAME]/public_html/app</p>
  • Mails (Recommended)
 <p>Used to send email reminders to members who have not confirmed their email addresses or who have not logged in for many days i.e. inactive members and who have not purchased anything from the site i.e. unpaid members.</p>
 <p>Timing : Once a Day  (0  0  *  *  *)</p>
 <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php mail -app /home/[USERNAME]/public_html/app</p>
  • Membership (Optional)
 <p>Sends membership payment reminder mails before the expiry date of the membership and automatically renews the memberships of the members who have allowed auto-renewals. Not needed if you do not plan to use memberships in your site.</p>
 <p>Timing : Once a Day  (0  0  *  *  *)</p>
 <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php membership -app /home/[USERNAME]/public_html/app</p>
  • Revenue Sharing Plans (Recommended)
 <p>Shares the earnings with revenue sharing plan members as per the plan settings. Not needed if you do not plan to use this type of plans.</p>
 <p>Timing :Once an Hour  (0  *  *  *  *) - Keep less time for quicker sharing but your server must be able to share with all members within the time frame.</p>
 <p>Path : php -q /home/[USERNAME]/public_html/app/Console/cake.php revenue -app /home/[USERNAME]/public_html/app</p>
  • Soload (Optional)
 <p>Sends solo ads to members of the site who have not unsubscribed from solo ads. Not needed if you do not plan to use soloads feature in your site.</p>
 <p>Timing :Once a Day  (0  0  *  *  *)</p>
 <p>Path :php -q /home/[USERNAME]/public_html/app/Console/cake.php soload -app /home/[USERNAME]/public_html/app</p>
 <p>These cronjobs are used to provide earnings to regular earning and dynamic earning plan position holders. To maintain the performance of the cronjobs, we have distributed them when data is huge. 3 stages are there for each of these 6 cronjobs. Initially, stage1 will run for each of them. When there will be more than 1 lac (one hundred thousand) positions for regular earning plans, you need to add 3 new cronjobs of stage2. Same way, when there will be more than 1 lac (one hundred thousand) positions for dynamic earning plans, you need to add 3 new cronjobs of stage2. They are shown below: 
</p> <p>Timing for each : Once an Hour (0 * * * *)</p>
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearndays stage2 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearnhours stage2 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearn stage2 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearndays stage2 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearnhours stage2 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearn stage2 -app /home/[USERNAME]/public_html/app
 <p>And when the respective positions are more than 2 lacs, stage3 should be launched. So, add more of them.</p>
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearndays stage3 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearnhours stage3 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dailyearn stage3 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearndays stage3 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearnhours stage3 -app /home/[USERNAME]/public_html/app
  • php -q /home/[USERNAME]/public_html/app/Console/cake.php dynamicearn stage3 -app /home/[USERNAME]/public_html/app

<p>Note :Please note that if you are using subdomain, you must put the corresponding folder name after public_html/ in the above lines.</p> <p>If you have any queries/problems, please log in to your ProXScripts account and create a support ticket.</p>