由於客戶端問題,我必須在共享託管服務上放置laravel 4應用程序。但是我在[laravelio]中包含了這個過程。laravel 4在共享主機上:PAGE NOT FOUND
Place the files of the laravel public folder i.e. css, img, js etc; into public_html folder (don't dump public folder instead dump the files and folders in it).
Put all the remaining folders & files into another folder, say 'laravelcore' and place the laravelcore folder in the root (/home5/username/)
Open index.php in the public_html folder and replace the following lines as mentioned
require DIR.'/../bootstrap/autoload.php';
require __DIR__.'/../laravelcore/bootstrap/autoload.php';
$app = require_once DIR.'/../bootstrap/start.php';
$app = require_once __DIR__.'/../laravelcore/bootstrap/start.php';
Open paths.php file in laravelcore/bootstrap and replace the following line
'public' => DIR.'/../public',
'public' => __DIR__.'/../../public_html',
這是假設的工作,但是當我訪問網址我得到這樣的:所請求的網址/登錄不上這個server.please可能是什麼問題,因爲我不明白it.may是其對發現配置.htacces文件。
任何幫助將是appriciated.Thanks 網址是:benin1897.com
我才發現,原來有個中的public_html沒有.htaccess文件folder.could是這個問題...
這裏是我的文件樹
(/家/ benincom) 等 日誌 郵件 oysg 應用 引導 VENDO ř publicftp形式 的public_html CSS JS 的error_log 自述 pakage.json 的robots.txt TMP
現在登錄,但LARAVEL拋出ME ERROR
// | ----- -------------------------------------------------- ------------------- |註冊自動加載器| --------------------------------------------- ----------------------------- | | Composer提供了一個方便的,自動生成的類加載器|爲我們的應用。我們只需要利用它!我們會要求|插入腳本中以便我們不必擔心|加載任何我們的類「手動」。感覺很好放鬆。 | /要求DIR。'/ ../oysg/bootstrap/autoload.php';/ | ----------------------------------------------- --------------------------- |打開燈| --------------------------------------------- ----------------------------- | |我們需要闡述PHP開發,所以讓我們開啓燈光。 |這引導了框架並準備好使用,然後它|將加載此應用程序,以便我們可以運行它併發送|迴應給瀏覽器並使這些用戶高興。 | /$ app = require_once DIR。'/ ../oysg/bootstrap/start.php';/ | ----------------------------------------------- --------------------------- |運行該應用程序| ---------------------------------------------- ---------------------------- | |一旦我們有了應用程序,我們可以簡單地調用run方法,|它將執行請求並將響應發回給|客戶瀏覽器允許他們享受創意|以及我們爲他們鞭策的絕妙應用程序。 | */$ app-> run();
你能告訴我們一個'treeview'的一切方式你現在有嗎? (不是文檔如何說明,而是現在如何使用它)。也許編輯文件的轉儲(只是爲了驗證沒有任何拼寫錯誤) – Mathlight 2014-10-06 12:39:43
它看起來像你修復它? (如果我檢查你的網站,我看到一個很好的登錄頁面) – Mathlight 2014-10-06 18:03:56