installing laravel app on addon domain with shared hosting

installing laravel app on addon domain with shared hosting

I've searched up and down and while there are a lot of the same solutions out there that show how to do this, none of them seem to be working (surely, I having something configured wrong here).

I've searched up and down and while there are a lot of the same solutions out there that show how to do this, none of them seem to be working (surely, I having something configured wrong here).

I am trying to deploy a laravel app on an addon domain with shared hosting.

I have uploaded my app (all but the public folder) along side the public_html folder (same level, not inside it).

Structure: https://imgur.com/a/fiyGxzC

I've taken everything from the public folder and put it inside a folder on the addon domain.

Ex.: public_html/mysite.com/laravel/

Note that I've substituted my actual username and domain with placeholders here (obviously)

This is where it gets tricky for me. I've tried adjusting the paths in the public_html/mysite.com/laravel/index.php file, but the DIR method/command seems to be grabbing from the wrong directory and I get the following errors:

Warning: require(/home1/username/public_html/mysite.com/laravel/../../laravelapp/bootstrap/autoload.php): failed to open stream: No such file or directory in /home1/username/public_html/mysite.com/laravel/index.php on line 22

Warning: require(/home1/username/public_html/mysite.com/laravel/../../laravelapp/bootstrap/autoload.php): failed to open stream: No such file or directory in /home1/username/public_html/mysite.com/laravel/index.php on line 22

Fatal error: require(): Failed opening required '/home1/username/public_html/mysite.com/laravel/../../laravelapp/bootstrap/autoload.php' (include_path='.:/opt/php71/lib/php') in /home1/username/public_html/mysite.com/laravel/index.php on line 22

Do note that I've tried modifying to document root by trying it with a subdomain, but ran into the same type of errors.

Also note that when I put the entire app (including public) inside a folder inside the addon domain (ex.: mysite.com/testing), I was able to get things working, but the images and styles would not load. I know this is a security risk, so I'm trying to do it the correct way now and get everything running smoothly.

Some help here would be greatly appreciated - been on this for 2 days now. Thanks a lot! Sorry for any redundancy here.

Edit: I've also tried modifying my path in the server.php (this was suggested on another solution) to "../public_html/mysite.com/laravel/index.php" and to no avail as well.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Clear Cache in Laravel 6.8 App using Artisan Command Interface (CLI)

In Laravel 6 tutorial, we learn how to use PHP artisan command interface (CLI) to clear the cache from Laravel 6.8 application. How To Clear Cache in Laravel 6.8 Application using Artisan Command Line Interface (CLI)? How to clear route cache using php artisan command? How to easily clear cache in Laravel application? How to clear config cache in PHP Laravel via artisan command? How to clear Laravel view cache? How to Reoptimized class in Laravel via artisan CLI?

Get Weather Data with Laravel Weather

Get Weather Data with Laravel Weather. Laravel Weather is a good package which we can use to get weather data. It's a wrapper around Open Weather Map API (Current weather). A wrapper around Open Weather Map API (Current weather)

Laravel Sweet Alert | How to use the SweetAlert package in Laravel PHP

Sweet Alert is a laravel wrapper around #sweetalert javascript library for showing alert or notification message. This is a great package created by rashid, and this laravel package is very famous because it has tonnes of features you can choose from.