View Full Version : I need a good php.ini
SloppyGoat
Mon 20th May '02, 10:28pm
I have a very stripped php.ini because I don't exactly know what I'm doing yet. This seems to work ok, but can someone post a good starter php.ini I can use? Here's all I have in mine right now.
; php.ini for PEAR tests
include_path=..
[mail function]
SMTP= server ; for Win32 only
sendmail_from= webmaster@server.com ; for Win32 only
upload_tmp_dir = C:\PHP3\uploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
[Session]
session.save_path= C:\PHP3\sessiondata ; argument passed to save_handler
[PHP]
error_reporting= E_ALL; display all errors, warnings and notices
file_upload=1
extension=php_zlib.dll
extension_dir=C:\winnt\system32
I tried editing and using the php.ini that came with php4, but I couldn't get it to work for some reason. Sorry, I'm quite new at this. :( I need a little guidance. How is one supposed to know this stuff? There doesn't seem to be anything about setting up php.ini in the installation section of the manual. :confused:
scoutt
Tue 21st May '02, 11:44am
if that is all you have then I am surprised that it works at all. when you download php , use the recommended one. all you have to change is the name of the file to php.ini from php.dist-recommended, I think.
SloppyGoat
Tue 21st May '02, 2:26pm
Not if you want smtp to work. You definitely have to edit that info to match yours.
Actually, that's all you really need for it to work with gzip enabled. I'm just curious about the timing and other settings. If you look in your php.ini, about 95% is remarked out. There's very little you actually use, unless you've tweaked alot of stuff.
scoutt
Tue 21st May '02, 3:46pm
I agree that most of it is commented out, but when you say
I have a very stripped php.ini because I don't exactly know what I'm doing yet.
then I have no remorse for you. just leave it in there and edit the fields you need to edit. by removing all the commented fields out you are asking for trouble.
SloppyGoat
Tue 21st May '02, 6:53pm
Man, you don't seem to get it. I didn't remove anything. That's all that was there originally. I've actually added to it.
scoutt
Tue 21st May '02, 7:35pm
funny, mine is like 2000 lines long and I didn't do anything to it.
I would download it again and get that php.ini file out of that one.
and a lot more than what you show there in your first post.
SloppyGoat
Tue 21st May '02, 9:10pm
Yeah, I downloaded a full php.ini, and edited all the lines that are in this one, but it didn't work for some odd reason. I'm not the only one who's had this happen though. Others have ended up with the same type of stripped php.ini. I think I saw another thread at vB.org about this. :p
I'll probably mess with it later. Right now my board is screamin', and I'm testing the timeouts to see if they solve my smtp warnings and W3SVC errors.
Crap! Actually, checking my events, that made it worse, so I removed the resource limits part I'd added.
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 90 ; Maximum execution time of each script, in seconds
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
Hey, why don't you do me a favor and attach a copy of yours here in a txt file, so I can see what lines you actually use in it. That's really what I was asking from the start here. If you really want to be helpful instead of criticizing me for having a short php.ini, you might let me see exactly what's remarked out and what's not. That's what I'd like to know. I can add anything to mine. I mean, why have 2000 lines of unused BS to look through when I can just add what's necessary? ;)
scoutt
Tue 21st May '02, 10:46pm
not critizing, it just that if you don't know what you are doing why take all those line out.
this is from php v. 4.1.2
SloppyGoat
Tue 21st May '02, 11:42pm
Thanks, but as I said, I didn't take them out. They were never there to begin with.
Uh oh.....all the text is jumbled together! I can't even read it. :p
It didn't keep it's format for some reason. :(
scoutt
Wed 22nd May '02, 1:35am
looks fine to me. take off wordwrap if it is on.
SloppyGoat
Wed 22nd May '02, 10:39am
Either way, this is all I get....trash. It makes no difference. :(
eva2000
Wed 22nd May '02, 10:49am
SloopyGoat,
Please enter your vBulletin.com forum username on the form on this page to receive support for this issue: http://www.vbulletin.com/members/forums.php
- you will need your vB license customer number and password to access this form.
thank you :)
SloppyGoat
Wed 22nd May '02, 11:35am
I've already done that. I tried again, and my username is already listed in the support form from the last time. ;)
eva2000
Wed 22nd May '02, 11:39am
Originally posted by SloppyGoat
I've already done that. I tried again, and my username is already listed in the support form from the last time. ;) it wasn't showing up... but it is now :)
Scott MacVicar
Wed 22nd May '02, 12:05pm
Sloppygoat the problem with the php.ini file is you downloaded it in binary form and all the newlines are changed to a visible character and thats why it looks all squished :)
SloppyGoat
Wed 22nd May '02, 3:05pm
How can I dnld it otherwise or change is back? :confused:
scoutt
Wed 22nd May '02, 9:23pm
try uploading it to your server and when you download it do it in ascii mode.
if that doesn't work I can zip it up.
SloppyGoat
Thu 23rd May '02, 12:59am
Thanks, that worked. :)
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.