404 error even all files are present

One of my website in cyber panel started to show 404 page although files and configs are present as it is. Changed/deleted rewrite rules but nothing worked still it pops up the 404 page. What went wrong on this.

Welcome @Nidaayub Happy you are here

You did not care to follow How to ask for assistance?

Post the contents of your https://SERVER_URL:8090/serverstatus/cyberCPMainLogFile

[05.30.2023_02-00-14] Running SSL Renew Utility
[05.30.2023_02-00-14] Checking SSL for britishassignmenthelp.co.uk.
[05.30.2023_02-00-14] SSL exists for britishassignmenthelp.co.uk. Checking if SSL will expire in 15 days..
[05.30.2023_02-00-14] SSL exists for britishassignmenthelp.co.uk and is not ready to renew, skipping..
[05.30.2023_02-00-14] Checking SSL for mail.britishassignmenthelp.co.uk.
[05.30.2023_02-00-14] SSL exists for mail.britishassignmenthelp.co.uk. Checking if SSL will expire in 15 days..
[05.30.2023_02-00-14] SSL exists for mail.britishassignmenthelp.co.uk and is not ready to renew, skipping..
[05.31.2023_00-00-38] [Errno 2] No such file or directory: '/home/cyberpanel/git'. [IncScheduler.git:90]
[05.31.2023_02-00-16] Running SSL Renew Utility
[05.31.2023_02-00-16] Checking SSL for britishassignmenthelp.co.uk.
[05.31.2023_02-00-16] SSL exists for britishassignmenthelp.co.uk. Checking if SSL will expire in 15 days..
[05.31.2023_02-00-16] SSL exists for britishassignmenthelp.co.uk and is not ready to renew, skipping..
[05.31.2023_02-00-16] Checking SSL for mail.britishassignmenthelp.co.uk.
[05.31.2023_02-00-16] SSL exists for mail.britishassignmenthelp.co.uk. Checking if SSL will expire in 15 days..
[05.31.2023_02-00-16] SSL exists for mail.britishassignmenthelp.co.uk and is not ready to renew, skipping..
[06.01.2023_00-00-38] [Errno 2] No such file or directory: '/home/cyberpanel/git'. [IncScheduler.git:90]
[06.01.2023_02-00-13] Running SSL Renew Utility
[06.01.2023_02-00-13] Checking SSL for britishassignmenthelp.co.uk.
[06.01.2023_02-00-13] SSL exists for britishassignmenthelp.co.uk. Checking if SSL will expire in 15 days..
[06.01.2023_02-00-13] SSL exists for britishassignmenthelp.co.uk and is not ready to renew, skipping..
[06.01.2023_02-00-13] Checking SSL for mail.britishassignmenthelp.co.uk.
[06.01.2023_02-00-13] SSL exists for mail.britishassignmenthelp.co.uk. Checking if SSL will expire in 15 days..
[06.01.2023_02-00-13] SSL exists for mail.britishassignmenthelp.co.uk and is not ready to renew, skipping..
[06.01.2023_11-52-47] 'list' object has no attribute 'find'
[06.01.2023_13-34-52] 'list' object has no attribute 'find'
[06.01.2023_13-52-02] 'list' object has no attribute 'find'
[06.01.2023_13-52-42] 'list' object has no attribute 'find'
[06.01.2023_13-52-50] 'list' object has no attribute 'find'
[06.01.2023_14-13-24] [Could not Install]
[06.01.2023_14-13-39] [Could not Install]
[06.01.2023_14-16-09] Status Code: 200 for: http://www.britishassignmenthelp.co.uk/.well-known/acme-challenge/britishassignmenthelp.co.uk
[06.01.2023_14-16-09] Status Code: 200 for: http://britishassignmenthelp.co.uk/.well-known/acme-challenge/britishassignmenthelp.co.uk
[06.01.2023_14-16-12] /root/.acme.sh/acme.sh --issue -d britishassignmenthelp.co.uk -d www.britishassignmenthelp.co.uk --cert-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/cert.pem --key-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/privkey.pem --fullchain-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/fullchain.pem -w /usr/local/lsws/Example/html -k ec-256 --force --server letsencrypt
[06.01.2023_14-16-22] Successfully obtained SSL for: britishassignmenthelp.co.uk and: www.britishassignmenthelp.co.uk
[06.01.2023_14-18-11] Status Code: 200 for: http://www.britishassignmenthelp.co.uk/.well-known/acme-challenge/britishassignmenthelp.co.uk
[06.01.2023_14-18-11] Status Code: 200 for: http://britishassignmenthelp.co.uk/.well-known/acme-challenge/britishassignmenthelp.co.uk
[06.01.2023_14-18-14] /root/.acme.sh/acme.sh --issue -d britishassignmenthelp.co.uk -d www.britishassignmenthelp.co.uk --cert-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/cert.pem --key-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/privkey.pem --fullchain-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/fullchain.pem -w /usr/local/lsws/Example/html -k ec-256 --force --server letsencrypt
[06.01.2023_14-18-19] Successfully obtained SSL for: britishassignmenthelp.co.uk and: www.britishassignmenthelp.co.uk
[06.01.2023_14-18-19] {'[email protected]': (554, b'5.7.1 <[email protected]>: Relay access denied')}
[06.01.2023_14-18-30] Status Code: 200 for: http://www.britishassignmenthelp.co.uk/.well-known/acme-challenge/britishassignmenthelp.co.uk
[06.01.2023_14-18-30] Status Code: 200 for: http://britishassignmenthelp.co.uk/.well-known/acme-challenge/britishassignmenthelp.co.uk
[06.01.2023_14-18-33] /root/.acme.sh/acme.sh --issue -d britishassignmenthelp.co.uk -d www.britishassignmenthelp.co.uk --cert-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/cert.pem --key-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/privkey.pem --fullchain-file /etc/letsencrypt/live/britishassignmenthelp.co.uk/fullchain.pem -w /usr/local/lsws/Example/html -k ec-256 --force --server letsencrypt
[06.01.2023_14-18-38] Successfully obtained SSL for: britishassignmenthelp.co.uk and: www.britishassignmenthelp.co.uk
[06.01.2023_14-18-38] {'[email protected]': (554, b'5.7.1 <[email protected]>: Relay access denied')}
[06.01.2023_14-22-49] 'list' object has no attribute 'find'
[06.01.2023_14-37-02] 'list' object has no attribute 'find'
[06.01.2023_14-37-16] 'list' object has no attribute 'find'
[06.01.2023_14-38-15] 'list' object has no attribute 'find'
[06.01.2023_14-38-34] 'list' object has no attribute 'find'
[06.01.2023_15-28-04] [Could not Install]

Post your rewrite rules for the website here

RewriteEngine on
#  RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
# RewriteCond %{HTTP_HOST} ^www.allonlineclasseshub.com [NC]
# RewriteRule ^(.*)$ https://allonlineclasseshub.com/$1 [L,R=301]

# Canonical https/www
<IfModule mod_rewrite.c>
	RewriteCond %{HTTPS} off
	RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
	
	RewriteCond %{HTTP_HOST} !^www\. [NC]
	RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
	

</IfModule>

#Customize expires caching start - adjust the period according to your needs
# <IfModule mod_expires.c>
#   FileETag MTime Size
#   AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
#   ExpiresActive On
#   ExpiresByType text/html "access 600 seconds"
#   ExpiresByType application/xhtml+xml "access 600 seconds"
#   ExpiresByType text/css "access 1 month"
#   ExpiresByType text/javascript "access 1 month"
#   ExpiresByType text/x-javascript "access 1 month"
#   ExpiresByType application/javascript "access 1 month"
#   ExpiresByType application/x-javascript "access 1 month"
#   ExpiresByType application/x-shockwave-flash "access 1 month"
#   ExpiresByType application/pdf "access 1 month"
#   ExpiresByType image/x-icon "access 1 year"
#   ExpiresByType image/jpg "access 1 year"  
#   ExpiresByType image/jpeg "access 1 year"
#   ExpiresByType image/png "access 1 year"
#   ExpiresByType image/gif "access 1 year"
#   ExpiresDefault "access 1 month"
# </IfModule>
#Expires caching end

RewriteRule ^([^.]+)$ $1.php [NC,L]
# RewriteRule ^([a-zA-Z0-9_-]+)$ singleblog.php?slug=$1
# RewriteRule ^singleblog/([0-9]+)/([0-9]+)/([0-9A-Za-z\-_]+) singleblog?slug=$1 [NC, L]

# RewriteCond %{HTTP_HOST} ^britishassignmenthelp\.co.uk$ [OR]
# RewriteCond %{HTTP_HOST} ^www\.britishassignmenthelp\.co.uk$
# RewriteRule ^/?$ "https\:\/\/britishassignmenthelp\.co.uk\/" [R=301,L]

# RewriteRule ^(/singleblog)/(\w+)$ $1/singleblog?slug=$2 [L]
# RewriteCond %{HTTPS} off
# RewriteCond %{HTTP:X-Forwarded-SSL} !on
# RewriteCond %{HTTP_HOST} ^allonlineclasseshub\.com$ [OR]
# RewriteCond %{HTTP_HOST} ^www\.allonlineclasseshub\.com$
# RewriteRule ^/?$ "https\:\/\/allonlineclasseshub\.com\/" [R=301,L]

Replace this with

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.allonlineclasseshub.com [NC]
RewriteRule ^(.*)$ https://allonlineclasseshub.com/$1 [L,R=301]

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.britishassignmenthelp.co.uk [NC]
RewriteRule ^(.
)$ https://britishassignmenthelp.co.uk/$1 [L,R=301]

Still same issue

Delete everything in rewrite rules

Check if you have any errors here

Error log is empty and I have delete everything from rewrite rules but nothing happens. Even I have deleted all files and just created new index.html but still i got same issue. Even also changed browser but nothing happened.

Just curious can you delete that website and recreate it

Are you using the latest version of cyberpanel ? Post the details of your cyberpanel version from https://SERVER_URL:8090/base/versionManagment


Please check

Run upgrade script - 02 - Upgrading CyberPanel

That is why we recommend you include this kind of information in your topic

I am unable to upgrade. Can you please me out with this also

What error are you getting ?

I am new here and technically not strong… So the main point is I don’t know how to upgrade cyberpanel version. Can you share steps or link?

Download an ssh client such as Remmina, Bitvise SSH client etc and run the command

sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

copy paste and just let it run. Press enter for every preceeding step.

If you are asked which version you need just press enter.

A couple things to check are:

  1. Make sure in your vhost config that there is the correct document root.
  2. Also make sure that the group for the public_html folder is “nobody”
    3.“Fix permissions” from file manager