DEV Community

Discussion on: Deploying Laravel 5 applications on shared hosting without the use of SSH

Collapse
 
eflames profile image
eflames

Hi,

How about having more than 1 laravel app in the same shared hosting?

I'm trying to upload a second app using a subdomain for example:

test.mydomain.com points to public_html/test

But does not works for me... but if I upload a HTML file with dummy text and I type mydomain.com/test it's ok!

How can I have more than 1 laravel app (different files, different public folder, different everything) in the same shared hosting (CPANEL)

Thanks u and sorry for my poor english.

Collapse
 
marvelxy profile image
Marvelous Akpotu • Edited

You can do this with a subdomain or addon domain. When you have your subdomain or addon domain ready, follow the author's step. The only difference is that you do everything in the directory created by your subdomain or addon domain.

Don't forget to edit these two lines of codes to match your directory structure:

require DIR.'/../vendor/autoload.php';
$app = require_once DIR.'/../bootstrap/app.php';

I strongly recommend setting this up on a local server like xampp before uploading it to your server.

Collapse
 
mahmudulhassan5809 profile image
Mahmudul Hassan

Hello did you solve it if any one have more than one app

Collapse
 
eflames profile image
eflames

Nope, I didn't. :(

Some comments have been hidden by the post's author - find out more