Support the ongoing development of Laravel.io →
Installation
Last updated 2 years ago.
0

I have laravel 4.2 on byethost, with no problems. As long as the shared host meets the minimum laravel
php requirements.

Last updated 2 years ago.
0

You said install, I assume you mean upload from your development server, which works fine.

Last updated 2 years ago.
0

Yes no problem - I recently deployed a number of Laravel based projects to shared cpanel servers

Last updated 2 years ago.
0

Hi Guys,

Im trying to install (upload) laravel on my remote shared host (one.com). I keep getting blank pages.

I've moved my laravel 'public' folder to /project1/ (www.website.ddd/project1) and my laravel files are placed in /laravel (www.website.ddd/laravel)

So far, I've edited the files as described on this post http://laravel.io/forum/06-07-2014-deploying-laravel-project-to-shared-hosting-server?page=1

But still blank pages... :(

What am I doing wrong!

0

make sure you put the files on the root folder, not on a subfolder, the website needs to get to the index page to be able to start all the routing

0

Hi Juancho48,

Thank you for the reply.

I've moved the content from the laravel 'public' folder to mij root folder, adjusted the index.php according to the other the artical from my last post. The rest of the laravel content is found in my a folder I named 'laravel'.

I've adjusted path.php in the 'bootstrap' folder according to the 'laravel' folder but still getting blank pages.

What am I doing wrong?

0
  • In htdocs create a folder called laravel
  • Download laravel from github
  • Copy contents to this folder
  • run composer install open your htaccess file and make it look like this:
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On
    RewriteBase /laravel/public/

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

open your browser and type: localhost/laravel/public
Or your localhost name.

  • get it working perfectly on your localhost:
  • Change only app/config/database.php for your host information
  • ftp it to where the host has told you to (nowhere else)
  • For example it's htdocs on byethost. So for example if you uploaded to byethost your structure would be:
htdocs
         laravel

Now after testing this on host, if you still get blank pages, maybe something is wrong with host.

Last updated 10 years ago.
0

Another way is search on another forum "how to change public directory on Laravel skeleton to be root directory?"

Actually on shared hosting you can't use Artisan command line.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.