questionasker
questionasker

Reputation: 2697

Wordpress on OpenLiteSpeed CyberPanel get 404 error after VPS reboot

i get 404 error after reboot my vps that host wordpress using openlitespeed.

All version are latest using Digital Ocean Marketplace (just build today). My VPS run CyberPanel (Hosting Control Panel for LiteSpeed), so multiple website can host in my vps.

enter image description here

my effort so far:

  1. reboot litespeed using sudo service lsws restart
  2. change .htacess (on Wordpress /home/example.com/public_html) like below:
RewriteEngine On
RewriteBase /
RewriteRule ^/index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

but above steps cant solve the 404 error

Now, even access file test.txt (like example.com/test.txt) give error 403 / forbidden (even using chmod 777).

any idea ?

Thank You In Advance...

Upvotes: 2

Views: 6143

Answers (3)

infinyteam
infinyteam

Reputation: 1

i fix this problem by running this commend:

sudo systemctl restart lsws

Upvotes: 0

Daniel Alexander Lowes
Daniel Alexander Lowes

Reputation: 309

I want to add another note check in cyberpanel if the package is out of space it gave me a 4040 the package default for example and fix the size and save.

Upvotes: -1

Eric
Eric

Reputation: 839

Just want to update the result here in case anyone interested.

The permission of the /home/example.com/public_html folder was incorrect, that's why the web server has no permission to read the file. After fixing the folder permission, there's no 404 issue more, even after server rebooting.

Upvotes: 4

Related Questions