Difference between php bin/magento and bin/magento
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
3
down vote
favorite
In Magento when we run any command we use 'php bin/magento' and sometimes it runs also with 'bin/magento'
So can any one explain what is the actual difference in these commands.
Thanks in advance.
magento2 command-line
add a comment |Â
up vote
3
down vote
favorite
In Magento when we run any command we use 'php bin/magento' and sometimes it runs also with 'bin/magento'
So can any one explain what is the actual difference in these commands.
Thanks in advance.
magento2 command-line
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
In Magento when we run any command we use 'php bin/magento' and sometimes it runs also with 'bin/magento'
So can any one explain what is the actual difference in these commands.
Thanks in advance.
magento2 command-line
In Magento when we run any command we use 'php bin/magento' and sometimes it runs also with 'bin/magento'
So can any one explain what is the actual difference in these commands.
Thanks in advance.
magento2 command-line
magento2 command-line
asked Aug 29 at 4:20
Charul Tyagi
47211
47211
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
9
down vote
accepted
There is no difference between these two command.
php bin/magento
php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.
bin/magento
bin/magento command will find the golbal php variable and use that,
Note: in both cases it will use the php variable
add a comment |Â
up vote
1
down vote
Its same things :)
But generaly adding PHP you can choose to add command line option
see PHP features commandline options
php -c /custom/directory/custom-file.ini bin/magento [command]
By omitting it ... it is the default version of the system that is used
It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI
you can see something like this on debian... depending of your compilation and version
#php -v
PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
9
down vote
accepted
There is no difference between these two command.
php bin/magento
php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.
bin/magento
bin/magento command will find the golbal php variable and use that,
Note: in both cases it will use the php variable
add a comment |Â
up vote
9
down vote
accepted
There is no difference between these two command.
php bin/magento
php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.
bin/magento
bin/magento command will find the golbal php variable and use that,
Note: in both cases it will use the php variable
add a comment |Â
up vote
9
down vote
accepted
up vote
9
down vote
accepted
There is no difference between these two command.
php bin/magento
php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.
bin/magento
bin/magento command will find the golbal php variable and use that,
Note: in both cases it will use the php variable
There is no difference between these two command.
php bin/magento
php bin/magento command you are using php global variable to run command. for example if you are not set the global variable then you can give path of php like /opt/lampp/bin/php bin/magento to run the magento command.
bin/magento
bin/magento command will find the golbal php variable and use that,
Note: in both cases it will use the php variable
answered Aug 29 at 6:44
AddMage
4544
4544
add a comment |Â
add a comment |Â
up vote
1
down vote
Its same things :)
But generaly adding PHP you can choose to add command line option
see PHP features commandline options
php -c /custom/directory/custom-file.ini bin/magento [command]
By omitting it ... it is the default version of the system that is used
It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI
you can see something like this on debian... depending of your compilation and version
#php -v
PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
add a comment |Â
up vote
1
down vote
Its same things :)
But generaly adding PHP you can choose to add command line option
see PHP features commandline options
php -c /custom/directory/custom-file.ini bin/magento [command]
By omitting it ... it is the default version of the system that is used
It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI
you can see something like this on debian... depending of your compilation and version
#php -v
PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Its same things :)
But generaly adding PHP you can choose to add command line option
see PHP features commandline options
php -c /custom/directory/custom-file.ini bin/magento [command]
By omitting it ... it is the default version of the system that is used
It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI
you can see something like this on debian... depending of your compilation and version
#php -v
PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
Its same things :)
But generaly adding PHP you can choose to add command line option
see PHP features commandline options
php -c /custom/directory/custom-file.ini bin/magento [command]
By omitting it ... it is the default version of the system that is used
It is better to launch the magento binary with the same version as the one used with the WEB server, do not forget that in command line we are in CLI
you can see something like this on debian... depending of your compilation and version
#php -v
PHP 7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650 (cli) (built: Jul 25 2018 10:33:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.20-1+0~20180725103315.2+stretch~1.gbpd5b650, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
answered Aug 29 at 5:40
Joss Eve
112
112
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f239988%2fdifference-between-php-bin-magento-and-bin-magento%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password