How to modify php.ini on localhost
- First of all, you need to turn on the software. In this case, it’s WAMP.
- Open your favorite code editor to create a .php file. In this case, we use Dreamweaver. Add this piece of code to the new file:
<?php phpinfo(); ?>
Save the file to your computer. You can name it info.php.
- Open the local Disk. Locate wamp folder, then open www folder. Copy this info.php file to wamp/www folder.
Note: If you have another software, the location can be different.
- Open the browser. Type localhost/info.php in the address bar. You will see a table of available settings.
Try to search with php.ini as the keyword. In Loaded Configuration File field, you will see the path to php.ini file. In this case, it’sC:\wamp\bin\apache\apache2.4.9\bin\php.ini. Just follow the path to find the file.
Here is the php.ini file that you need to edit. Just open and edit the file, then save it.
Was this article helpful?
The Real Meaning of “Unlimited” in Web Hosting
Types of Web Hosting
How to check whether mod_rewrite is enabled on server?
How to upload files to a server
Fatal error: Maximum execution time of 30 seconds exceeded…
Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)