Deploying Laravel 4 on shared hosting server (hostgator)

Glad To Help

I would appreciate your help. I really don't know where else to turn to. I can't deploy a L4 app to Hostgator. I read the guide on the forums, but my shared HG account already has many apps under public_html so deleting it would be catastrophic and a risk I cannot afford to play with.

Is there a way to deploy L4 app like any other normal apps?

What I am trying to do is the following:

home/myuser/public_html/domain.com/laravel/               <--- where the app should live
home/myuser/public_html/domain.com/laravel/dev          <--- dev environment

in both of these folders there is a separate git repository (via ssh). with remotes dev and prod

so what I simply want to achieve is:

git push prod

and

git push dev

but when I push, I am getting a message:

dev/bootstrap/../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory

/dev/bootstrap/../vendor/autoload.php' (include_path='.:/opt/php53/lib/php') in
Glad To Help

Turns out I had not installed Composer properly. I solved this by:

adding alias to php 5.3 in .bashrc:

alias php53='/opt/php53/bin/php'

installing Composer:

curl -sS https://getcomposer.org/installer | php53

in composer.json, in the "scripts" replacing php with: /opt/php53/bin/php (alias is not accepted, do not know why)

running

php53 composer.phar install

adding to .htaccess:

AddType application/x-httpd-php53 .php

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Deploying Laravel 5.4 to Shared Hosting

Deploying Laravel on a shared hosting sub-directory

How do I deploy two Laravel 7 project into shared hosting at hostGator?

Deploying Laravel 7 and Vue SPA application into shared hosting

Laravel 5 – Clear Cache in Shared Hosting Server

Hosting two different applications running on Laravel 4 on shared hosting

Laravel on shared hosting with Subdomain

htaccess with Laravel on shared hosting

.htaccess not working with laravel on production server-Shared hosting

Reloading .env variables without restarting server (Laravel 5, shared hosting)

Hosting a Vue js frontend and laravel backend(api routes) to a shared server?

Deploying a node js backend to a shared hosting

Deploying Symfony2 on shared hosting

Laravel and shared hosting CURL not working

Shared hosting: WordPress/laravel 5

Sending mail with Laravel on shared hosting

Laravel deployment shared hosting subdomain

Model not found after deploying to hosting Laravel 8

Laravel server hosting error

Deploying dot net core 2 Razor pages website to shared hosting

Shared Hosting Laravel 8 Hosting problem: Symlink is not working

Why new installed laravel not work on shared hosting?

Laravel, Using a cPanel shared hosting if possible?

Laravel | Shared hosting routes not working properly

Displaying laravel stored images on shared hosting

Laravel schedule job on cpanel shared hosting not working

Laravel project with bitbucket pipeline on shared hosting

Laravel 4.2 support for PHP 5.3 on shared hosting

Error 404 in a shared hosting in Laravel 8