insight's avatar

How to install the localhost laravel implementation on shared Godaddy ?

Dear Friends, I am created a Laravel 5.3 web site on localhost , which work in path : http://localhost:8000/ I have a shared Godaddy service without ssh, but have file upload access. I uploaded all files to server but shows 404. What I need to do after fille upload on same path ?

Please advise

Thanks

Anes P A

0 likes
8 replies
SaeedPrez's avatar

It's good practice to search before you create a new thread..

There are probably 999999999 posts, articles and even videos about this topic on this forum and other sites if you simple search (here, Google & Youtube, etc) ..

codenex's avatar

I agree with @SaeedPrez

Without even looking I can tell you that it has to do with how godaddy is serving your website. Your /public directory needs to be the document root.

insight's avatar

Hi Codenex,

I put all the content in my public folder to root folder of server. But still show 404 page. Please advise what I need to do further step by step..

Thanks

Anes

insight's avatar

Hi Friends,

Now I got error as "Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /home/content/87/12501387/html/swaram/index.php on line 53"

any body can advise

Thanks

Anes

insight's avatar

Dear Friends,

I can understand that the problem is due to php version under 5.5 . My version is 5.3 as tell here : https://goo.gl/b00D7u

on line : $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

My shared hosting did not allow a php version than 5.4 ...

Any body please advise a fix

Thanks

Anes

codenex's avatar

Copying your stuff to the root folder != document root. This does not change your vhosts (Apache) or server blocks(Nginx) document root.

If you do not do this it will not work plain and simple. Your only other options is to tweak the config files like @cent040 said above.

Please or to participate in this conversation.