What php.ini used my system?Magento reindex from command line, still having timeout errorShowing/hiding div...

How can atoms be electrically neutral when there is a difference in the positions of the charges?

chrony vs. systemd-timesyncd – What are the differences and use cases as NTP clients?

Hacker Rank: Array left rotation

Significance and timing of "mux scans"

Auto Insert date into Notepad

Did 5.25" floppies undergo a change in magnetic coating?

CBP Reminds Travelers to Allow 72 Hours for ESTA. Why?

I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?

How to properly claim credit for peer review?

What type of postprocessing gives the effect of people standing out

Can you 'upgrade' leather armor to studded leather armor without purchasing the new armor directly?

How to speed up a process

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

How to count words in a line

Why does the author believe that the central mass that gas cloud HCN-0.009-0.044 orbits is smaller than our solar system?

Does music exist in Panem? And if so, what kinds of music?

Logistics of a hovering watercraft in a fantasy setting

What can I substitute for soda pop in a sweet pork recipe?

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

What do the pedals on grand pianos do?

How to count occurrences of Friday 13th

What is the difference between throw e and throw new Exception(e)?

Where is the fallacy here?

Is there a frame of reference in which I was born before I was conceived?



What php.ini used my system?


Magento reindex from command line, still having timeout errorShowing/hiding div by selecting radio buttonCannot correct php.ini error in Magento 2.0.2Magento 2.1 Backend and Frontend “Please read Magento System Requirements.”PHP - Recommended Configuration for Magento2Magento 2.2.2 does not load store properly and admin url through 404Cron causing high CPUHow to reload modules after modifying php files in Magento 2Component Manager Readiness Check ErrorsMAMP PRO + Magento 2













2















I'm using Magento 2.3.0 with PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS ), and I'm not sure which is the php.ini file that I should modify. I am currently modifying these two with the same information:




  • /etc/php/7.2/fpm/php.ini

  • /etc/php/7.2/cli/php.ini


But I guess the system only use one of the two, where can I check which of the two files is the one using the system?










share|improve this question



























    2















    I'm using Magento 2.3.0 with PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS ), and I'm not sure which is the php.ini file that I should modify. I am currently modifying these two with the same information:




    • /etc/php/7.2/fpm/php.ini

    • /etc/php/7.2/cli/php.ini


    But I guess the system only use one of the two, where can I check which of the two files is the one using the system?










    share|improve this question

























      2












      2








      2








      I'm using Magento 2.3.0 with PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS ), and I'm not sure which is the php.ini file that I should modify. I am currently modifying these two with the same information:




      • /etc/php/7.2/fpm/php.ini

      • /etc/php/7.2/cli/php.ini


      But I guess the system only use one of the two, where can I check which of the two files is the one using the system?










      share|improve this question














      I'm using Magento 2.3.0 with PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS ), and I'm not sure which is the php.ini file that I should modify. I am currently modifying these two with the same information:




      • /etc/php/7.2/fpm/php.ini

      • /etc/php/7.2/cli/php.ini


      But I guess the system only use one of the two, where can I check which of the two files is the one using the system?







      magento2 php php-7






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 17 hours ago









      DespotarsDespotars

      1497




      1497






















          3 Answers
          3






          active

          oldest

          votes


















          2














          check phpinfo();



          you will see "Configuration File (php.ini) Path" in info list, this is where you find php.ini file path






          share|improve this answer
























          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago






          • 1





            This is because of your magento .htaccess file. For testing purpose, you need to edit your project index file. pub/index.php and add phpinfo();die; there on top of the file

            – Shoaib Munir
            16 hours ago











          • yes! Thank you! :)

            – Despotars
            16 hours ago






          • 1





            Welcome..... :)

            – Shoaib Munir
            16 hours ago



















          1














          You can using phpinfo() to view php details.






          share|improve this answer
























          • You can create a phpinfo.php file in your website directory. Add below code to the file. code <?php phpinfo();

            – yoyo
            16 hours ago













          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago











          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Mohit Kumar Arora
            16 hours ago



















          1














          I want to clarify the difference, as the 2 files are not redundant and you may still need to modify both files in most cases. Especially since some times, we use the command line to run some Magento commands.



          As the other answers mention, running phpinfo() will let you know which php.ini file you would be using. However, the two files exist for two separate purposes.





          • /etc/php/7.2/fpm/php.ini



            This file will be used by your web server. So running phpinfo() in a PHP file which gets served by your web browser, will show you this ini file.




          • /etc/php/7.2/cli/php.ini



            This file will be used by the command line (CLI is an acronym for Command-Line Interface). So running commands in the CLI will, in fact, use this ini file and not the other one. It should be possible to verify this by running php -i in the command line (I don't have PHP installed on the OS I'm currently using in order to test the command).




          So as you can see, if for example, you enable an extension in the fpm/php.ini because Magento needs it, you will find that the magento CLI command would fail and complain if you don't also enable that module in the second file as well.
          (It may be a better idea to enable PHP extensions in another way, like php7.2enmod in Ubuntu, but this is just an example)






          share|improve this answer


























          • Thank you very much for your master class! I was going crazy because it is what you say, since the phpinfo () it appeared to me that it used the /fpm/php.ini and from the php --ini it appeared to me that it used the /cli/php.ini. Therefore, it is normal to edit both files with the configuration that Magento needs (the same information in both files), right?

            – Despotars
            8 hours ago











          • There are some cases where you don't need to have the exact information in both of the files (like memory allocation for example), but more often than not, you want to edit both files.

            – Dan
            2 hours ago













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f264276%2fwhat-php-ini-used-my-system%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          check phpinfo();



          you will see "Configuration File (php.ini) Path" in info list, this is where you find php.ini file path






          share|improve this answer
























          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago






          • 1





            This is because of your magento .htaccess file. For testing purpose, you need to edit your project index file. pub/index.php and add phpinfo();die; there on top of the file

            – Shoaib Munir
            16 hours ago











          • yes! Thank you! :)

            – Despotars
            16 hours ago






          • 1





            Welcome..... :)

            – Shoaib Munir
            16 hours ago
















          2














          check phpinfo();



          you will see "Configuration File (php.ini) Path" in info list, this is where you find php.ini file path






          share|improve this answer
























          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago






          • 1





            This is because of your magento .htaccess file. For testing purpose, you need to edit your project index file. pub/index.php and add phpinfo();die; there on top of the file

            – Shoaib Munir
            16 hours ago











          • yes! Thank you! :)

            – Despotars
            16 hours ago






          • 1





            Welcome..... :)

            – Shoaib Munir
            16 hours ago














          2












          2








          2







          check phpinfo();



          you will see "Configuration File (php.ini) Path" in info list, this is where you find php.ini file path






          share|improve this answer













          check phpinfo();



          you will see "Configuration File (php.ini) Path" in info list, this is where you find php.ini file path







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 16 hours ago









          Shoaib MunirShoaib Munir

          1,6161526




          1,6161526













          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago






          • 1





            This is because of your magento .htaccess file. For testing purpose, you need to edit your project index file. pub/index.php and add phpinfo();die; there on top of the file

            – Shoaib Munir
            16 hours ago











          • yes! Thank you! :)

            – Despotars
            16 hours ago






          • 1





            Welcome..... :)

            – Shoaib Munir
            16 hours ago



















          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago






          • 1





            This is because of your magento .htaccess file. For testing purpose, you need to edit your project index file. pub/index.php and add phpinfo();die; there on top of the file

            – Shoaib Munir
            16 hours ago











          • yes! Thank you! :)

            – Despotars
            16 hours ago






          • 1





            Welcome..... :)

            – Shoaib Munir
            16 hours ago

















          Yes but when I created the fie, I have this error: 404 error: Page not found php

          – Despotars
          16 hours ago





          Yes but when I created the fie, I have this error: 404 error: Page not found php

          – Despotars
          16 hours ago




          1




          1





          This is because of your magento .htaccess file. For testing purpose, you need to edit your project index file. pub/index.php and add phpinfo();die; there on top of the file

          – Shoaib Munir
          16 hours ago





          This is because of your magento .htaccess file. For testing purpose, you need to edit your project index file. pub/index.php and add phpinfo();die; there on top of the file

          – Shoaib Munir
          16 hours ago













          yes! Thank you! :)

          – Despotars
          16 hours ago





          yes! Thank you! :)

          – Despotars
          16 hours ago




          1




          1





          Welcome..... :)

          – Shoaib Munir
          16 hours ago





          Welcome..... :)

          – Shoaib Munir
          16 hours ago













          1














          You can using phpinfo() to view php details.






          share|improve this answer
























          • You can create a phpinfo.php file in your website directory. Add below code to the file. code <?php phpinfo();

            – yoyo
            16 hours ago













          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago











          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Mohit Kumar Arora
            16 hours ago
















          1














          You can using phpinfo() to view php details.






          share|improve this answer
























          • You can create a phpinfo.php file in your website directory. Add below code to the file. code <?php phpinfo();

            – yoyo
            16 hours ago













          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago











          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Mohit Kumar Arora
            16 hours ago














          1












          1








          1







          You can using phpinfo() to view php details.






          share|improve this answer













          You can using phpinfo() to view php details.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 17 hours ago









          yoyoyoyo

          244




          244













          • You can create a phpinfo.php file in your website directory. Add below code to the file. code <?php phpinfo();

            – yoyo
            16 hours ago













          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago











          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Mohit Kumar Arora
            16 hours ago



















          • You can create a phpinfo.php file in your website directory. Add below code to the file. code <?php phpinfo();

            – yoyo
            16 hours ago













          • Yes but when I created the fie, I have this error: 404 error: Page not found php

            – Despotars
            16 hours ago











          • This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

            – Mohit Kumar Arora
            16 hours ago

















          You can create a phpinfo.php file in your website directory. Add below code to the file. code <?php phpinfo();

          – yoyo
          16 hours ago







          You can create a phpinfo.php file in your website directory. Add below code to the file. code <?php phpinfo();

          – yoyo
          16 hours ago















          Yes but when I created the fie, I have this error: 404 error: Page not found php

          – Despotars
          16 hours ago





          Yes but when I created the fie, I have this error: 404 error: Page not found php

          – Despotars
          16 hours ago













          This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

          – Mohit Kumar Arora
          16 hours ago





          This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

          – Mohit Kumar Arora
          16 hours ago











          1














          I want to clarify the difference, as the 2 files are not redundant and you may still need to modify both files in most cases. Especially since some times, we use the command line to run some Magento commands.



          As the other answers mention, running phpinfo() will let you know which php.ini file you would be using. However, the two files exist for two separate purposes.





          • /etc/php/7.2/fpm/php.ini



            This file will be used by your web server. So running phpinfo() in a PHP file which gets served by your web browser, will show you this ini file.




          • /etc/php/7.2/cli/php.ini



            This file will be used by the command line (CLI is an acronym for Command-Line Interface). So running commands in the CLI will, in fact, use this ini file and not the other one. It should be possible to verify this by running php -i in the command line (I don't have PHP installed on the OS I'm currently using in order to test the command).




          So as you can see, if for example, you enable an extension in the fpm/php.ini because Magento needs it, you will find that the magento CLI command would fail and complain if you don't also enable that module in the second file as well.
          (It may be a better idea to enable PHP extensions in another way, like php7.2enmod in Ubuntu, but this is just an example)






          share|improve this answer


























          • Thank you very much for your master class! I was going crazy because it is what you say, since the phpinfo () it appeared to me that it used the /fpm/php.ini and from the php --ini it appeared to me that it used the /cli/php.ini. Therefore, it is normal to edit both files with the configuration that Magento needs (the same information in both files), right?

            – Despotars
            8 hours ago











          • There are some cases where you don't need to have the exact information in both of the files (like memory allocation for example), but more often than not, you want to edit both files.

            – Dan
            2 hours ago


















          1














          I want to clarify the difference, as the 2 files are not redundant and you may still need to modify both files in most cases. Especially since some times, we use the command line to run some Magento commands.



          As the other answers mention, running phpinfo() will let you know which php.ini file you would be using. However, the two files exist for two separate purposes.





          • /etc/php/7.2/fpm/php.ini



            This file will be used by your web server. So running phpinfo() in a PHP file which gets served by your web browser, will show you this ini file.




          • /etc/php/7.2/cli/php.ini



            This file will be used by the command line (CLI is an acronym for Command-Line Interface). So running commands in the CLI will, in fact, use this ini file and not the other one. It should be possible to verify this by running php -i in the command line (I don't have PHP installed on the OS I'm currently using in order to test the command).




          So as you can see, if for example, you enable an extension in the fpm/php.ini because Magento needs it, you will find that the magento CLI command would fail and complain if you don't also enable that module in the second file as well.
          (It may be a better idea to enable PHP extensions in another way, like php7.2enmod in Ubuntu, but this is just an example)






          share|improve this answer


























          • Thank you very much for your master class! I was going crazy because it is what you say, since the phpinfo () it appeared to me that it used the /fpm/php.ini and from the php --ini it appeared to me that it used the /cli/php.ini. Therefore, it is normal to edit both files with the configuration that Magento needs (the same information in both files), right?

            – Despotars
            8 hours ago











          • There are some cases where you don't need to have the exact information in both of the files (like memory allocation for example), but more often than not, you want to edit both files.

            – Dan
            2 hours ago
















          1












          1








          1







          I want to clarify the difference, as the 2 files are not redundant and you may still need to modify both files in most cases. Especially since some times, we use the command line to run some Magento commands.



          As the other answers mention, running phpinfo() will let you know which php.ini file you would be using. However, the two files exist for two separate purposes.





          • /etc/php/7.2/fpm/php.ini



            This file will be used by your web server. So running phpinfo() in a PHP file which gets served by your web browser, will show you this ini file.




          • /etc/php/7.2/cli/php.ini



            This file will be used by the command line (CLI is an acronym for Command-Line Interface). So running commands in the CLI will, in fact, use this ini file and not the other one. It should be possible to verify this by running php -i in the command line (I don't have PHP installed on the OS I'm currently using in order to test the command).




          So as you can see, if for example, you enable an extension in the fpm/php.ini because Magento needs it, you will find that the magento CLI command would fail and complain if you don't also enable that module in the second file as well.
          (It may be a better idea to enable PHP extensions in another way, like php7.2enmod in Ubuntu, but this is just an example)






          share|improve this answer















          I want to clarify the difference, as the 2 files are not redundant and you may still need to modify both files in most cases. Especially since some times, we use the command line to run some Magento commands.



          As the other answers mention, running phpinfo() will let you know which php.ini file you would be using. However, the two files exist for two separate purposes.





          • /etc/php/7.2/fpm/php.ini



            This file will be used by your web server. So running phpinfo() in a PHP file which gets served by your web browser, will show you this ini file.




          • /etc/php/7.2/cli/php.ini



            This file will be used by the command line (CLI is an acronym for Command-Line Interface). So running commands in the CLI will, in fact, use this ini file and not the other one. It should be possible to verify this by running php -i in the command line (I don't have PHP installed on the OS I'm currently using in order to test the command).




          So as you can see, if for example, you enable an extension in the fpm/php.ini because Magento needs it, you will find that the magento CLI command would fail and complain if you don't also enable that module in the second file as well.
          (It may be a better idea to enable PHP extensions in another way, like php7.2enmod in Ubuntu, but this is just an example)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 hours ago

























          answered 11 hours ago









          DanDan

          1,076723




          1,076723













          • Thank you very much for your master class! I was going crazy because it is what you say, since the phpinfo () it appeared to me that it used the /fpm/php.ini and from the php --ini it appeared to me that it used the /cli/php.ini. Therefore, it is normal to edit both files with the configuration that Magento needs (the same information in both files), right?

            – Despotars
            8 hours ago











          • There are some cases where you don't need to have the exact information in both of the files (like memory allocation for example), but more often than not, you want to edit both files.

            – Dan
            2 hours ago





















          • Thank you very much for your master class! I was going crazy because it is what you say, since the phpinfo () it appeared to me that it used the /fpm/php.ini and from the php --ini it appeared to me that it used the /cli/php.ini. Therefore, it is normal to edit both files with the configuration that Magento needs (the same information in both files), right?

            – Despotars
            8 hours ago











          • There are some cases where you don't need to have the exact information in both of the files (like memory allocation for example), but more often than not, you want to edit both files.

            – Dan
            2 hours ago



















          Thank you very much for your master class! I was going crazy because it is what you say, since the phpinfo () it appeared to me that it used the /fpm/php.ini and from the php --ini it appeared to me that it used the /cli/php.ini. Therefore, it is normal to edit both files with the configuration that Magento needs (the same information in both files), right?

          – Despotars
          8 hours ago





          Thank you very much for your master class! I was going crazy because it is what you say, since the phpinfo () it appeared to me that it used the /fpm/php.ini and from the php --ini it appeared to me that it used the /cli/php.ini. Therefore, it is normal to edit both files with the configuration that Magento needs (the same information in both files), right?

          – Despotars
          8 hours ago













          There are some cases where you don't need to have the exact information in both of the files (like memory allocation for example), but more often than not, you want to edit both files.

          – Dan
          2 hours ago







          There are some cases where you don't need to have the exact information in both of the files (like memory allocation for example), but more often than not, you want to edit both files.

          – Dan
          2 hours ago




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f264276%2fwhat-php-ini-used-my-system%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Installing LyX: “No textclass is found.”LyX installation error- text class not found- 'Reconfigure' or...

          (1602) Indiana Índice Designación y nombre Características orbitales Véase...

          Universidad Autónoma de Occidente Índice Historia Campus Facultades Programas Académicos Medios de...