Installation guide for GrouponPro
Server Requirements
Installation Steps
Setting up files
Unzip the zip file
Upload the unzipped files in server.
Need write permission for following folders
(Need write permission for php/apache; can be chmod 655 or 755 or 777 depending upon server configuration)
app/media
app/tmp
app/webroot/js
app/webroot/img
app/webroot/css
app/webroot/files
app/vendors/shells/cron.sh
core/cake/console/cake
core/vendors/securimage
Change following item in app/config/config.php
$config['site']['domain'] = 'grouponpro'; // change to your domain name (only name like "yourdomain"). also you need to set this only when site routing url is set as subdomain.
Updating site logo
There are few places where site logo are located. To change those logo,
you need to replace your logo with exact name and resolution in the
following mentioned directories.
app/webroot/img/blue-theme - logo-email.png - 186 x 41
app/webroot/img/blue-theme - logo.png - 335 x 69
app/webroot/img/blue-theme - logo-black.png - 335 x 69
app/webroot/img/mobile - logo-blue.png - 172 x 26
Setting up database
The sql file
'grouponpro_with_empty_data.sql' is also attached, which is located in
'app/config/sql'. import the database through phpmyadmin or any other
tool.
After importing the sql database, do
not truncate any data directly from the database. All the data in the
imported database are required. Removing unwanted cities can be done
through administrator end which will be explained later in the following
steps.
In app/config/database.php, we need
to change host, login, password, database. Update that in 4 places (For
setting up master/slave setup, get professional help and it's not
thoroughly tested)
(
'host' => 'localhost',
'login' => 'dbuser',
'password' => 'dbpassword',
'database' => 'grouponpro'
)
Reset your Apache DocumentRoot to /public_html/app/webroot/ by following means:
If you're on dedicated host, reset DocumentRoot in httpd.conf with /public_html/app/webroot/
If you're on shared host, reset your virtual directory to point to /public_html/app/webroot/
Note: This requirement is not mandatory, but highly preferred to skip the following tweaks in htaccess files.
Again, no need to tweak 'htaccess' files.
RewriteBase /myfolder/app/
RewriteBase /myfolder/
Setup the cron with anyone of the following command,
*/2 * * * * /home/public_html/app/vendors/shells/cron.sh 1>> /home/public_html/app/tmp/error.log 2>> /home/public_html/app/tmp/error.log
Also you need to edit '/home/public_html/app/vendors/shells/cron.sh' file to change the folder path of each command.
Note: Please replace ”/home/public_html/” with your folder path.
(or)
php4 is enabled for shell command in some server, above command will not work. In that case, you can use anyone of the following commands,
Check php installed path in server using ssh command.
which php or which php5. It will give output like /usr/bin/php5.
vi /home/public_html/core/cake/console/cake
exec php -q ${LIB}cake.php -working "${APP}" "$@"
In the above file, change the php path with your server php5 installed path,
exec /usr/bin/php5 -q ${LIB}cake.php -working "${APP}" "$@"
(or)
*/2 * * * * wget http://yourdomain.com/cron/update_deal
(or)
*/2 * * * * lynx http://yourdomain.com/cron/update_deal
(or)
*/2 * * * * curl http://yourdomain.com/cron/update_deal
username: admin
password: agriya
Site
Default city
Contact Email Address
Email Address
To change the email address of the site, select 'settings → site' and change the 'From Email Address'. Please refer
Admin Settings Site
To change the email address for
individual emails from the site, It is located in 'Masters → Email
Templates', give the email address you want to give in each template.
Leaving it as ##FROM_EMAIL## will take email address commonly set in
settings which we have done in the previous step.
Subscriptions
To disable three steps subscriptions, select 'settings → site' and uncheck the 'Enable three step subscription'. Please refer
Admin Settings Site
Facebook
Application Key Creation
Setting up keys in our site
Update the Facebook settings with the created Facebook details such as
API key and Secret key.
Once you saved the data with '
API key' and 'Secret key', click the link 'Update Facebook Credentials' in the same page (please refer
Update Facebook Credentials),
you will be then asked to login into your Facebook account and you need
to login in the Facebook account where you want the deal to get posted.
After the process complete following details will update automatically
'Facebook Access Token' and 'Facebook User ID'. Please refer
Update Facebook Credentials
Twitter
Application Key Creation
Setting up keys in our site
Friends
Yahoo Application Key Creation
-
Update the settings with the created
Yahoo application details such as 'Application id', 'Consumer key' and
'Consumer secret'. Please refer
Update Yahoo Credentials
MSN Application Key Creation
-
Update the settings with the created MSN application details such as 'Application id' and 'Application secret'. Please refer
Update MSN Credentials
Bitly
-
To change the 'Bitly Username' and '
API key' details, click 'settings → Bitly' and change the details.
If you want to give Facebook or
Twitter link separately for each cities, select cities in sidebar under
masters. Search the city you want to change and click edit to update the
'Facebook
URL' or 'Twitter
URL'.
If you want to post deals on your
Facebook wall for particular city then click 'Update Facebook
Credentials', you will be then asked to login into your Facebook account
(please refer
Update Facebook Credentials). The deal will be posted in Facebook wall for currently logged in Facebook account when deal gets opened. Please refer
Update Facebook Credentials
If you want to post deals for
particular city then click 'Update Twitter Credentials', you will be
then asked to login into your Twitter account (please refer
Update Twitter Credentials). The deal will be posted in the currently logged in Twitter account when deal gets opened. Please refer
Update Twitter Credentials
Click the 'Payment Gateways' link at the sidebar under 'Payment'. You need to change the PayPal mode (live or test),
API details, Payee account and Receiver emails in this page.
AuthorizeNet, CreditCard, PayPal and Wallet options will be displayed here.
Hover and click 'edit' to modify the settings for each of them.
PayPal
-
PayPal Payee details and PayPal
API Details will be present in Paypal list. Please refer
PayPal Settings
Credit Card 'DirectPay' Details will be present in credit card list. Please refer
Credit Card Settings
-
Also you need to check the things mentioned in screenshots in your PayPal account. Please refer
PayPal Setup
To setup PayPal so that my user will
automatically be returned to my site without needing to click any
further confirmation button in PayPal? / to setup PayPal Auto Return
URL. Please refer
PayPal Auto Return Setup.
Authorize.Net
-
Update Authorize Net Api Key and Authorize Net Trans Key in edit AuthorizeNet page.
While adding a credit card a
transaction is generated and submitted to the processor with the amount
of $0.00 or $0.01. If successful, the transaction is immediately voided.
Visa transactions are being switched from $0.01 to $0.00 for all
processors. All other credit card types use $0.01.
-
Wallet