Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-05-27, 00:37:32

Author Topic: (SOLVED) Konfig Laravel di Kloxo MR  (Read 92 times)

0 Members and 1 Guest are viewing this topic.

Offline ar1246

  • Senior Member
  • *
  • Posts: 232
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Web Hosting | Web Design Murah
(SOLVED) Konfig Laravel di Kloxo MR
« on: 2017-05-18, 08:34:31 »
Quote
solusi di post 3
Salam
Pak MR ato suhu suhu d sini, apakah ada yang bisa konfig Laravel?
Saya udah simpan file file public laravel di root domain
file&folder laravel selain public saya simpan dengan pada folder project di doc root client, se level dengan kloxoscript, .pki dll
index.php udah saya edit dengan perubahan:

Code: [Select]
require __DIR__.’/../bootstrap/autoload.php’; (baris 22)
jadi
require __DIR__.’/../project/bootstrap/autoload.php’;


$app = require_once __DIR__.’/../bootstrap/app.php’; (baris 36)
jadi
$app = require_once __DIR__.’/../project/bootstrap/app.php’;


saya juga telah menambahkan:
Code: [Select]
// set the public path to this directory
$app->bind('path.public', function() {
return __DIR__;
});


Code: [Select]
HOME
----namaclient
-------------.pki
-------------__processed_stats
-------------kloxoscript
-------------zzzxxx.sch.id
-------------project
-------------.bash_logout
-------------.bash_profile
-------------.bashrc
-------------.qmail
-------------public_html -> /home/namaclient/zzzxxx.sch.id

DB udah sesuai,
tapi pas akses webnya ada eror:
Code: [Select]
Parse error: syntax error, unexpected '.' in /home/yepeka/zzzxxx.sch.id/index.php on line 22

berarti kan karena titik yg gk di harapkan yang ada di baris autoload,
tapi titik mana n gmana benerinnya yah?


terima kasih
« Last Edit: 2017-05-18, 23:27:47 by ar1246 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,487
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Konfig Laravel di Kloxo MR
« Reply #1 on: 2017-05-18, 09:04:26 »
Tampilkan saja isi /home/yepeka/zzzxxx.sch.id/index.php
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ar1246

  • Senior Member
  • *
  • Posts: 232
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Web Hosting | Web Design Murah
Re: Konfig Laravel di Kloxo MR
« Reply #2 on: 2017-05-18, 09:08:45 »
Code: [Select]
<?php

/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <taylor@laravel.com>
 */

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels great to relax.
|
*/

require __DIR__./../project/bootstrap/autoload.php’;

/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/

$app = require_once __DIR__./../project/bootstrap/app.php’;

// set the public path to this directory
$app-&gt;bind('path.public', function() {
return 
__DIR__;
});

/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/

$kernel $app->make(Illuminate\Contracts\Http\Kernel::class);

$response $kernel->handle(
    
$request Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request$response);

Offline ar1246

  • Senior Member
  • *
  • Posts: 232
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Web Hosting | Web Design Murah
Re: Konfig Laravel di Kloxo MR
« Reply #3 on: 2017-05-18, 23:27:06 »
Solved pak
ternyata ada kesalahan tanda kutip di index.php dan juga versi php nya.
versi phpnya minimal 5.6

index.php
Code: [Select]
<?php
/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <taylor@laravel.com>
 */

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels great to relax.
|
*/

require __DIR__.'/../project/bootstrap/autoload.php';

/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/

$app = require_once __DIR__.'/../project/bootstrap/app.php';

// set the public path to this directory
$app->bind('path.public', function() {
return 
__DIR__;
});

/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/

$kernel $app->make(Illuminate\Contracts\Http\Kernel::class);

$response $kernel->handle(
    
$request Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request$response);

Offline noob

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • KombatHost
Re: (SOLVED) Konfig Laravel di Kloxo MR
« Reply #4 on: 2017-05-24, 01:41:05 »
sebenarnya kloxo-mr paling mudah untuk konfigurasi laravel.
saat menginput domain, masukkan saja folder repositori/public

contohnya folder repo adalah: "aplikasisaya", maka buatlah "domain.com" dan input "aplikasisaya/public" sebagai document root.

done, tidak perlu diseting apa2 lagi, karena "domain.com" langsung diarahkan ke "aplikasisaya/public"

mudah di-pull jika ada update nantinya
http://kombathost.com | Your ultimate webhosting

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.038 seconds with 18 queries.

web stats analysis