Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Possibly:

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

1 Answer 1

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

LoadModule php_soap modules/php_soap.so

(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:

extension=soap.so (also wrong)

Apparently it's:

php_extension soap.so

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

 
discard

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.