{"id":81338,"date":"2023-03-22T11:59:24","date_gmt":"2023-03-22T11:59:24","guid":{"rendered":"\/tutorials\/?p=81338"},"modified":"2026-03-09T19:18:04","modified_gmt":"2026-03-09T19:18:04","slug":"what-is-php-ini","status":"publish","type":"post","link":"\/ng\/tutorials\/what-is-php-ini","title":{"rendered":"What Is PHP.ini File, and Where It\u2019s Located? Understanding Main Parameters and Editing"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p><strong>PHP.ini<\/strong> is a configuration file containing your web server&rsquo;s PHP settings. Every time PHP starts, your system will search for it and run the file to enable your site&rsquo;s scripting rules.<\/p><p>Although it is pre-configured, you may need to change the default PHP settings to suit your needs. For example, you can modify the session cookie&rsquo;s name and lifetime to enable the remember-me feature on your site.<\/p><p>In this article, we will explain the <strong>PHP.ini<\/strong> file location and its important parameters. You will also learn how to edit the file to change your PHP settings.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Linux-Commands-Cheat-Sheet.pdf\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"566\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/public\" alt=\"\" class=\"wp-image-69262\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div><p>\n\n\n<div class=\"protip\">\n                    <h2 class=\"featured-snippet title\">What Is PHP.ini?<\/h2>\n                    <p><strong>PHP.ini<\/strong> is a configuration file containing your web server&rsquo;s PHP settings. It lets you control your site&rsquo;s PHP-related rules, such as setting the size limit when uploading files and hiding error messages.<br>\n<br>\nThis PHP configuration file location varies depending on the web server. To change its settings, edit the file and change the parameter&rsquo;s value via a text editor.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-where-is-the-php-ini-file-located\">Where Is the PHP.ini File Located<\/h3><p>The <strong>PHP.ini<\/strong> location varies depending on your server, PHP version, and operating system. When running PHP, the system searches for the file in the following places:<\/p><ol class=\"wp-block-list\">\n<li>The <a href=\"https:\/\/docs.php.earth\/php\/sapi\/\">server application programming interface (SAPI)<\/a> module-specific location.<\/li>\n\n\n\n<li>The PHP runtime configuration (PHPRC) environment variable.<\/li>\n\n\n\n<li>Current working directory, searchable using the <a href=\"https:\/\/www.php.net\/manual\/en\/function.getcwd.php\"><strong>getcwd()<\/strong><\/a> function.<\/li>\n\n\n\n<li>The installed PHP or web server&rsquo;s directory.<\/li>\n<\/ol><p>Instead of locating their INI files manually through their hosting&rsquo;s file managers, users can do it automatically.<\/p><p>Among several methods, creating a new PHP file inside your domain&rsquo;s root directory is the easiest. For this tutorial, we will show you how to do it via <a href=\"\/ng\/support\/1583483-comprehensive-guide-to-hpanel-at-hostinger\/\">hPanel<\/a>:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>hPanel &rarr; Hosting <\/strong>&rarr; <strong>Manage<\/strong>.<\/li>\n\n\n\n<li>Click <strong>File Manager<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/File-manager-button-in-hPanel.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"482\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/File-manager-button-in-hPanel.png\/public\" alt=\"File manager button in hPanel\n\" class=\"wp-image-81343\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/File-manager-button-in-hPanel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/File-manager-button-in-hPanel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/File-manager-button-in-hPanel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/File-manager-button-in-hPanel.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Navigate to your site&rsquo;s root directory. In our case, it is <strong>\/home\/username\/public_html<\/strong>.<\/li>\n\n\n\n<li>Select <strong>+ File<\/strong> icon. Enter any filename with a PHP extension, such as <strong>phpinfo.php<\/strong>. Then, click <strong>Create New File<\/strong>.<\/li>\n\n\n\n<li>Right-click the new file &rarr; <strong>Edit<\/strong>, and<strong> <\/strong>enter the following code:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n   phpinfo();\n?&gt;<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>Click <strong>Save Changes.<\/strong><\/li>\n\n\n\n<li>Enter <strong>yourdomain.tld\/phpinfo.php <\/strong>on your web browser and hit enter.<\/li>\n\n\n\n<li>Search for the <strong>Loaded configuration file<\/strong>. The <strong>PHP.ini <\/strong>path should look like this:<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP.ini-location-in-PHP-info-output.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"248\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP.ini-location-in-PHP-info-output.png\/public\" alt=\"PHP.ini location in PHP info output\n\" class=\"wp-image-81344\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP.ini-location-in-PHP-info-output.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP.ini-location-in-PHP-info-output.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP.ini-location-in-PHP-info-output.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP.ini-location-in-PHP-info-output.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP.ini-location-in-PHP-info-output.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><p>This method also works in cPanel to locate the <strong>PHP.ini <\/strong>file of a virtual private server (<a href=\"\/ng\/vps-hosting\">VPS<\/a>). Alternatively, <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583245-how-to-connect-to-your-account-via-ssh\">connect using SSH<\/a> and execute the following command:<\/p><pre class=\"wp-block-preformatted\">php -i | grep 'Configuration File'<\/pre><p>Your SSH client will output the directory, which is <strong>usr\/local\/lib <\/strong>for most web servers. In addition to querying the location, you can move and edit the<strong> PHP.ini <\/strong>file with the SSH client.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Learn More about VPS and Linux Commands<\/h4>\n                    <p><br>\n<a href=\"\/ng\/tutorials\/what-is-vps-hosting\">What is VPS Hosting<\/a><br>\n<a href=\"\/ng\/tutorials\/linux-commands\">40 Essential Linux Commands That Every User Should Know<\/a><\/p>\n                <\/div>\n\n\n\n<\/p><p>Note that the <strong>PHP.ini<\/strong> file is usually inaccessible for shared hosting users. In this case, use the hosting control panel&rsquo;s configuration menu or <a href=\"\/ng\/tutorials\/locate-and-create-htaccess\">edit the <strong>.htaccess<\/strong> file<\/a> to change PHP settings.<\/p><h2 class=\"wp-block-heading\" id=\"h-important-parameters-of-the-php-ini-file\">Important Parameters of the PHP.ini File<\/h2><p>In this section, we will explain the most important parameters in the <strong>PHP.ini<\/strong> file, including their values and purposes. These parameters are also known as <strong>directives<\/strong>.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> Some parameters and values may be unavailable on certain PHP versions. Refer to the full <a href=\"https:\/\/www.php.net\/manual\/en\/ini.list.php\">PHP.ini directive list<\/a> to learn more about the changes.<\/p><\/div>\n\n\n\n<\/p><p><strong>display_errors<\/strong><\/p><p>Determine if PHP error messages are displayed to users during script execution or not using the <strong>on <\/strong>and <strong>off <\/strong>value. Due to security reasons, you should use this directive only when developing your site.<\/p><p><strong>error_reporting<\/strong><\/p><p>Set which error message is displayed to users when <strong>display_errors <\/strong>is enabled. The <strong>error_reporting <\/strong>parameter takes several <a href=\"https:\/\/www.php.net\/manual\/en\/errorfunc.constants.php\">constants to display different errors<\/a>.<\/p><p>You may use multiple constants and exclude specific errors. For instance, to show all errors but the deprecation warning, use the following:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">E_ALL &amp;amp; ~E_DEPRECATED<\/pre><p><strong>error_log<\/strong><\/p><p>Specify the file where PHP will log errors for error troubleshooting. Before enabling it, ensure the web server&rsquo;s users have permission to write the file.<\/p><p><strong>file_uploads<\/strong><\/p><p>Set whether the HTTP file uploads are enabled or not. The <strong>on <\/strong>value will allow users to upload files to your site, while <strong>off <\/strong>disables it.<\/p><p><strong>upload_max_filesize<\/strong><\/p><p>This parameter determines the <a href=\"\/ng\/tutorials\/php-maximum-upload-size\">maximum uploaded file size PHP allows<\/a> on your site. Since the default value is <strong>2 MB<\/strong>, you can <a href=\"\/ng\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress\">increase the maximum upload file size<\/a> limit to enable users to upload large files.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p> Check out this tutorial on how to <a href=\"\/ng\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress\">fix the upload_max_filesize issue<\/a> in case of an error.<\/p>\n                <\/div>\n\n\n\n<\/p><p><strong>post_max_size<\/strong><\/p><p>The maximum POST data size PHP can collect from HTML forms on your site. The value should be larger than the maximum file size, as it is handled with the <a href=\"https:\/\/www.w3schools.com\/php\/php_superglobals_post.asp\">POST function<\/a>.<\/p><p><strong>allow_url_fopen<\/strong><\/p><p>Write a PHP script to access remote files from another server. It is <strong>off <\/strong>by default, as enabling it may expose your server to a code injection attack.<\/p><p><strong>allow_url_include<\/strong><\/p><p>This directive has a similar function as <strong>allow_url_open<\/strong>, but uses the<strong> <\/strong><a href=\"https:\/\/www.w3schools.com\/php\/php_includes.asp\">include<strong> <\/strong>function<\/a>. To enable it, <strong>allow_url_open <\/strong>must be set to <strong>on<\/strong>.<\/p><p><strong>session.name<\/strong><\/p><p>This directive sets the current session&rsquo;s name used in cookies and URLs. You may change the default <strong>PHPSESSID<\/strong> value to any descriptive name with alphanumeric characters.<\/p><p><strong>session.auto_start<\/strong><\/p><p>Choose whether a PHP session starts automatically or on request when users access your site. If you set the value to <strong>0, <\/strong>the session will start manually using the <strong>session_start <\/strong>script.<\/p><p><strong>session.cookie_lifetime<\/strong><\/p><p>Specify a session cookie&rsquo;s lifetime in your site&rsquo;s visitors&rsquo; browsers. By default, the value is set to <strong>0 <\/strong>seconds, meaning your site erases visitors&rsquo; session data after they close their browsers.<\/p><p><strong>memory_limit<\/strong><\/p><p>Set the maximum amount of RAM a PHP script can use. Be careful when increasing the memory limit, as wrong configurations may lead to slow sites or server outages.<\/p><p><strong>max_execution_time<\/strong><\/p><p>Determine a script&rsquo;s maximum running time. You can change the default 30-second maximum execution time to any value, but setting it too high might cause performance issues.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p> Refer to our guide on how to <a href=\"\/ng\/tutorials\/how-to-fix-maximum-execution-time-exceeded-error-wordpress\"> fix Fatal Error: max_execution_time exceeded<\/a> if you get this error code.<\/p>\n                <\/div>\n\n\n\n<\/p><p><strong>max_input_time<\/strong><\/p><p>Set how long a script can parse data collected from HTML forms on your site using a POST or <a href=\"https:\/\/www.w3schools.com\/php\/php_superglobals_get.asp\">GET method<\/a>. The more data your site collects, the higher the <strong>max_input_time <\/strong>value should be.<\/p><p><strong>upload_temp_dir<\/strong><\/p><p>Specify the temporary directory for storing uploaded files. All users should be able to write in the specified directory, or PHP will use the system&rsquo;s default.<\/p><p><strong>realpath_cache_ttl<\/strong><\/p><p>Set the duration for your system to cache the <a href=\"https:\/\/www.geeksforgeeks.org\/php-realpath-function\/\">realpath<\/a> information. We recommend increasing the value for systems with rarely changing files.<\/p><p><strong>arg_separator.output<\/strong><\/p><p>Use this data-handling directive to separate arguments in PHP-generated URLs. Its default value is an ampersand (<strong>&amp;<\/strong>).<\/p><p><strong>arg_separator.output<\/strong><\/p><p>Set the separator PHP uses to parse input URLs into variables. By default, it is an ampersand, but you can change it into other symbols like semicolons.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-edit-the-php-ini-file\">How to Edit the PHP.ini File<\/h2><p>Before you edit the<strong> PHP.ini<\/strong> file, check your server&rsquo;s PHP configuration using <strong>phpinfo.php<\/strong>. If configured as an Apache module, change the PHP setting <a href=\"https:\/\/www.php.net\/manual\/en\/configuration.file.per-user.php\">using your <strong>.htaccess <\/strong>file<\/a>.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> Create a backup of your <strong>PHP.ini<\/strong> file before editing. It lets you quickly restore the file, as misconfigurations may result in performance issues or downtime.<\/p><\/div>\n\n\n\n<\/p><p>For PHP CGI, directly edit the INI file using cPanel&rsquo;s <a href=\"https:\/\/docs.cpanel.net\/cpanel\/software\/multiphp-ini-editor-for-cpanel\/\"><strong>MultiPHP INI Editor<\/strong><\/a><strong> <\/strong>to configure the settings.<\/p><p>If you are using hPanel, simply download and edit the file using a text editor.<\/p><p>For cPanel users, here are the steps to do it:<\/p><ol class=\"wp-block-list\">\n<li>Access your <strong>cPanel<\/strong>.<\/li>\n\n\n\n<li>Go to the <strong>Software <\/strong>section &rarr; <strong>MultiPHP INI editor<\/strong>.<\/li>\n\n\n\n<li>Click the <strong>Basic Mode <\/strong>tab. For in-depth customization, select <strong>Editor Mode <\/strong>instead.<\/li>\n\n\n\n<li>From the drop-down menu, select the <strong>home directory <\/strong>or <strong>domain path<\/strong>. The latter will configure your domain-specific <strong>PHP.ini file<\/strong>.<\/li>\n\n\n\n<li>Change the settings for each PHP directive and click <strong>Apply <\/strong>to save the changes.<\/li>\n<\/ol><p>If your server doesn&rsquo;t support the editor tool, use the <strong>PHP selector<\/strong> instead. Alternatively, download the <strong>PHP.ini <\/strong>file and change the configuration directives using a text editor.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP-Selector_s-configuration-menu-in-cPanel.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"658\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP-Selector_s-configuration-menu-in-cPanel.png\/public\" alt=\"PHP Selector's configuration menu in cPanel\n\" class=\"wp-image-81345\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP-Selector_s-configuration-menu-in-cPanel.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP-Selector_s-configuration-menu-in-cPanel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP-Selector_s-configuration-menu-in-cPanel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP-Selector_s-configuration-menu-in-cPanel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/PHP-Selector_s-configuration-menu-in-cPanel.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/figure><p>For VPS users, configure PHP settings via SSH client. Ensure you have <a href=\"\/ng\/tutorials\/how-to-install-and-use-nano-text-editor\">installed the Nano text editor<\/a> and execute this<strong> <\/strong>command:<\/p><pre class=\"wp-block-preformatted\">nano usr\/local\/lib\/php.ini<\/pre><p>Change the directory with your <strong>PHP.ini<\/strong> file path in your VPS.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ng\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/public\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p><strong>PHP.ini<\/strong> is a configuration file that stores your web server&rsquo;s PHP settings. You may edit it to change your site&rsquo;s PHP-related rules, like restricting actions or limiting the uploaded data size.<\/p><p>Since its location varies, create a PHP info file in your domain&rsquo;s root directory and load it in your browser to quickly find <strong>PHP.ini<\/strong>. On the PHP info, the location is in the <strong>loaded configuration file<\/strong> section.<\/p><p><strong>PHP.ini <\/strong>file contains several parameters to set error handling, file uploads, session configuration, and other rules. To change the settings, edit the respective parameters&rsquo; values.<\/p><p>Hostinger&rsquo;s hPanel users can just download the file and change the parameters in a text editor. Should you have any more questions, leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP.ini is a configuration file containing your web server&rsquo;s PHP settings. Every time PHP starts, your system will search for it and run the file to enable your site&rsquo;s scripting rules. Although it is pre-configured, you may need to change the default PHP settings to suit your needs. For example, you can modify the session [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/what-is-php-ini\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"What Is PHP.ini File, Main Parameters + How to Edit It","rank_math_description":"The php.ini file is the default configuration file for running PHP applications. Check this article to learn more about the php.ini file.","rank_math_focus_keyword":"php.ini","footnotes":""},"categories":[22644],"tags":[],"class_list":["post-81338","post","type-post","status-publish","format-standard","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/what-is-php-ini","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/que-es-php-ini","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/file-php-ini","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/what-is-php-ini","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/what-is-php-ini\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/what-is-php-ini\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/que-es-php-ini","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/que-es-php-ini","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/que-es-php-ini","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/what-is-php-ini","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/what-is-php-ini","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/what-is-php-ini","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/what-is-php-ini","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/81338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=81338"}],"version-history":[{"count":14,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/81338\/revisions"}],"predecessor-version":[{"id":144143,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/81338\/revisions\/144143"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=81338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=81338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=81338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}