{"id":223,"date":"2011-06-10T04:53:00","date_gmt":"2011-06-10T04:53:00","guid":{"rendered":"http:\/\/pheonixsolutions.com\/?p=223"},"modified":"2026-04-13T20:24:39","modified_gmt":"2026-04-13T14:54:39","slug":"php-info-page-is-not-working","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/php-info-page-is-not-working\/","title":{"rendered":"PHP info page is not working"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If your PHP info page is not reflecting changes on your VPS, it is usually due to the PHP configuration not being loaded correctly. This solution ensures that your custom php.ini file is properly applied using CGI.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access to VPS via SSH<\/li>\n\n\n\n<li>cPanel environment<\/li>\n\n\n\n<li>Basic knowledge of file editing (vi\/nano)<\/li>\n\n\n\n<li>Correct username and directory path<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Copy PHP CGI file : <\/strong><br>Copy the default PHP CGI file to your user directory:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">        cp \/usr\/local\/cpanel\/cgi-sys\/php5.cgi \/home\/username\/public_html\/cgi-bin<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Create a CGI script<\/strong><br>Navigate to the cgi-bin directory and create a file:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">        cd \/home\/username\/public_html\/cgi-bin<br>        vi phpini.cgi<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">       <strong>Add the following content:<\/strong><br>         #!\/bin\/sh<br>         export PHPRC=\/home\/username\/public_html<br>         exec \/home\/username\/public_html\/cgi-bin\/php5.cgi<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Add the php.ini file<\/strong><br>Place your custom php.ini file in: <\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">       \/home\/username\/public_html<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Update .htaccess<\/strong><br>Edit the .htaccess file in your public_html directory and add:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">       AddHandler php-cgi .php<br>       Action php-cgi \/cgi-bin\/phpini.cgi<\/p>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li><strong>Set permissions<\/strong><br>Ensure the CGI script has the correct permissions:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">        chmod 755 \/home\/username\/public_html\/cgi-bin\/phpini.cgi<\/p>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li><strong>Verify<\/strong><br>Now check your PHP info page in the browser.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">By configuring PHP to use a custom php.ini via CGI, your changes should reflect correctly on the PHP info page. This method ensures your VPS uses the intended configuration file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction If your PHP info page is not reflecting changes on your VPS, it is usually due to the PHP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-3B","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":9947,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/223\/revisions\/9947"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}