Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

LaravelNoob's avatar

Best Guides to Deploying Laravel in sharedhosting

Assistance Required in setting up my local Laravel App on a shared hosting server.

This is definitely my last resort, i have look around and i can't seem to find a any solution that worked for me. please help!

the App

- I'm working with Laravel 5.6.23

- no using any database

the Server

- cPanel Version    70.0 (build 48)

- Apache Version    2.4.33

- PHP Version   7.0.30 (but the switch goes up to 7.2)

i also have SSH access.

Lucius Annaeus Seneca (php art inspire) said:

It is Quality rather than quantity that matters

0 likes
6 replies
LaravelNoob's avatar

thank for replying @grenadecx did the exact thing couple of hours ago. No joy. here is the error log if it helps

[2018-06-19 14:23:39] local.ERROR: Parse error: syntax error, unexpected '?' {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Parse error: syntax error, unexpected '?' at /home/zealandafarmscom/zf2/vendor/symfony/http-foundation/Response.php:491) [stacktrace]

click's avatar

@jlrdw is a shared hosting expert, or at least has some articles for you

bashy's avatar

5.6 requires >= 7.1.3 so 7.0 won't work and it's probably something like two question marks that's causing the error (because it's built for newer PHP versions).

Please or to participate in this conversation.