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 create logs file in laravel

How to create logs file in laravel 8 / 9 ?

May 12, 2022May 12, 2022

In this article i will show you to use and create logs file in laravel. Logging is an important aspect when you want to debug your application or you want to monitor the user activities on the application. Laravel itself provides a robust library to create logging on daily basis,…

Read More
Php How to Delete Folder Recursively With Files in Laravel ?

How to Delete Folder Recursively With Files in Laravel ?

May 25, 2022May 26, 2022

File System are used to store the information and how to manage the structure, so to perform the file system based operations like Delete Folder Recursively With Files it uses Illuminate\Filesystem\Filesystem class in laravel. Laravel provides inbuilt library to access the file system and we can do multiple robust operations…

Read More
Php html string in blade in laravel

How to Render Html String in Blade in Laravel ?

March 8, 2022December 2, 2023

Blade is a template engine to write the syntax easily and powerfully. To render html string in blade in laravel we use {!! $htmlstring !!}. Using the blade template we can easily print a variable, can create loops and can create directives and components too. Laravel blade template uses filename.blade.php…

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

  • 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 Resilience of Nature: How Forests Recover After Fires
  • Understanding Laravel Cookie Consent for GDPR Compliance
  • Understanding High Vulnerabilities: A Critical Overview of the Week of May 12, 2025
  • Installing a LAMP Stack on Ubuntu: A Comprehensive Guide
  • Understanding High Vulnerabilities: A Deep Dive into Recent Security Concerns
©2023 Readerstacks | Design and Developed by Readerstacks
Go to mobile version