New website returns 404 and log files wasn't created on the server

index.html in public_html
public_html

No logs found
logs

Preview respond 404

The 404 is happening in every single website no matter how it is created. (manually created index.html is created automatically, wordpress import, cpanel import)

You need to make sure the Openlitespeed is restarted or try restart the whole server once and see if it still shows such error.

Let us know the result here.

Same here… @die2mrw007

I have restarted the vps with no success.

I just did systemctl restart lsws and nothing solves.

Restarted again the server sudo reboot same 404 response.

So what are the contents of website? Is it wordpress?
Make sure you have htaccess file inside your website folder (probably public_html). If not, then create a new file named .htaccess and then copy paste the default wordpress code of htaccess inside it and then restart server and see it if works fine.

Please check URL i can see that you are trying to open IP:8090/website please open only website URL it will be fine

:smile: it uses the Cyberpanel ports when you ask for the preview page.

Actually preview that way doesnt work.

Why dont you use a seperate domain or subdomain and restore your wordpress there and test everything?

It seems like the webserver has broken.

It was not a wordpress site. just plain html file, also on new websites the cyberpanel index.html did not load, it just keeps returns 404 page.

I can not keep looking how to fix this, more than make a clean installation of everything again.

No need for reinstall actually. You must reboot your server for vhost changes to take effect. Try it and see if it works for you.
Or maybe there is htaccess file missing in your website directory. If so, just create a new file named .htaccess and then copy paste this content in it:

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Thank @die2mrw007 but you forgot this little issue.

I did the .htaccess but did not fixe it :confused:

Just private message me with details such as your server IP and the domain name
and also a temporary login if possible to check things.