I’m trying to install this PHP module from NYTimes (http://code.nytimes.com/projects/xslcache)
I unfortunately am falling at the last hurdle. I’ve installed it, added to my php.ini, but I am getting this error when running in my PHP code.
Fatal error: Class 'xsltCache' not found in...
My php code is as described by the NYTimes website
$xslt = new xsltCache;
Any ideas why that may happen?
My install script for the module is
cd ~
mkdir setups
cd setups
wget http://code.nytimes.com/downloads/xslcache.tar.gz
tar -xvf xslcache.tar.gz
cd xslcache
phpize && ./configure --with-xslcache=/usr/lib/libxslt.so --with-xsl-exsl-dir=/usr/lib/libexslt.so
make
make install
And it seems to work completely fine, no errors, php.ini is fine. Something I have notified, it doesn’t show up in phpinfo().
Check that you added the extension to the correct php.ini file.
If you have a PHP directory you may have one in there, but the one you want to add the extension to is likely in your server directory.
I.E. On my PC, the correct php.ini to modify is apache\bin\php.ini
P.S. Don’t forget to restart your server.