How to host laravel app using cpanel?

|
dharmik4 2022-03-05 10:16:08
Tryed
devpsoft 2022-03-05 10:16:30
Check namespace class
dharmik4 2022-03-05 10:16:37
laravel_discuss-110508.jpg

dharmik4 2022-03-05 10:16:55
this command work success
devpsoft 2022-03-05 10:19:21
That’s happened when don’t generate seeder with command
devpsoft 2022-03-05 10:20:19
Try to rename this, and generate it by command
Then copy codesource in it
foulla_sam 2022-03-05 13:19:25
Hi, can someone help me. I uploaded my Laravel 8 project on a subdomain but only the home page is working. All others page giving error from the server. May be because of the .htaccess file
etekumoses 2022-03-05 13:21:25
what error
etekumoses 2022-03-05 13:21:36
send ss
PemudaKoding 2022-03-05 13:22:27
may u can give the errors of laravel
foulla_sam 2022-03-05 13:31:09
PemudaKoding 2022-03-05 13:22:27
may u can give the errors of laravel

The error is not from Laravel but from the server

PemudaKoding 2022-03-05 13:32:20
foulla_sam 2022-03-05 13:31:09
The error is not from Laravel but from the server

give the error btw, actually we can’t know about the error if don’t know the errors

foulla_sam 2022-03-05 13:36:56
PemudaKoding 2022-03-05 13:32:20
give the error btw, actually we can’t know about the error if don’t know the errors

laravel_discuss-110518.jpg

PemudaKoding 2022-03-05 13:39:28
might u can see the error log
PemudaKoding 2022-03-05 13:39:53
and screenshot your htaccess that you’ve been modified
foulla_sam 2022-03-05 13:42:20
PemudaKoding 2022-03-05 13:39:53
and screenshot your htaccess that you’ve been modified

https://snippets.laravel.cm/c7f0aa69-9998-4c2d-a13a-b8780678992e
My .htaccess file

PemudaKoding 2022-03-05 13:46:15
why do u not changes in apache configuration for remove the public at url ?
PemudaKoding 2022-03-05 13:47:30
foulla_sam 2022-03-05 13:42:20
https://snippets.laravel.cm/c7f0aa69-9998-4c2d-a13a-b8780678992e
My .htaccess file

look likes ok

PemudaKoding 2022-03-05 13:49:08
in apache configuration for remove the public url you just change the document_root to public laravel directory btw.
T_r_a_p_s_o_u_l 2022-03-05 13:49:22
aroratimus 2022-03-05 08:47:23
Would like to create an app like that

Ok

PemudaKoding 2022-03-05 13:50:16
T_r_a_p_s_o_u_l 2022-03-05 13:49:22
Ok

is it free ?

foulla_sam 2022-03-05 13:51:51
PemudaKoding 2022-03-05 13:49:08
in apache configuration for remove the public url you just change the document_root to public laravel directory btw.

Where can I find this config?

foulla_sam 2022-03-05 13:53:32
But it is a shared hosting
T_r_a_p_s_o_u_l 2022-03-05 13:55:17
PemudaKoding 2022-03-05 13:50:16
is it free ?

You want me to teach you??

PemudaKoding 2022-03-05 13:56:43
foulla_sam 2022-03-05 13:53:32
But it is a shared hosting

ahhh got it, i think you use an vps.
try to implement simple httaccess first. just
RewriteEngine On

RewriteRule ^(.*)$ public/$1 [L]

PemudaKoding 2022-03-05 13:56:59
T_r_a_p_s_o_u_l 2022-03-05 13:55:17
You want me to teach you??

nope

T_r_a_p_s_o_u_l 2022-03-05 13:57:23
PemudaKoding 2022-03-05 13:56:59
nope

You mean are the numbers free??

PemudaKoding 2022-03-05 13:57:47
T_r_a_p_s_o_u_l 2022-03-05 13:57:23
You mean are the numbers free??

yeah the service was you shared before.

T_r_a_p_s_o_u_l 2022-03-05 13:58:34
PemudaKoding 2022-03-05 13:57:47
yeah the service was you shared before.

Nope bro

foulla_sam 2022-03-05 14:05:14
PemudaKoding 2022-03-05 13:56:43
ahhh got it, i think you use an vps.
try to implement simple httaccess first. just
RewriteEngine On

RewriteRule ^(.*)$ public/$1 [L]

laravel_discuss-110536.jpg
Same error, with this .htaccess

kingxoxo 2022-03-05 14:16:13
how to host laravel app using cpanel ?
PemudaKoding 2022-03-05 14:17:00
foulla_sam 2022-03-05 14:05:14
Same error, with this .htaccess

how bout if moduled tag will remove?

PemudaKoding 2022-03-05 14:17:13
kingxoxo 2022-03-05 14:16:13
how to host laravel app using cpanel ?

just upload the project

PemudaKoding 2022-03-05 14:20:51
i have idea to deploy laravel in cpanel

-Public directory should in public html.
– and outside public directory put in some directory, say core directory

so will be this
-public_html
-index.php
-other files
-core (laravel core directory)

-edit index.php at vendor autoload change it to core/vendor/autoload.php

PemudaKoding 2022-03-05 14:21:59
i used it for at cpanel for removed public directory.
|