Page 1 of 1

I have encouter a weird problem about php?

Posted: Mon Mar 29, 2010 3:55 am
by cqphper
hellow,gentlemans,
when i install nginx,php 5.3,mysql is complete in my linux ,everything is ok,but when i change the default set about php,(just put the php.ini in my configure folder),my server can't work any more,when i remove the php.ini,follow the default configuration,everything come back.so how can i fix this?(my english is so ugly....hah,:))

any help will be appreciate!

Re: I have encouter a weird problem about php?

Posted: Mon Mar 29, 2010 12:27 pm
by Christopher
Did you check the error logs? Is there a syntax error in your php.ini file? Does the web server have read access to the file?

Re: I have encouter a weird problem about php?

Posted: Tue Mar 30, 2010 8:28 pm
by cqphper
thanks so much,pal,i have checked my server log,just show me the string 'connection reset by peer',but my site just server for me only,so i still can't fix the problem.

Re: I have encouter a weird problem about php?

Posted: Thu Apr 01, 2010 12:19 am
by josh
If you put the php.ini in a path where PHP cannot find it, you will get errors.

I have found that there is a minimum required configuration. Moving the php.ini file probably made it so PHP could no longer load the configuration. Put a copy of the default configuration back in the default location to fix it.

Re: I have encouter a weird problem about php?

Posted: Thu Apr 01, 2010 4:51 am
by cqphper
thanks so much, my phpinfo tell me the configure path is "/www/php/",so i copy the ini to the folder,of course,i will minimize my configure option in my php.ini(just like zenstudio),thanks again