To find the correct path of a working php.ini on a cPanel server,Follow the steps below:
- Login to the SSH with root user
- Use the command as:
php -i | grep php.ini
- This will output the path to the php.ini file being used.
If you want to set your website timezone you can easily do it by using php.ini.