404 Error
Hello,
After installing WHM & cPanel, I set up a domain and linked it to the server's IP. For testing, I uploaded a file called test.html and I get a 404 error. What could be the problem?
-
Where have you uploaded that file exactly? Was it to public_html folder?
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services0 -
Yes.
0 -
Do you see any helpful errors generated inside the cPanel >> Errors page that may give more clues about the issue?
0 -
Unfortunately the list is empty, there are no errors.
0 -
If you have root access to the server, I would recommend checking the main Apache error log with this command:
tail -f /usr/local/apache/logs/error_log
while accessing the page, as that will scroll the log in real-time, letting you see the issue.
0 -
[Tue Oct 29 10:29:40.516032 2024] [mpm_prefork:notice] [pid 1293:tid 1293] AH00163: Apache/2.4.62 (cPanel) OpenSSL/3.0.2 mod_bwlimited/1.4 configured -- resuming normal operations
[Tue Oct 29 10:29:40.516050 2024] [core:notice] [pid 1293:tid 1293] AH00094: Command line: '/usr/sbin/httpd'
[Tue Oct 29 10:31:19.410278 2024] [mpm_prefork:notice] [pid 1293:tid 1293] AH00171: Graceful restart requested, doing restart
[Tue Oct 29 10:31:19.497094 2024] [:notice] [pid 1293:tid 1293] mod_ruid2/0.9.8 enabled
[Tue Oct 29 10:31:19.497353 2024] [mpm_prefork:notice] [pid 1293:tid 1293] AH00163: Apache/2.4.62 (cPanel) OpenSSL/3.0.2 mod_bwlimited/1.4 configured -- resuming normal operations
[Tue Oct 29 10:31:19.497372 2024] [core:notice] [pid 1293:tid 1293] AH00094: Command line: '/usr/sbin/httpd'
[Tue Oct 29 10:33:21.141567 2024] [mpm_prefork:notice] [pid 1293:tid 1293] AH00171: Graceful restart requested, doing restart
[Tue Oct 29 10:33:21.224046 2024] [:notice] [pid 1293:tid 1293] mod_ruid2/0.9.8 enabled
[Tue Oct 29 10:33:21.224334 2024] [mpm_prefork:notice] [pid 1293:tid 1293] AH00163: Apache/2.4.62 (cPanel) OpenSSL/3.0.2 mod_bwlimited/1.4 configured -- resuming normal operations
[Tue Oct 29 10:33:21.224353 2024] [core:notice] [pid 1293:tid 1293] AH00094: Command line: '/usr/sbin/httpd'0 -
Unfortunately none of that looks like it would be related. I would confirm that the DNS is properly pointed to the server's IP from your location with tools like dig or ping. If that is working well, can you confirm you uploaded the file as the cPanel user and not root? If the file has the wrong ownership that can result in a 404 error.
0 -
If the code close section is incomplete
0
Please sign in to leave a comment.
Comments
8 comments