Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't see/upload my .env file in cpanel

I can't see my .env file in my cpanel and i also can't upload .env file in my cpanel.

What can i do??

like image 485
Shuvo Avatar asked Feb 09 '17 17:02

Shuvo


People also ask

Where .env file is located?

The “.env” file Starting from v1.28 , the .env file is placed at the base of the project directory. Project directory can be explicitly defined with the --file option or COMPOSE_FILE environment variable. Otherwise, it is the current working directory where the docker compose command is executed ( v1.28 ).

Are .env Files hidden?

The . env file lets you customize your individual working environment variables. Because the . env file is hidden, use the ls -a command to list it.


1 Answers

Change the file manager settings to show hidden files. Click on "Settings" to change the preferences.

cpanel file manager settings

Alternative is to use FTP / SFTP to edit / upload files to your server.

like image 79
Niraj Shah Avatar answered Oct 19 '22 22:10

Niraj Shah