.env file is missing

I have carefully followed the instructions on

and get

[Thu Jul 07 21:31:55.099453 2022] [php:error] [pid 116297] [client 64.105.53.199:39900] PHP Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the “/home/suite/public_html/.env” environment file. in /home/suite/public_html/vendor/symfony/dotenv/Dotenv.php:565\nStack trace:\n#0 /home/suite/public_html/vendor/symfony/dotenv/Dotenv.php(92): Symfony\Component\Dotenv\Dotenv->doLoad()\n#1 /home/suite/public_html/vendor/symfony/dotenv/Dotenv.php(114): Symfony\Component\Dotenv\Dotenv->load()\n#2 /home/suite/public_html/config/bootstrap.php(47): Symfony\Component\Dotenv\Dotenv->loadEnv()\n#3 /home/suite/public_html/public/index.php(7): require(’…’)\n#4 {main}\n thrown in /home/suite/public_html/vendor/symfony/dotenv/Dotenv.php on line 565

in my error_log file,

I have double-checked everything. I noticed that no .env (or it’s variants) exist within the zip file.

I am assuming I have missed something simple.

Any ideas??

Cheers!!

More info:

Used the zip file to install.

Ubuntu 22.04
MySQL 8.0.29
PHP 8.1
All PHP requirements seem to be installed.
All are fully updated.

The access log has

64.105.53.199 - - [08/Jul/2022:15:12:54 -0400] “GET / HTTP/1.1” 500 185 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”

I installed per instructions and get a blank page. I have poked around the forums quite a bit for an answer and found nothing that would help.

I focused on file permissions and all seem correct.

I deleted the Apache virtual server and reinstalled twice with the same results.

When and how are the .env files created or should they have existed in the zip file?

I am stuck and plumb out of ideas. If I cannot crack this nut I have no choice but to move on.

Cheers!!

I’d start by trying a supported PHP version

I had the same problem.

As this is the first page google directs me to, in case other people have the same issue then the cause was I unzipped the file without specifying a subfolder. Then I created a new folder and moved the contents into it.

Of course I didn’t realise there were hidden files created during the zip so those files did not get moved.

The easiest resolution is to unzip again
unzip -d suitecrm SuiteCRM-8.8.1.zip

Or find the hidden files and move them over by hand.

Yeah, SuiteCRM codebase has the hidden files which are very important it to run successfully.

Glad that you figured it out quickly!