Guys i need to deploy a laravel project in cpanel.
i deployed. but i got error http error 500
i found many solutions and at lasti found that php version is the problem.
when i am developing the project in local i used php 5.6.4 version
"require": {
"php": ">=5.6.4",
now i deployed the project.
my cpanel php version is 5.4.
so i changed the version 5.4 to 7.2 in my cpanel. my apllication started working in live.
but other project which are hosted got error because those projects are developed with php 5.4 version.
so for those project it showing error.
Call to undefined function mysql_connect()
this error is because of in php 7 it is changed to mysqli_connect.
but i cant change all the projects.
if i change the cpanel php version to 5.6. all other projects running correctly, but my laravel showing error
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
syntax error, unexpected ':', expecting ';' or '{'
what can i do?? can i reduce my laravel application to lower version of php??
is it possible??
the main problem is if my cpanel php version is 7 and above my laravel works correctly, but other projects not.
if i change my php version in cpanel to 5.4 all other works correct but my laravel shows error http error 500
ig i change my php version in cpanel to 5.6 all other works correctly but my laravel shows error Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN) syntax error, unexpected ':', expecting ';' or '{'
now what should i do??
i think better to reduce my laravel php version.
but how, will it affect any functionality of the application??
Kondly suggest you ideas please