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

How to enable cors in web api php or laravel?

August 27, 2021August 20, 2022

Cross-Origin Resource Sharing (CORS) is mechanism which allow browser to share the resources between the other domain or port. if the cors is disabled in api or server then other domain can’t access the apis and resource of server. Example: if a server A wants to access the apis of server…

Read More
Php laravel custom validation

How to make custom validation in Laravel 8 ?

October 19, 2021October 28, 2021

In this tutorial we will learn to implement custom validation rule in Laravel 8. Laravel has too many validation rules but sometime we feel some rules are missing according to our project need. so, in this article we will learn to implement custom reusable validation rule and implement the username…

Read More
Php Laravel where not null query with example

How to use laravel where not null and where null query with example ?

January 18, 2022January 18, 2022

In the initial stage of laravel learning you will find many challenges to build the query like where not null and where null so in this article I will show you to create where not null and where null query using laravel eloquent. To create where not null in laravel…

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

  • 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
  • Understanding High Vulnerabilities: A Deep Dive into the Weekly Summary
©2023 Readerstacks | Design and Developed by Readerstacks
Go to mobile version