Laravel on shared hosting

Posted 1 year ago by dohisev

I have a shared hosting with ssh access, I managed to install laravel, run npm run prod, but as I can't run the server by php artisan serve I need to make the server to run the php directly so I renamed the server.php file to index.php and put the .htaccess from public to the root folder and it's working but it doesn't find the css and js files that has been generated. I'm using like this: <link rel="stylesheet" href="{{ mix('css/app.css') }}"> but can't find.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.