Page 1 of 1

My local php.ini is all commented out

PostPosted: 16. March 2011 03:09
by princessryan
I downloaded the XAMPP 1.7.4 today. From what I have researched I can change settings on the php.ini by going to php/php.ini, the file opens in notepad and I want to turn log errors off. Every single line is commented out, yet when I check, it appears the local server is looking to this file for php.ini. So how do I make a change? I was able to connect to Media Temple (my host) and easily turn off magic quotes. On my remote server the Log Error is turned off and I want the same for my local server.

Re: My local php.ini is all commented out

PostPosted: 16. March 2011 03:15
by Sharley
Use your scroll feature in notepad and scroll down to about line 533 and you will see that the lines that are set by default are editable and not commented out.

Re: My local php.ini is all commented out

PostPosted: 16. March 2011 03:34
by princessryan
Thank you! I was able to change it!

:lol:

Re: My local php.ini is all commented out

PostPosted: 16. March 2011 03:40
by Sharley
Your welcome. :)

Remember to restart Apache when ever you edit an .ini or a .conf file.

BTW error reporting is turned on by default because XAMPP is predominantly used for development unlike your hosting service which is predominantly used for production - this applies to all default settings in XAMPP including but not limited to Security settings.

Good luck.