To do a lot of php.ini overides you need to get the system php.ini before you can start but this can be a tricky thing. This script will read and then dump the system php.ini
-
Alter the code below to fit your server and then create grab.php with the altered code and upload to your website public directory.
<? copy('/usr/local/lib/php.ini', '/home/example/public_html/php.ini'); ?>
If you do not know your physical paths you can create a file called info.phpwith the following code, upload it to your root public folder and run it. The script will display all of the required information including the physical path.<? phpinfo() ?>
- Upload grab.php to your root public folder
- Browse to the file and run it. Assuming you loaded it to your root public_html folder then you should browse to
http://www.example.com/grab.php
- This file will create a copy of your system php.ini file and dump it into your root public folder.
- Download the new php.ini to your PC
- Delete the php.ini and grab.php from your webserver