I have encouter a weird problem about php?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
cqphper
Forum Newbie
Posts: 3
Joined: Mon Mar 29, 2010 3:45 am

I have encouter a weird problem about php?

Post 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!
User avatar
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?

Post 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?
(#10850)
cqphper
Forum Newbie
Posts: 3
Joined: Mon Mar 29, 2010 3:45 am

Re: I have encouter a weird problem about php?

Post 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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: I have encouter a weird problem about php?

Post 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.
cqphper
Forum Newbie
Posts: 3
Joined: Mon Mar 29, 2010 3:45 am

Re: I have encouter a weird problem about php?

Post 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
Post Reply