Question Show Hello, I need to increase the PHP Max. Input Vars and PHP Max. Input Time to install a theme in wordpress. I’m using nginx on ubuntu 18.04 with easyengine commands. The php version is 7.2 and the path for php.ini is etc/php/7.2/cli/php.ini In putty used sudo nano /etc/php/7.2/cli/php.ini and after change max_imput_vars and max_imput_time restarted nginx with sudo service nginx restart Can someone help here? I’ve seen others with fpm instead of cli paths. I’m a noob and I’m stuck. Thanks. Submit an answer This textbox defaults to using Markdown to format your answer. You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link! Sign In or Sign Up to Answer These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others. phpinfo says the file location is Additional
Looking in them none of them have anything that deals with I edit this in the Does NGINX cache this somewhere that I need to delete in order for these changes to be made live? I have tried and it tells me the path for The phpinfo() tells me its I have edited both with no luck. if I do Last updated on June 7th, 2022 | 2 replies As there are multiple versions of PHP with different sever configurations, php.ini could be located in several different folders. Method 1One way to find out exactly which info.php
Load this file in your browser, press
This will tell you the exact location of the php.ini file you want to edit. Method 2In Linux, run this command to locate the
Or in Windows Command Line:
The result should be something like this:
In the above example, we can see that the PHP install is located in CLI
Apache
Nginx or Apache with PHP-FPM
Method 3Using the You should see a list of php.ini files here. Try editing one of them and restarting you web server to see if makes the required changes. Editing php.ini in LinuxApacheOn Apache, To edit:
However, if you are using PHP FPM, it may be located in To edit:
To save file and exit, press You must restart Apache after altering
If you are using PHP-FPM, you must restart that service. Replace
Nginx or Apache with PHP-FPMNginx uses PHP FPM and <code>php.ini</code>&nbsp;is usually located in&nbsp;<code>/etc/php/8.1/fpm/php.ini</code>.&nbsp;Replace&nbsp;<code>8.1</code>&nbsp;with your own version, e.g,&nbsp;<code>php5.6</code>,&nbsp;<code>php7.4</code>, etc.</p><div class="code-wrap"><pre id="supercoder-block_629f3eb9c73bc" class="code language-bash"><code class="language-bash">sudo nano /etc/php/8.1/fpm/php.ini</code></pre><div class="btn-copy-wrapper"><button class="btn-copy" title="Copy"></button></div></div><p>Save and exit (press <code>CTRL</code> + <code>X</code>, press <code>Y</code> and then press <code>ENTER</code>)</p><p>You must restart Nginx after altering&nbsp;<code>php.ini</code>.</p><div class="code-wrap"><pre id="supercoder-block_629f3ed8c73bd" class="code language-bash"><code class="language-bash">sudo systemctl reload nginx</code></pre><div class="btn-copy-wrapper"><button class="btn-copy" title="Copy"></button></div></div><a class="anchor" id="id-older-versions"></a><h2>Older Versions</h2><p>For versions of Ubuntu <em>lower</em> than 16.04, <code>/etc/php/5.6/</code>,<code>/etc/php/7.0/</code>,<code>/etc/php/7.1/</code>, and so on, are replaced by <code>/etc/php5/</code> and so on. Otherwise, these paths remain accurate.<span id="ezoic-pub-ad-placeholder-130" class="ezoic-adpicker-ad"></span></p><p>Let me know if this helped. Follow me on <a href="https://twitter.com/DevAnswers" target="_blank" rel="noreferrer">Twitter</a>, <a href="https://www.facebook.com/DevAnswers-326312698016716/" target="_blank" rel="noreferrer">Facebook</a> and <a href="https://www.youtube.com/channel/UCXvcK0LxaefzAgkUJWqd0FA" target="_blank" rel="noreferrer">YouTube</a>, or 🍊 <a href="https://www.buymeacoffee.com/DevAnswers" target="_blank" rel="noreferrer">buy me a smoothie</a>.</p><p>p.s. I increased my AdSense revenue by 200% using AI 🤖. Read my <a target="_blank" href="https://devanswers.co/ezoic-review-increase-adsense-ad-revenue/">Ezoic review</a> to find out how.</p></div></article><div id="comments" class="comments-area"><a class="anchor" id="comments-anchor"></a><h2 class="comments-title">2 replies</h2><div id="respond" class="comment-respond"><h3 id="reply-title" class="comment-reply-title">Leave a reply <small></small></h3><form action="https://devanswers.co/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="comment-notes"><span id="email-notes">Your email address will not be published.</span> <span class="required-field-message" aria-hidden="true">Required fields are marked <span class="required" aria-hidden="true">*</span></span></p><p class="comment-form-comment"><label for="comment">Comment <span class="required" aria-hidden="true">*</span></label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required></textarea></p><p class="comment-form-author"><label for="author">Name <span class="required" aria-hidden="true">*</span></label> <input id="author" name="author" size="30" maxlength="245" required></p><p class="comment-form-email"><label for="email">Email <span class="required" aria-hidden="true">*</span></label> <input id="email" name="email" type="email" size="30" maxlength="100" aria-describedby="email-notes" required></p><p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"> <label for="wp-comment-cookies-consent">Save my name, email, and website in this browser for the next time I comment.</label></p><p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Post Comment"> <input type="hidden" name="comment_post_ID" value="464" id="comment_post_ID"> <input type="hidden" name="comment_parent" id="comment_parent" value="0"></p><p style="display:none"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="ab4adb6fb4"></p><p style="display:none!important"><label>Δ<textarea name="ak_hp_textarea" cols="45" rows="8" maxlength="100"></textarea></label><input type="hidden" id="ak_js_1" name="ak_js" value="187"><script>document.getElementById("ak_js_1").setAttribute("value",(new Date()).getTime());</p><a target="_blank" rel="nofollow" id="cancel-comment-reply-link" href="https://devanswers.co/ubuntu-php-php-ini-configuration-file/#respond" style="display:none">Cancel reply</a></div><ol class="comment-list"><li id="comment-29626" class="comment even thread-even depth-1"><article id="div-comment-29626" class="comment-body"><footer class="comment-meta"><div class="comment-author vcard"><img alt="" src="https://secure.gravatar.com/avatar/2c463d63c6611bc3b5e194d7c53ff6d3?s=32&d=identicon&r=g" srcset="https://secure.gravatar.com/avatar/2c463d63c6611bc3b5e194d7c53ff6d3?s=64&d=identicon&r=g 2x" class="avatar avatar-32 photo" height="32" width="32" loading="lazy"> <b class="fn">Bruno Garcia</b> <span class="says">says:</span></div><div class="comment-metadata"><a target="_blank" href="https://devanswers.co/ubuntu-php-php-ini-configuration-file/#comment-29626"><time datetime="2021-09-10T12:13:20+00:00">September 10, 2021 at 12:13 pm</time></a></div></footer><div class="comment-content"><p>Very good… this information saved me!</p></div><div class="reply"><a target="_blank" rel="nofollow" class="comment-reply-link" href="https://devanswers.co/ubuntu-php-php-ini-configuration-file/#comment-29626" data-commentid="29626" data-postid="464" data-belowelement="div-comment-29626" data-respondelement="respond" data-replyto="Reply to Bruno Garcia" aria-label="Reply to Bruno Garcia">Reply</a></div></article></li><li id="comment-19862" class="comment odd alt thread-odd thread-alt depth-1"><article id="div-comment-19862" class="comment-body"><footer class="comment-meta"><div class="comment-author vcard"><img alt="" src="https://secure.gravatar.com/avatar/250bb06a78dde41fe62abac219c46cca?s=32&d=identicon&r=g" srcset="https://secure.gravatar.com/avatar/250bb06a78dde41fe62abac219c46cca?s=64&d=identicon&r=g 2x" class="avatar avatar-32 photo" height="32" width="32" loading="lazy"> <b class="fn">Soufian</b> <span class="says">says:</span></div><div class="comment-metadata"><a target="_blank" href="https://devanswers.co/ubuntu-php-php-ini-configuration-file/#comment-19862"><time datetime="2021-02-17T08:22:43+00:00">February 17, 2021 at 8:22 am</time></a></div></footer><div class="comment-content"><p>Thanks</p></div><div class="reply"><a target="_blank" rel="nofollow" class="comment-reply-link" href="https://devanswers.co/ubuntu-php-php-ini-configuration-file/#comment-19862" data-commentid="19862" data-postid="464" data-belowelement="div-comment-19862" data-respondelement="respond" data-replyto="Reply to Soufian" aria-label="Reply to Soufian">Reply</a></div></article></li></ol></article></section></div></div><div id="article-sidebar"><div class="ad-wrapper"><span id="ezoic-pub-ad-placeholder-102"></span></div><div class="ad-wrapper"><span id="ezoic-pub-ad-placeholder-121"></span><span class="ezoic-ad ezoic-at-0 large-leaderboard-1 large-leaderboard-1121 adtester-container adtester-container-121 ezoic-ad-adaptive" data-ez-name="devanswers_co-large-leaderboard-1"><span class="ezoic-ad large-leaderboard-1 large-leaderboard-1-multi-121 adtester-container adtester-container-121" data-ez-name="devanswers_co-large-leaderboard-1"><span id="div-gpt-ad-devanswers_co-large-leaderboard-1-0" ezaw="300" ezah="262" style="position:relative;z-index:0;display:inline-block;padding:0;min-height:262px;min-width:300px" class="ezoic-ad"><script data-ezscrex="false" data-cfasync="false" style="display:none">if(typeof ez_ad_units!='undefined'){ez_ad_units.push([[300,250],'devanswers_co-large-leaderboard-1','ezslot_2',121,'0','0'])};if(typeof __ez_fad_position!='undefined'){__ez_fad_position('div-gpt-ad-devanswers_co-large-leaderboard-1-0')}; Where is PHP ini in Nginx ubuntu?Nginx or Apache with PHP-FPM
ini is usually located in /etc/php/8.1/fpm/php. ini .
Where is PHP ini on Ubuntu?The default location for the php. ini file is: Ubuntu 16.04: /etc/php/7.0/apache2.
How install PHP in Ubuntu Nginx?How to setup Nginx, PHP and PHP-FPM. Perform an apt-get update to ensure access to the latest packages.. Install Nginx on Ubuntu.. Install the php-fpm for Nginx package.. Edit the server's default config file to support PHP in Nginx.. Restart the PHP configured Nginx server.. Add a PHP file to Nginx's html directory.. Where do I find PHP ini file?user. ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. This file is located on your server in the /public_html folder.
|