To Hide or Denied Access .env and create .htaccess file in the root folder and write the following code.
# Disable Directory listing
Options -Indexes
# block files which needs to be hidden, specify .example extension of the file
</FilesMatch "^\.env">
Order allow,deny
Deny from all
<//FilesMatch>
Debug Mode?
Debug mode will help you to track the error on your website. It is not all preferred to turn the debug mode on live site for a very long time.
How to turn to debug mode on
Login to your FTP account.
Open and edit .env file.
Change
To
Save and upload the file.
false means debug mode is OFF
true means debug mode is ON
419 Error
Make sure php version 8.2.4 and use all following PHP settings. It shows due to the session not save.
No Application Encryption key has been specified
To solve this issue you will have to check APP_KEY which is located within your . env (environment) file. don't change or remove it. also check .env file not missing.
.env missing
Most of times .env file not missing its just hide , so please make sure its not hide.
cPanel show files Quick Steps:
Log into cPanel & click “File Manager” under the files panel.
Click “settings” in the top right of the file manager.
Choose the Document Root (usually you can leave this as the default)
Please check database privilege. it must be ALL PRIVILEGES. if you don't know how to give it please contact to hosting provider.
Class 'ZipArchive' not found
You are getting this error because you don't enable a zip archive extension on your server. enable zip archive extension and issue will resolved. if you don't know how to enable it please contact to hosting provider. its not script related error.
curl_init error
You are getting this error because you don't enable a curl extension on your server. enable curl e extension and issue will resolved. if you don't know how to enable it please contact to hosting provider. its not script related error.
To Enable cURL Using EasyApache on WHM:
Log in to WHM as the 'root' user.
Either search for "EasyApache" or go to Software > EasyApache
Scroll down and select a build option (Previously Saved Config)
Click Start "Start customizing based on profile"
Select the version of Apache and click "Next Step".
Select the version of PHP and click "Next Step".
Chose additional options within the "Short Options List"