I am quite frustrated to the point of evaluating if cyberpananel is the best option for my project
I have a Laravel web/app and I’m trying to deploy it on a cloudserver with Ubuntu 20.04 and CyberPanel
I already followed all the steps of the tutorial in this forum
*Copy the files from the public folder to public_html
*chmod -R 777 bootstrap/cache
chmod -R 777 storage
*Add the Rewrite Rules
Rewrite Engine On
RewriteRule . /myweb/public_html/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
And it doesn’t work properly.
This is how it looks when I enter the page, without styles and without loading the assets.
this is my public.php
if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
require __DIR__.'/../storage/framework/maintenance.php';
}
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
What am I doing wrong?
thanks for your help
PS: If i put the complete proyecy on public_html work fine, but this is insecure right?





