My local php.ini is all commented out

Problems with the Windows version of XAMPP, questions, comments, and anything related.

My local php.ini is all commented out

Postby princessryan » 16. March 2011 03:09

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.
princessryan
 
Posts: 2
Joined: 16. March 2011 03:00

Re: My local php.ini is all commented out

Postby Sharley » 16. March 2011 03:15

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: My local php.ini is all commented out

Postby princessryan » 16. March 2011 03:34

Thank you! I was able to change it!

:lol:
princessryan
 
Posts: 2
Joined: 16. March 2011 03:00

Re: My local php.ini is all commented out

Postby Sharley » 16. March 2011 03:40

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 133 guests