cancel
Showing results for 
Search instead for 
Did you mean: 

How to Enabling the Ultimo modules in magento 2

How to Enabling the Ultimo modules in magento 2

Hi. My hosting doesn't provide me with SSH access. How do I enable modules without SSH in magento 2?

 

Thank You.

4 REPLIES 4

Re: How to Enabling the Ultimo modules in magento 2

Hello @hanaffekamis

 

If you want to install Module or Run CLI Command Without SSH/CLI in Magento 2 then there are 2 methods:

 

First Solution

If you don’t have permission of CLI. Then we think system() function will help you on this.

To use this function , just simple create command.php file in your Magento root, then write below code in this file.

<?php
 
echo "<pre>";
system('php bin/magento setup:upgrade'); // You can change command as you want.
echo "</pre>";

And run this script with http://domain.com/command.php It will gives you resulted output.

 

Second Solution

If you want to run Magento 2 command without CLI then we have a another solution for that, but it doesn’t gives you any message (Success or Fail), but you can use this if you don’t have any option.

For that you have to create command.php file in your Magento root, and paste below code in command.php file.

<?php
 
use Magento\Framework\App\Bootstrap;
 
require __DIR__ . '/app/bootstrap.php';
 
$bootstrap = Bootstrap::create(BP, $_SERVER);
 
$obj = $bootstrap->getObjectManager();
 
$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');
$k[0]='bin/magento';
$k[1]='setup:upgrade'; //  You can change command as you want like setup:static-content:deploy, cache:status etc.
$_SERVER['argv']=$k;
try {
    $handler = new \Magento\Framework\App\ErrorHandler();
    set_error_handler([$handler, 'handler']);
    $application = new Magento\Framework\Console\Cli('Magento CLI');
    $application->run();
} catch (\Exception $e) {
    while ($e) {
        echo $e->getMessage();
        echo $e->getTraceAsString();
        echo "\n\n";
        $e = $e->getPrevious();
    }
}

And run this script with http://domain.com/command.php it doesn’t gives you any message (Success or Fail), but you can use this as a second option.

 
Further if you have any query regarding this then you can follow this link http://vagento.com/install-module-run-cli-command-without-ssh-magento-2/
 
Problem solved? Click Kudos & Accept as Solution!
Magento Developer
Ankita Biswas

Re: How to Enabling the Ultimo modules in magento 2

Hi Ankita Biswas,

This is not helping me. I do not know where and how to begin. I need step by step toturial or video tutorial.

Thank you.

Re: How to Enabling the Ultimo modules in magento 2

Hello @hanaffekamis

 

Please follow the link that i shared earlier (http://vagento.com/install-module-run-cli-command-without-ssh-magento-2/)

 

For your ease i describe the steps in brief here :

1Create a file in your Root 'commands.php', add commands you want to run in system() function in php file. For example (/var/www/html/myproject/commands.php)

2. Run it by URL like : your-site-url/commands.php

  <?php
  system('php bin/magento cache:flush'); // for cache flush  
system
('php bin/magento setup:upgrade'); // for setup upgrade
system
('php bin/magento setup:static-content:deploy'); // for static content deploy
 
If found my answer useful. Please Click Kudos and Accept it as Solution.
Magento Developer
Ankita Biswas

Re: How to Enabling the Ultimo modules in magento 2