Quick Tip: How to Hide/Disable PHP Errors in WAMP Server Windows?

If you are using WAMP server for local development and want to show or hide php errors in wamp server, read this quick tip.

Posted on by

WAMP Server is a free local development server for Windows and Mac, which allows you to install different Content Management Systems on your local machine.

By installing CMS’s like WordPress locally, you can learn how to use these CMS and developers use local installations to create and test plugins and themes.

You can install WordPress with WAMP server on your Windows Machine.

If you are using WAMP Server and want to disable or enable PHP errors, here are instructions.

Where to find and How to open php.ini file in wamp server?

To open php.ini file in WAMP Server, Go to system tray click on WAMP Server icon go to PHP and click php.ini file to open it from the fly out menu.

If you are using WAMP Server and PHP 7, then go to your WAMP installation directory, Bin > PHP > folder and find and edit php.ini file. In my case, I can find this file in the following folder.


C:\wamp64\bin\php\php7.0.0

How to Hide/Disable PHP Errors in WAMP Server

To hide PHP errors on WAMP server in windows open php.ini file, find the following line of code


error_reporting = E_ALL

and replace it with


error_reporting = E_ALL & ~E_NOTICE

Now you will not see any PHP errors.

How to Show/Enable PHP errors in WAMP Servers Windows ?

To enable or show PHP errors in WAMP Server just add the following line in php.ini file.


error_reporting = E_ALL 

How to Increase Import File Size in Wamp Server?

I have installed WordPress locally using WAMP Server. When I tried to upload a file, WordPress displayed an error

READ  How to Register and Style A Navigation Menu in WordPress Theme?

outsourcing.pdf exceeds the maximum upload size for this site.

outsourcing.pdf is file name that I wanted to upload. It means I had to increase maximum upload size to upload larger files.

I added following two lines in php.ini file.


upload_max_filesize = 32M
post_max_size = 32M

How to install/Enable php_curl Extension On Wamp Server in Windows?

If you see following error in WAMP Server

Cannot load required extension: curl

You will have to enable CURL extension on your local WAMP installation.

To install/enable curl, right click on WAMP icon and go to PHP --> PHP Extension and then find and right click on php_curl to enable/install.

Don't forget to restart all services after enabling curl extension.

That's all you need to do to find and edit php.ini file.

About Author: Tahir Taous

Tahir Taous is an experienced blogger and WordPress users. He loves to write about Blogging, WordPress, and Theme Development. You can download his free WordPress Theme Development Handbook, which reveals more than 100 tools and resources to learn WordPress Theme Development.

3 responses on “Quick Tip: How to Hide/Disable PHP Errors in WAMP Server Windows?

  1. Priya Kanan

    Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

  2. Anu

    Nice it seems to be good post… It will get readers engagement on the article since readres engagement plays an vital role in every blog.. i am expecting more updated posts from your hands.

Leave a Reply

Your email address will not be published. Required fields are marked *