How to Find Path to php.ini File
In many instances, locating the active php.ini file is very simple. Run the following command to view the instances of php.ini, including “Loaded Configuration File”:
Example output:
Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php .ini
Scan for additional .ini files in : /etc/php .d
Additional .ini files parsed: /etc/php .d /bcmath .ini,
/etc/php .d /curl .ini,
|
Alternate Method:
No matter what control panel you are using, the complete way to find what php.ini file to edit for specific domain is by the following:
Create file inside your site, name it for example info.php, with content:
Open the file in your browser window, like http://domain.tld/info.php
Search for line Loaded Configuration File, which will show you full path to php.ini file.
Related Articles
How to run manual file system check
How to run manual file system check Category: Cloud Servers, Recovery Interface, VPS.net dashboard, VPS.net features   If server is not coming up after “Startup” button is pressed, and you see one of the following messages in server console in ...
How To Store InnoDB Data In One File Per Table
To achieve faster performance of MySQL server with InnoDB engine and for I/O optimization one can choose file-per-table mode. InnoDB storage engine stores all data for tables in a common tablespace. It is possible to configure InnoDB to store data ...
Creating On Demand Stream Links
Creating On Demand Stream Links Category: On Demand Streaming   Creating Links in Reverse Proxy Mode When using Reverse Proxy mode, the customer has a choice in how they create their On Demand stream links. Customers can elect to directly embed ...
Automating Your Systems With Cron
Automating Your Systems With Cron Category: Getting Started   Cron is a tool designed to schedule tasks and automate performing them. It comes as standard with pretty much all Linux distributions, making it easy to schedule the running of scripts ...
Install ConfigServer Firewall On A cPanel Server
ConfigServer Firewall (CSF) is a popular Linux firewall security suite. It is easy to install, flexible to configure and secure with extra checks. CSF helps control exactly how much traffic is allowed in and out of the server to protect the server ...