{"id":5089,"date":"2015-01-08T00:53:03","date_gmt":"2015-01-07T23:53:03","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=5089"},"modified":"2015-01-08T00:53:03","modified_gmt":"2015-01-07T23:53:03","slug":"php-ini","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2015\/01\/08\/php-ini\/","title":{"rendered":"aaah, PHP has a &#8220;per user&#8221; config file, and for web applications it&#8217;s not ~\/php.ini"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/www.linuxspy.com\/1141\/how-to-enable-custom-php-ini-for-php-fcgi\/\">http:\/\/www.linuxspy.com\/1141\/how-to-enable-custom-php-ini-for-php-fcgi\/<\/a>\u00a0\u2013 where I found it described, once I knew, how it&#8217;s called<\/li>\n<li><a href=\"http:\/\/HOST.com\/MY_PATH\/info.php\">http:\/\/HOST.com\/MY_PATH\/info.php<\/a>\u00a0\u2013 has a row named &#8220;Loaded Configuration File&#8221;, and it says $HOME\/public_html\/cgi-bin\/php.ini, if that file exists<\/li>\n<li>$ php -i\u00a0# this command line also has a row\u00a0named &#8220;Loaded Configuration File&#8221;, and it says $HOME\/php.ini, if that file exists<\/li>\n<li>but you can let your PHP (command line) call know, which php.ini you want it to use:<\/li>\n<li>$ php -c\u00a0~\/php.ini \u2026<\/li>\n<li>and it can sit anywhere, e.g.<\/li>\n<li>$ php -c ~\/a\/b\/c\/php.ini \u2026<\/li>\n<\/ul>\n<p>This lesson cost me quite some hours of lifetime. But it&#8217;s apparently a rather common PHP approach to have $HOME\/public_html\/cgi-bin\/php.ini \u2013 even if you don&#8217;t use\u00a0$HOME\/public_html\/cgi-bin or\u00a0$HOME\/public_html for anything else.<\/p>\n<p>Why I did not find that php.ini myself? Well, I had no name for it.<\/p>\n<p>Why did I not ask my web-space provider&#8217;s staff? Well, I did, but the right man only was in the office another 2 days later. And it was him, who explained me that.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.linuxspy.com\/1141\/how-to-enable-custom-php-ini-for-php-fcgi\/\u00a0\u2013 where I found it described, once I knew, how it&#8217;s called http:\/\/HOST.com\/MY_PATH\/info.php\u00a0\u2013 has a row named &#8220;Loaded Configuration File&#8221;, and it says $HOME\/public_html\/cgi-bin\/php.ini, if that file exists $ php -i\u00a0# this command line also has a row\u00a0named &#8220;Loaded Configuration File&#8221;, and it says $HOME\/php.ini, if that file exists but you can let your PHP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-5089","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1k5","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=5089"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5089\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=5089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=5089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=5089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}