Server Fault is a question and answer site for system and network administrators. 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

Does anyone know how to enable a PHP extension within the .htacess file?


(.htaccess file)
share|improve this question
Did you try your example? That would also be my best guess. – halfdan Dec 15 '09 at 22:07

It's exactly the same syntax as Apache's httpd.conf, so it's:

LoadModule php_soap modules/

(for the "modules" bit, I'm assuming you're using the normal modules directory from /etc/httpd. If not, put that directory in it's place.) (Wrong)

It's not a module, as I'd originally thought, but a php extension. Extensions have the following syntax: (also wrong)

Apparently it's:


Got that from this thread in a Drupal forum. Ymmv. I'm going home now, since clearly my brain is shot for the day.

Also, make sure you allow for override, or the webserver will ignore your .htaccess file.

share|improve this answer
yes, your head. proposed directive will not work – user61228 Mar 26 '11 at 4:34

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.