Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
@EliahKagen So why can't they change it so that it doesn't count against you. – Frank Barcenas Jan 10 '13 at 3:51
I recommend posting on meta if you want more information about this topic (search first). – Eliah Kagan Jan 10 '13 at 23:57
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 Ward 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.