LaraClassified

Geo Classified Ads CMS


Many thanks for your purchase. For a quick and easy installation we created for you this technical support. Please use the left navigation bar to browse through this support. Let’s go !

Before install make sure you have the proper server requirements

PHP 5.5 or greater
GD or Imagick
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension

File and folder permissions

Before Install

.env            777
.env.example    777
/storage        777
/bootstrap      777
/database       777
/public/uploads  777

After Install

.env          644
.env.example  644

Please visit here to know more about install on type of hosting your using

PHP 5.5 or greater
GD or Imagick
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension

Usual default path for config files.

Apache
/etc/apache2/sites-available/000-default.conf

Nginx
/etc/nginx/sites-enabled/site-name

On apache it will look something like this

<Directory "/var/www/html/public">
    AllowOverride All
</Directory>

Nginx

root "/var/www/public";
location / {
   try_files $uri $uri/ /index.php?$query_string;
}

Here are links to 2 great blogs that will also help you with the install.

PHP 5.5 or greater
GD or Imagick
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension

Before Install

.env            777
.env.example    777
/storage        777
/bootstrap      777
/database       777
/public/uploads  777

After Install

.env          644
.env.example  644

What is SMTP ?

Short for Simple Mail Transfer Protocol, a protocol for sending e-mail messages between servers. Most e-mail systems that send mail over the Internet use SMTP to send messages from one server to another; the messages can then be retrieved with an e-mail client using either POP or IMAP. In addition, SMTP is generally used to send messages from a mail client to a mail server. This is why you need to specify both the POP or IMAP server and the SMTP server when you configure your e-mail application.

In short it used to send emails to your site users..!!

You can use any SMTP service provider.

Please note that some hosting providers blocks port 25 or 465 in that case you have change your SMTP email server or contact your hosting provider

Using your own or some SMTP server

It will look something like this.

MAIL_DRIVER=smtp
MAIL_HOST=your-mail-host
MAIL_PORT=your-mail-port
MAIL_USERNAME=your-mail-username
MAIL_PASSWORD=your-mail-password
MAIL_ENCRYPTION=your-mail-encryption

Mandrill as SMTP

Personally we use mandrill and yes it’s free

MAIL_DRIVER=smtp
MAIL_HOST=your-mail-host
MAIL_PORT=your-mail-port
MAIL_USERNAME=your-mail-username
MAIL_PASSWORD=your-mail-password
MAIL_ENCRYPTION=your-mail-encryption
MAIL_DRIVER=mandrill
MANDILL_SECRET=your-mandill-secret
MAIL_HOST=your-mandrill-smtp-host
MAIL_PORT=your-mandrill-smtp-port
MAIL_USERNAME=your-mandrill-smtp-username
MAIL_PASSWORD=your-mandrill-smtp-password
MAIL_ENCRYPTION=your-mandrill-smtp-encryption

Amazon SES as SMTP

MAIL_DRIVER=smtp
MAIL_HOST=your-mail-host
MAIL_PORT=your-mail-port
MAIL_USERNAME=your-mail-username
MAIL_PASSWORD=your-mail-password
MAIL_ENCRYPTION=your-mail-encryption
SES_KEY=your-ses-key
SES_SECRET=your-ses-secret
SES_REGION=your-ses-region

Mailgun as SMTP

MAIL_DRIVER=smtp
MAIL_HOST=your-mail-host
MAIL_PORT=your-mail-port
MAIL_USERNAME=your-mail-username
MAIL_PASSWORD=your-mail-password
MAIL_ENCRYPTION=your-mail-encryption
MAIL_DRIVER=mailgun
MAILGUN_DOMAIN=your-mailgun-domain
MAILGUN_SECRET=your-mailgun-secret
MAIL_HOST=your-mailgun-smtp-host
MAIL_PORT=your-mailgun-smtp-port
MAIL_USERNAME=your-mailgun-smtp-username
MAIL_PASSWORD=your-mailgun-smtp-password
MAIL_ENCRYPTION=your-mailgun-smtp-encryption

Testing SMTP

Route::get('test', function(){
    Artisan::call('route:clear');
    \Illuminate\Support\Facades\Mail::raw('Testing Eamil', function ($message) {
        $message->to('foo@example.com');
    });
    return 'Success - Eamil is sent';
});

We support these payment providers.

Paypal is one of the best payment gateway in the world, it support all credit cards and accepted in many countries.

Please note that this support is for the Sandbox mode. Go to live mode !

PAYMENT_PROVIDER=paypal
PAYPAL_USERNAME=yourPayPalBusinessEamil@something.com
PAYPAL_PASSWORD=YourPassword
PAYPAL_SIGNATURE=YourSignatrue

[Screen shots]
paypal-sandbox-0-homepaypal-sandbox-1-dashboardpaypal-sandbox-2-accountspaypal-sandbox-3-access

Use Paypal in Live (in Production)

Make sure you have Business account before using paypal

Please follow these steps:

paypal-live-1-settingspaypal-live-2-api-updatepaypal-live-3-view-username-password-signaturepaypal-live-4-view-api-signature

In this section we will configure Social API key for.

Before that make sure you have valid account for these social networks.

You have to place all the config values and api keys in the .env file.

Facebook Example in .env file

FACEBOOK_CLIENT_ID=your-facebook-client_id
FACEBOOK_CLIENT_SECRET=your-facebook-client_secret

Google Example in .env file

GOOGLE_CLIENT_ID=your-google-client_id
GOOGLE_CLIENT_SECRET=your-google-client_secret

Twitter Example in .env file

TWITTER_CLIENT_ID=your-twitter-client_id
TWITTER_CLIENT_SECRET=your-twitter-client_secret

Visit these pages to know how to configure them

Create your Facebook App

facebook-2-create-website-app

facebook-3-1-create-new-app-id

facebook-4-create-app-step-1

facebook-4-create-app-step-2

facebook-5-app-dashboard

facebook-5-laraclassified-env-settings

Set your Facebook App

facebook-8-add-facebook-products

facebook-9-settings-facebook-login

Create a Facebook Test App for your main App

You need to create an Test App for your App when you go to live (or production)

 

After this step, you done and can use your Facebook App in live !

Now edit your LaraClassified /.env file

FACEBOOK_CLIENT_ID=your-facebook-client_id
FACEBOOK_CLIENT_SECRET=your-facebook-client_secret

Google OAuth Client ID

Edit your LaraClassified /.env file

GOOGLE_CLIENT_ID=your-google-client_id
GOOGLE_CLIENT_SECRET=your-google-client_secret

Google Maps Embed API

Edit your LaraClassified /.env file

GOOGLE_MAPS_API_KEY=your-googlemaps-key

Google Maps API Key

Before Using Twitter make sure you have configured your SMTP Settings

Example.

TWITTER_CLIENT_ID=your-twitter-client_id
TWITTER_CLIENT_SECRET=your-twitter-client_secret

Recaptcha Key

What is recaptcha

reCAPTCHA is a free CAPTCHA service that helps protect your site against spam, malicious registrations and other forms of attacks where computers try to disguise themselves as a human. reCAPTCHA comes in the form of a widget that you can easily add to your blog, forum, registration.

How to setup.

okHSW2N

RLjgRLB

RECAPTCHA_PUBLIC_KEY=your-recaptcha-public_key
RECAPTCHA_PRIVATE_KEY=your-recaptcha-private_key

Image Setting

We support for two image processor.

GD is very basic image resizing driver for PHP and only to used on basic website. It has memory issues and doesn’t perform well at all conditions.

If you want your site for pro-photography or better quality images we prefer you to use imagick instead for better quality results.

Please make sure that your server has imagick installed.

First make sure that you have imagick installed on your server, if not then contact your hosting provider.

Search

IMAGE_DRIVER=gd

Change it to

IMAGE_DRIVER=imagick

Clear All Image Cache

Caution..!! Your site might face down time until all images are re-cached

For those who are not using cloud CDN

For those who using cloud CDN

Image manipulation in PHP is a very memory consuming task. Since most tasks in PHP don’t exhaust default memory limits, you have to make sure your PHP configuration is able to allocate enough memory to handle large images.

The following php.ini directives are important.

memory_limit

Sets a maximum amount of memory in bytes that a script is allowed to allocate. Resizing a 3000 x 2000 pixel image to 300 x 200 may take up to 32MB memory.

upload_max_filesize

If you’re planing to upload large images, verify that this setting for the maximum size of file uploads fits your needs.

Read more in the official PHP documentation for:

It’s possible to set these directives in your php.ini or at runtime with ini_set.

LaraClassified Provides cloud CDN support

STORAGE_DRIVER=s3
S3_KEY=YourAmazonS3Key
S3_SECRET=YourAmazonS3Secret
S3_REGION=YourAmazonS3Region
S3_BUCKET=BucketName

If color pallet is not working fine then your need to set Access-Control-Allow-Origin Header in your amazon settings see here http://stackoverflow.com/a/19939041

Amazon CloudFront is a content delivery web service that works with amazon s3. Create a CloudFront account get a distribution url. After that.

S3_DISTRIBUTION_URL=YourDistributionUrlHere

Make sure to read the dropbox api terms and limits, before using it.

DROPBOX_CLIENT_IDENTIFIER=ClientIdentiferHere
DROPBOX_ACCESS_TOKEN=YourAccessToken
DROPBOX_USER_ID=YourUserID

Please note that color pallet will or will not work with dropbox. It don’t send image with Access-Control-Allow-Origin Header

We are not responsible if you void the copy terms and conditions

Debug mode will help you to track the error on your website. It is not all preferred to turn the debug mode on live site for very long time.

How to turn debug mode on

Change

APP_DEBUG=false

To

APP_DEBUG=true

false means debug mode is OFF
true means debug mode is ON