Close Menu
Technoracle
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    TechnoracleTechnoracle
    • Home
    • AWS
      • EC2
      • Lightsail
      • RDS
      • S3
    • Ubuntu
      • Ubuntu 20.04
      • Ubuntu 22.04
    • AI Tools
    • Web Hosting
    • WordPress
    • Tech News
    Technoracle
    Home - AWS - How to Find PHP.INI Location on Any Server
    AWS

    How to Find PHP.INI Location on Any Server

    Rajesh ShivamBy Rajesh ShivamMarch 21, 2022Updated:June 11, 2023No Comments2 Mins Read
    PHP.INI Location

    The php.ini file controls the application running on the server. The values “max_upload_size”, “max_execution_time”, etc were set on the php.ini file. If you need to change these values for any reason, you need to find the location of the php.ini file. Sometimes it’s really difficult to find the file location. In this article, I am going to share how to find php.ini locations on any server.

    Page Contents

    Toggle
    • The Simple Way to Find PHP.INI file Location
      • Method 1
      • Method 2
    • Bitnami PHP.INI file location
    • Conclusion

    The Simple Way to Find PHP.INI file Location

    We can find php.ini file location by different methods. Let’s discuss a few methods.

    Method 1

    Create a simple PHP script and store it to the “document root” of any server. Let’s save the file as “info.php”.

    <?php
    phpinfo();
    ?>

    Now, upload the file to the server using the FTP client, If you create it on your system. Alternatively, you can create the file directly on the “document root” by accessing the server through SSH.

    Now, check access the file via browser, as you upload the file to the document root.

    websitename.com/info.php

    You should get output something like this.

    php.ini location

    You can see the loaded configuration file with location of php.ini file, which is “/etc/php/7.4/apache2/php.ini”.

    Method 2

    This method is very simple if you have basic command-line knowledge. To grep the php.ini location on Ubuntu or any Linux-based server, run the following command on the terminal.

    $ php --ini

    You will get something like

    php.ini location from command line

    You can see on the screenshot, second line has the php.ini location.

    Bitnami PHP.INI file location

    By default Bitnami php.ini location is

    $ /opt/bitnami/php/etc/php.ini 

    Conclusion

    In this short tutorial, you have learned to find php.ini location on the server. If you have any doubts feel free to contact me, I will definitely try to help you. Also, you can join our elite Facebook group to get direct help from me. If you like this tutorial, please share this article on your social media handle.

    php ini location php.ini file location find
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit
    Previous ArticleInstall WordPress on Google Cloud in 10 Minutes [Super Easy Guide]
    Next Article Quick way to Install Anydesk on Ubuntu 22.04 / 20.04 Easily
    Rajesh Shivam
    • LinkedIn

    Rajesh Shivam is a seasoned professional with expertise in AWS and Linux System Administration. With over 10 years of freelancing experience, he brings a wealth of knowledge to the table. Rajesh has a strong passion for technology and stays connected with the latest happenings in the field. His dedication and expertise make him a trusted resource for all things tech-related.

    Related Posts

    Convert PEM to PPK file
    AWS

    Convert PEM to PPK File on Windows & Linux [2025 Guide]

    Read More
    What is Elastic IP and Its Pricing
    AWS

    What is Elastic IP and Its Pricing in AWS

    Read More
    Install Git on Amazon Linux 2
    AWS

    How to Install Git on Amazon Linux 2 Easily

    Read More
    Add A Comment
    Leave A Reply Cancel Reply

    linux commands every user should know in 2025

    25 Must-Know Linux Commands Every User Should Master in 2025

    April 10, 2025
    TeamViewer and Ubuntu logos on gradient background – banner for how to install TeamViewer on Ubuntu 24.04 tutorial

    How to Install TeamViewer on Ubuntu 24.04 [Fast & Easy Steps]

    April 10, 2025
    Troubleshooting ‘Permission Denied (publickey)’ SSH error on a Linux server using secure terminal access

    Fix ‘Permission Denied (publickey)’ SSH Error on Linux [Step-by-Step Guide]

    April 8, 2025
    Blog banner showing Ubuntu logo, coding laptop, and icons for VS Code, Docker, and Git with the title 'Perfect Dev Setup in Ubuntu 24.04 – Step-by-step guide for developers' on a dark tech-themed background.

    How to Set Up the Perfect Development Environment on Ubuntu 24.04

    April 8, 2025

    Subscribe to Blog

    Enter your email address to subscribe to
    this blog and receive notifications of new posts by email.

    Facebook X (Twitter) Instagram Pinterest
    • Sitemap
    • Privacy Policy
    • Disclaimer
    • Term of Services
    © 2025 Technoracle

    Type above and press Enter to search. Press Esc to cancel.

    Click to Copy