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

screenshot3

Check any conflict with Apache2

apache2 stop

Check Litespeed domain.com:7080
Listen 80 and 443 are ON ??

here are the other images that i was trying to upload for the problem im having with cyber panel when THE 404 ERROR when trying to create s subdomain wordpress installation



server info

if you get 404
its look like you are under Cloudflare
if so…
pause site
purge all cache

create test.html under public_html
insert any text (example:

<h1>success</h1>

save it

close browser
open run command (eg.windows cmd)
type ipconfig /flushdns

recall the URI : http://yourdomain.tld/test.html
if success
then it’s the time to talk about failed wordpress installation
(but later after 404 problem solved

The 404 error happens when im installing wordpress and litespeed, it loos like is doing its thing but after few seconds the installation fail saying “INSTALLATION FAILED: ERROR MESSAGE: [404]”, the installation proccess from cyber panel loads the files into the subdomain that i previus created i verified i login with filezilla and the wordpress files were loaded into the subdomain folder, but no database was creaed it looks like the problem happens in the process between creating wordpress and database. because it did no created any database, refer to the image i uploaded it show the error, im able to create the domain but when im installing wordpress thats when i get the error on cyberpanel, i created another subdomain but this time i did not install wordpress i only uploaded an index.html and css file that a created and it works,

you cant install both in same times and they are different cms and system

upgrade your cyberpanel ? have you do this ?

ye, i have the latest version on the image above shows the version im running

for now
cyberpanel is 2.1.2 but different day different silent update
sometimes make more trouble…but sometimes more improvment…

try to run aptget update upgrade or yum
then upgrade cyberpanel
after that reboot your server
try report here
i hope i can help you
im not sysadmin
im not developer
i just try help based on what i know.

this works 100% change group of public_html to nogroup

example


chown Yourusername:nogroup  /home/domain.com/public_html/

yes
but why the normal installation make this glitch ?

first how can i check if the folder has the wrong permissions, or group, then how can i make the changes im the main root user. can you add the commands please

you mean this ?New website returns 404 and log files wasn't created on the server - #23 by malwarepeter

???

Hi were you able to resolve this? I have the same problem. The thread has been hijacked to a different issue. Anyway, in my case it is a index.html file only. But getting the same error.

In Centos 7, I once had a similar issue with developers that when they upload files via FTP, the site was giving 404, in that case, they were uploading the public_html folder which was setting the user:group to YourUsername:YourUsername, the user:group on the public_html folder should be YourUsername:nobody.

So the following should fix the issue:

chown YourUsername:nobody /home/domain.com/public_html/

As to what caused it on a fresh setup, I haven’t checked on it.

What will replace YourUsername

I tried this, but nothing really happened.

First go to file manager and click “Fix Permissions”
Then from SSH run the following command.

ls -la /home/domain/public_html

Refer to the image in the first post of this topic, you will see in his first image for the index.html you see hagoa7132 hagoa7132, that is equivalent to YourUsername:YourUserGroup.
So in his example “YourUsername” is hagoa7132.

When you run the command, you will get YourUsername, use that in the command:

chown YourUsername:nobody /home/domain.com/public_html/

Understood thanks! This isn’t working for me. Shall check other issues.

I encountred the same problem and fixed it by issuing a new SSL from website management section as shown on picture.

@redzoua thank you, this fixed it for me also.
I had copied 4 wordpress sites over to cyberpanel in exactly the same way. The first three worked perfectly then, despite the same process the fourth didn’t and I got the 404 error.

1 Like