Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How are my php extensions loading if there are no extension=* statements in my php.ini? Does it just automatically load everything in my /conf.d/ directory? I can even find the path to /conf.d/ specified in php.ini.

share|improve this question
OK I just accepted the first answer on all the questions I had not accepted becuase they were bogus, but there weren't any better answers available. I'm sure that is not how the site intended it to be used , but since it reflects poorly on me not to do so, I did. –  Frank Barcenas Oct 23 '12 at 23:14
I think that that would be good for now. While the accept rate itself is bogus, I don't want you to suffer possible downvotes from it. –  hexafraction Oct 23 '12 at 23:15
@FrankBarcenas Please do not do that. It's better to have a low accept rate than bogus accepts. –  Eliah Kagan Jan 10 '13 at 0:00
@EliahKagen So why can't they change it so that it doesn't count against you. –  Frank Barcenas Jan 10 '13 at 3:51
@FrankBarcenas It doesn't count against you. It's just a guideline. The idea that everyone should have a high accept rate is totally wrong, and commenting to ask people to improve it has largely fallen out of favor. "Accept rate" comments disappear quickly with flagging these days. I recommend unaccepting any answers that you have accepted but that did not help. (If an answer has merit and you're not looking for more answers, it's OK to accept it even if you'd preferred better or if it didn't fully solve the problem. That's about the lower limit of what should ever be accepted, though.) –  Eliah Kagan Jan 10 '13 at 23:56

1 Answer 1

up vote 0 down vote accepted

By default, the php5 packages will automatically pull all configurations in the conf.d directory. I don't remember where in the configurations, but there's a directive to include all configurations in the /etc/php5/conf.d directory. That's why the extension packages such as php5-gd install the libraries, and then also install a conf file to the conf.d directory, then restarts php5, and pulls the data from there.

share|improve this answer
I have had to dissect the php5 source package on occasion, I ran into this as a result of my having to dissect the package. –  Thomas W. Oct 23 '12 at 14:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.