I created a website and hosted it on a third-party service.
It works fine but I do not know where the php.ini configuration file is for setting up some things.
Does anyone know how I can find this file?
I created a website and hosted it on a third-party service.
It works fine but I do not know where the php.ini configuration file is for setting up some things.
Does anyone know how I can find this file?
Create a info.php
in public_html
and put this in it:
<?php
phpinfo();
Should return:
Loaded Configuration File
php.ini principal
Scan this dir for additional
.ini additional scans of specific directories, varying by system
Additional .ini files parsed
.ini additional
Note that this varies from server to server, so it's also important to know that even though you get the php.ini path you have servers that do not allow to manipulate php.ini
, you can usually only modify in 3 situations:
Via SSH
(if server allowed)
Via .htaccess
with php_module
(if hosting provides)
Via Cpanel (or equivalent)
Required for technical support via chat, email or telephone hosting