Can imagick extension be loaded in htaccess?
My web host told me that I can install imagick but cannot change php.ini but can enable imagick in .htaccess
. It's true? How do I load it into htaccess?
php.ini syntax
#Syntax in php.ini
extension=imagick.so
What's the syntax for loading into htaccess files?
(This is Linux - I think this is Fedora)
source to share
Go here for one solution which includes the following .htaccess information.
Adding this to your .htaccess file is part of the process:
Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
<FilesMatch "^php5?\.(ini|cgi)$">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</FilesMatch>
Also try http://www.askapache.com/htaccess/php-cgi-redirect_status.html
and http://search.cpan.org/~grichter/Apache-ImageMagick-2.0b7/ImageMagick.pm
Please let me know if this helps.
source to share
The only way for non-root users is to use custom php.ini, which can be done in several ways: http://www.askapache.com/php/custom-phpini-tips-and-tricks.html
source to share