{"id":4310,"date":"2022-06-28T10:10:42","date_gmt":"2022-06-28T09:10:42","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=4310"},"modified":"2022-07-08T13:56:52","modified_gmt":"2022-07-08T12:56:52","slug":"php-ini","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/servers-hosting\/ubuntu\/php-ubuntu\/php-ini","title":{"rendered":"php.ini"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Locating php.ini<\/h4>\n\n\n\n<p>Your system may well have more than one PHP version \/ install. Even with the same version there can be different versions, e.g. cli and fpm<\/p>\n\n\n\n<p>The best way to find out what version apache is using is to load a page with the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  phpinfo();\n  die;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Edit php.ini<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">Creating a backup copy first<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>cp \/etc\/php\/7.4\/fpm\/php.ini \/etc\/php\/7.4\/fpm\/php-old.ini<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Editing the file<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/php\/7.4\/fpm\/php.ini<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Searching for text within file<\/h5>\n\n\n\n<p>CTRL+W<br>Enter your text, press return<\/p>\n\n\n\n<p>To find the next occurrence use CTRL+W again and just press return<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Specific values<\/h4>\n\n\n\n<p>upload_max_filesize &#8211; Found that apache restart didn&#8217;t update, server reboot caused new setting to load.<\/p>\n\n\n\n<p>post_max_size &#8211; Found that apache restart didn&#8217;t update, server reboot caused new setting to load.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Locating php.ini Your system may well have more than one PHP version \/ install. Even with the same version there can be different versions, e.g. cli and fpm The best way to find out what version apache is using is to load a page with the following: Edit php.ini Creating a backup copy first Editing [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[344],"tags":[],"class_list":["post-4310","post","type-post","status-publish","format-standard","hentry","category-php-ubuntu"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=4310"}],"version-history":[{"count":6,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4310\/revisions"}],"predecessor-version":[{"id":4333,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4310\/revisions\/4333"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=4310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=4310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=4310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}