![Cyberpanel 404 error](https://cyberpanel.site84.com/wp-content/uploads/2021/01/image-1.png)
I got the above Cyberpanel 404 Error out of the blue on all my websites and i was devastated
I don’t even use SSL for any of my websites and suddenly after installing a WordPress site and some plugins with it i got the 404 on all sites(about 8) on that server
luckily after talking to lots of great guys and gals (on the Official Cyberpanel discord ) and tedious hours of searching for a solution here is what worked for me and Might Just work for you
FIRST RUN THE BELOW COMMAND
/usr/local/lsws/bin/openlitespeed -t
IF THERE IS AN ERROR DETECTED IN YOUR CONFIGURATIONS THEN IT WILL BE SHOWN HERE
and I got the following result:-
2020-12-22 12:35:14.419972 [WARN] [PlainConf] [module:cache] parseFile find '{' and '}' do not match in the end of file /usr/local/lsws/conf/httpd_config.conf, rootTag httpServerConfig
Now As you can see the above result says that there is an error in /usr/local/lsws/conf/httpd_config.conf
So now go ahead and get your hands on that file and go through it thoroughly , for me the error was inside the file at line 250 , There was a lot of “NUL NUL NUL NUL NUL“
![The part in config that's causing problems image](https://cyberpanel.site84.com/wp-content/uploads/2021/01/image-2.png)
I just deleted That and correctly indented it as shown below :-
![Soution](https://cdn.discordapp.com/attachments/369485984049528834/790952205351387146/unknown.png)
Then to make sure the error was fixed I ran this command again( /usr/local/lsws/bin/openlitespeed -t
) and didn’t receive any output which means its fixed
Then Finally after all of this reboot the Open Lite Speed Server
![Restart cyberpanel](https://cdn.discordapp.com/attachments/369485984049528834/790952981356085258/unknown.png)
Click on the refresh button to restart OLS
“This Option is located at https://your-ip:8090/serverstatus/services “
Did this work for you if so u have successfully defeated the Cyberpanel 404 Error , leave a comment down below
if this didn’t work or you have more questions then go to
- Official cyberpanel Discord
- Cyberpanel Official Forum
Hey bro,
Thanks for pointing me in right direction. I was giving up on troubleshooting and was going to deploy a new server and migrate all sites there. But after got your link from cyberpanel forum, and wanted to try last time.
In my case I had lots of errors apart from those weird NULL, like deleted info were still there, causing the configuration to fail, extra blocks.
Now, I have fixed the file, and sites are working fine 🙂
Thanks a ton.