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!
I have encouter a weird problem about php?
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: I have encouter a weird problem about php?
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?
(#10850)
Re: I have encouter a weird problem about php?
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?
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.
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?
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