cancel
Showing results for 
Search instead for 
Did you mean: 

FTP vs composer Installation and how to switch

FTP vs composer Installation and how to switch

Hi,

 

I have 2 questions that I could not find an answer to (running magento 2.4):

 

1. How do I find out the easiest way if an extension was originally installed via FTP or composer?

 

2. If an extension was installed originally via ftp, is it possible to upgrade this extension via composer? If yes, what are the steps I need to take to get this to work?

 

Thanks for any help.

2 REPLIES 2

Re: FTP vs composer Installation and how to switch

@Tieronesports ,

to check if the extension is installed via composer or not you can follow these steps. 

  • check composer.json
    if Extension is installed via composer than in require section of composer you can find that like this 
        "require": {
            "composer/composer": "@alpha",
            "amasty/base": "^1.5",
            "amasty/shopby": "^2.11",
            "amasty/module-faq-product-questions": "^2.3",
            "amasty/stockstatus": "^1.2",
            "amasty/shiprules": "^2.3",
            "amasty/module-single-step-checkout": "^2.2",
            "magento/product-community-edition": "2.3.2"
       },
  • if the extension is not there then it must be in the app/code/ folder 

now if you want to update the installation to the composer than you can remove that extension from the app/code folder and install using composer like the below command 

composer require <extension-name>:<version> --no-update
composer update

kindly Accept as a Solution if this works for you and give kudos. Smiley Happy 

Re: FTP vs composer Installation and how to switch

@amitsamsukha 

 

thank you for the reply. 

 

One more question: if I want to update an extension via composer that was originally installed via ftp do I "remove" meaning just "delete" folder Raf (for example) if the current structure is:

 

app

   code

       Aheadworks

                Raf

 

...and then install via composer as explained in your post.

 

Thanks again!