SOLVED GIT Install to Public_HTML - fatal: destination path 'public_html' already exists


Apr 24, 2020
Houston, Texas
cPanel Access Level
Root Administrator
I am trying to install a script via git and cPanel won't let me install the script in public_html. When I execute the following command, I get the following error:

[[email protected] ~]$ git clone public_html
fatal: destination path 'public_html' already exists and is not an empty directory.

Their install instructions have you clone the script to the root folder (public_html) and then you run composer install --no-dev to install it. Their script comes with a script that updates it via git too.

Their repository does not have a cpanel.yaml file so I can't use the GUI since there is no deploy option.

Considering that public_html is a "special" folder, I am not sure if it is safe to delete it and recreate it.

What is the proper way to install such a script? It must be in the root (public_html) to operate.