{"id":181,"date":"2014-07-16T09:28:59","date_gmt":"2014-07-16T05:28:59","guid":{"rendered":"http:\/\/ustinych.net\/wordpress\/?p=181"},"modified":"2014-07-16T09:29:00","modified_gmt":"2014-07-16T05:29:00","slug":"apache2-php","status":"publish","type":"post","link":"https:\/\/ustinych.net\/wordpress\/?p=181","title":{"rendered":"Apache2 &#038; PHP"},"content":{"rendered":"<p>This is an experience I had last night. I created a test.php file with this text:<\/p>\n<dl class=\"codebox\">\n<dd><code style=\"color: #2e8b57;\">&lt;?php<br \/>\nphpinfo();<br \/>\n?&gt;\u00a0<\/code><\/dd>\n<\/dl>\n<p>Then I ran that file via the browser. It told me all about the current settings. It also told me which php.ini it used, I thought.<\/p>\n<p><span style=\"color: green;\">Configuration File (php.ini) Path \/usr\/local\/apache\/conf\/php.ini<\/span><\/p>\n<p>However, no matter how much I edited this php.ini, nothing seemed to have effect. (Don&#8217;t forget to restart the Apache server after having changed php.ini.)<\/p>\n<p>Finally I logged in in the qnap server as administrator and went to [Web Server]. There you will find a checkbox that enables you to edit PHP.INI. When viewing that file, I noticed that it was different from the one I had edited. After changing things in this one, the Apache too was restarted automatically, and YES now it all worked as expected.<\/p>\n<p>Where does the qnap&#8217;s php.ini reside? The answer was also in the text produced by phpinfo(). I should have looked at the NEXT line. It says:<\/p>\n<p><span style=\"color: green;\">Loaded Configuration File \/mnt\/HDA_ROOT\/.config\/php.ini<\/span><\/p>\n<p>The remaining question is why the loaded php.ini is a different one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is an experience I had last night. I created a test.php file with this text: &lt;?php phpinfo(); ?&gt;\u00a0 Then I ran that file via the browser. It told me all about the current settings. It also told me which php.ini it used, I thought. Configuration File (php.ini) Path \/usr\/local\/apache\/conf\/php.ini However, no matter how much\u2026 <span class=\"read-more\"><a href=\"https:\/\/ustinych.net\/wordpress\/?p=181\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-qnap"],"_links":{"self":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":1,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}