GIT Install to Public_HTML - fatal: destination path 'public_html' already exists
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:
Their install instructions have you clone the script to the root folder (public_html) and then you run
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.
[user@server ~]$ git clone https://codeberg.org/streams/streams.git 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-devto 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.
-
I see what was happening. There were hidden files in public_html and I forgot to look for them. It works after deleting the hidden files and directories. 0 -
well done! :) 0 -
I'm glad you were able to track that down! 0
Please sign in to leave a comment.
Comments
3 comments