# Console Command not working

**URL:** https://forum.mautic.org/t/console-command-not-working/22281
**Category:** Mautic 4 Install/Upgrade Support
**Created:** [January 10, 2022, 12:00am UTC](https://forum.mautic.org/t/console-command-not-working/22281 "2022-01-10T00:00:53Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![luisc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/luisc/32/6510_2.png) [@luisc](https://forum.mautic.org/u/luisc)
#### Post date: [January 10, 2022, 12:00am UTC](https://forum.mautic.org/t/console-command-not-working/22281/1 "2022-01-10T00:00:53Z")

</div>

I have Mautic v4.1.0 with PHP 7.4 and console commands are doing nothing. Also, I call -hep options and nothing happens.

Does anyone know how to deal with this?

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [January 10, 2022, 5:33am UTC](https://forum.mautic.org/t/console-command-not-working/22281/2 "2022-01-10T05:33:54Z")

</div>

This is a linux issue, not a Mautic issue. Did it work before? What is the exact command you try to execute?

---

<div class="post-metadata">

### Author: ![luisc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/luisc/32/6510_2.png) [@luisc](https://forum.mautic.org/u/luisc)
#### Post date: [January 10, 2022, 5:54pm UTC](https://forum.mautic.org/t/console-command-not-working/22281/3 "2022-01-10T17:54:28Z")

</div>

I’m trying something like this and I’m not getting any response in the console.

```auto
php bin/console --help
php bin/console mautic:segments:update

```

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [January 10, 2022, 8:10pm UTC](https://forum.mautic.org/t/console-command-not-working/22281/4 "2022-01-10T20:10:13Z")

</div>

Make sure this is the right php command.  
Maybe you need php7.4 bin/console …  
Are you in the mautic folder when you execute the command?

---

<div class="post-metadata">

### Author: ![luisc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/luisc/32/6510_2.png) [@luisc](https://forum.mautic.org/u/luisc)
#### Post date: [January 10, 2022, 8:23pm UTC](https://forum.mautic.org/t/console-command-not-working/22281/5 "2022-01-10T20:23:09Z")

</div>

> [@joeyk](#):
>
> Make sure this is the right php command.

If I do the following command

```sh
php -v

```

Then I get

```auto
PHP 7.4.27 (cli) (built: Dec 30 2021 15:05:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.

```

* * *

> [@joeyk](#):
>
> Maybe you need php7.4 bin/console

If I do that I get a `command not found` response.

> [@joeyk](#):
>
> Are you in the mautic folder when you execute the command?

Yes, I’m. When I don’t have the right path to console file I get something like this for example

```auto
Could not open input file: /home/llama/public_html/mautic/bin/consoe

```

---

<div class="post-metadata">

### Author: ![luisc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/luisc/32/6510_2.png) [@luisc](https://forum.mautic.org/u/luisc)
#### Post date: [January 10, 2022, 8:29pm UTC](https://forum.mautic.org/t/console-command-not-working/22281/6 "2022-01-10T20:29:26Z")

</div>

In the `bin/error_log` file I’m seeing this now

```auto
[10-Jan-2022 20:01:02 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) in /home/llama/public_html/mautic/app/bundles/UserBundle/Model/UserModel.php on line 390

```

I don’t know if this is related. But I have **256M memory\_limit**

---

<div class="post-metadata">

### Author: ![luisc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/luisc/32/6510_2.png) [@luisc](https://forum.mautic.org/u/luisc)
#### Post date: [January 12, 2022, 12:13pm UTC](https://forum.mautic.org/t/console-command-not-working/22281/7 "2022-01-12T12:13:53Z")

</div>

@joeyk can you help me with this?

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [January 12, 2022, 12:15pm UTC](https://forum.mautic.org/t/console-command-not-working/22281/8 "2022-01-12T12:15:39Z")

</div>

Well, this is more like a linux thing then Mautic, I’m not a Linux Genie.  
However, you need to be sure, that you are editing the right php.ini file. You can see the ini in use in your Settings / System info in Mautic.  
Also don’t forget to restart Apache / Nginx after you change the settings.

---

<div class="post-metadata">

### Author: ![luisc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/luisc/32/6510_2.png) [@luisc](https://forum.mautic.org/u/luisc)
#### Post date: [January 12, 2022, 12:21pm UTC](https://forum.mautic.org/t/console-command-not-working/22281/9 "2022-01-12T12:21:33Z")

</div>

@joeyk What is the best config for php.ini?

This is what I have:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/60ac126d15496fbc90e71f2ad7ab5afa498470e8.png)

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [January 12, 2022, 8:24pm UTC](https://forum.mautic.org/t/console-command-not-working/22281/10 "2022-01-12T20:24:52Z")

</div>

It is hard to give a good advice on this one. Which tutorial did you follow?  
In mine I’m using 512M for memory usage.
