Skip to content
Readerstacks logo Readerstacks
  • Home
  • Softwares
  • Angular
  • Php
  • Laravel
  • Flutter
Readerstacks logo
Readerstacks

How to find php.ini file location ?

Aman Jain, August 24, 2021February 22, 2024

Sometime we installed multiple version of php on our system so it will get difficult to find php.ini file location .

Let’s start with easiest way.

Steps to find the php ini file on dedicated, localhost and ssh based enabled server.

  1. Create a new file on root info.php and enter below code
<?php
phpinfo();


Then run this file in browser.

Screenshot 2021 08 24 at 8.35.49 AM
Loaded php.ini file

As we can see in marked red loaded configuration is /Applications/XAMPP/xamppfiles/etc/php.ini

so we can easily find and change the configuration here using command in ubuntu/mac

sudo vi /Applications/XAMPP/xamppfiles/etc/php.ini

in windows we can directly go to the location and edit this file.

What if you are on shared hosting?

In shared hosting we can’t edit php.ini file directly.

So how to edit php.ini configuration on shared server?

To edit and update the php configuration on shared server, Cpanel provide a simple way to edit some configurations to edit it we need to follow the below steps:

  1. Login into your cpanel
  2. Go to softwares section and select php version
  3. Select options and change settings
  4. Save the configuration
Screenshot 2021 08 24 at 8.50.34 AM
Cpanel to change php.ini configuration
Screenshot 2021 08 24 at 8.55.22 AM
Php.ini file cpanel

Related

Php

Post navigation

Previous post
Next post

Related Posts

Php How to Implement Remember Me Feature in Laravel

How to Implement Remember Me Feature in Laravel ?

August 12, 2022March 16, 2024

Laravel authentication offers remember me functionality out of the box and to implement remember me feature in laravel we only need to follow some guidelines provided by laravel so in this article i will show you the simplest way to implement this. Most of the time while developing login functionality of application…

Read More
Php How to use laravel whereNotIn query with example

How to use laravel whereNotIn query with example ?

October 15, 2022March 16, 2024

In this guide we will learn to create SQL not in query using laravel whereIn eloquent builder. whereNotIn laravel can used multiple ways to build the query one the of the feature of laravel eloquent is creating dynamic query based on condition and sub queries too. To create where not…

Read More
Devops install php 8 in ubuntu

How to install PHP 8.0 in Ubuntu 20.04 LTS ?

September 18, 2021November 5, 2023

In this tutorial we will learn to install PHP 8.0 on Ubuntu 20.04 LTS using PPA. PHP 8.0 is the latest version of php and it have many upgrades. Installation process is same as How to install PHP on Ubuntu? or How to Install multiple/different version of PHP? Step 1…

Read More

Aman Jain
Aman Jain

With years of hands-on experience in the realm of web and mobile development, they have honed their skills in various technologies, including Laravel, PHP CodeIgniter, mobile app development, web app development, Flutter, React, JavaScript, Angular, Devops and so much more. Their proficiency extends to building robust REST APIs, AWS Code scaling, and optimization, ensuring that your applications run seamlessly on the cloud.

Categories

  • Angular
  • CSS
  • Dart
  • Devops
  • Flutter
  • HTML
  • Javascript
  • jQuery
  • Laravel
  • Laravel 10
  • Laravel 11
  • Laravel 9
  • Mysql
  • Php
  • Softwares
  • Ubuntu
  • Uncategorized

Archives

  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • October 2024
  • July 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • July 2023
  • March 2023
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Recent Posts

  • The Transformative Power of Education in the Digital Age
  • Understanding High Vulnerabilities: A Closer Look at the Week of July 14, 2025
  • Exploring Fresh Resources for Web Designers and Developers
  • The Intersection of Security and Technology: Understanding Vulnerabilities
  • Mapping Together: The Vibrant Spirit of OpenStreetMap Japan
©2023 Readerstacks | Design and Developed by Readerstacks
Go to mobile version