ssh into the website.

cd public_html
git clone <gir_url> .

The dot will tell it to extract here, i.e. in the root of your web folder.

    Rich yeah my issue is I ssh in and there is no public_html directory to cd into, i tried backing out and looking around, no idea where it would be but it isn't at the initialy directory you enter, find ~ also doesn't show it. Tried making some folders manually and seeing if i can find them but can't find those either.

      Are you sure you're SSH'd in as the user? What do you see when you run an ls?

      dilroopgill yeah my issue is I ssh in and there is no public_html directory to cd into, i tried backing out and looking around, no idea where it would be but it isn't at the initialy directory you enter, find ~ also doesn't show it. Tried making some folders manually and seeing if i can find them but can't find those either.

      Just do this:

      su username
      cd /var/www/*/public_html/

      Make your changes, and when you're done, type:

      exit

        cPFence
        Didn't work but was still helpful for finding it was under a lot of random letters and numbers i just ls -R once i knew it was in var/www

          dilroopgill

          The random letters and numbers are the website ID. Each website in Enhance CP gets a unique ID like this.

          By "didn't work," do you mean it wasn’t found, or was another error thrown?

          The public_html directory is created when the website is created, it should be there unless it has been deleted. You don't need to worry about finding the home dir because if you ssh or su to the website user you will already be placed in the correct directory. I would not recommend working on websites as root, it's likely to cause permission issues.

            Adam FWIW su lands me at / in the container, not public_html. To get there I "cd ~/public_html".

            • Adam replied to this.

              MediaServe

              Do su - username and it will start a new shell and place you in the home dir.

                Write a Reply...
                Follow @enhancecp