Oh and remember to edit the right PHP.INI...
It can use a completely different php.ini to the php-cgi and mod_php etc
and it's even worse if like me you have 3 different PHP's installed locally
for testing, client version, fast-cgi and apache versions....
To find I generally use
$ php -i | grep ini
Configuration File (php.ini) Path => /etc/php5
*Loaded Configuration File => /home/mrflibbles/PHP5.3.10/php.ini*
Scan this dir for additional .ini files => /etc/php5/conf.d
Additional .ini files parsed => /etc/php5/conf.d/bz2.ini,
/etc/php5/conf.d/curl.ini,
/etc/php5/conf.d/fileinfo.ini,
/etc/php5/conf.d/gd.ini,
/etc/php5/conf.d/gv.ini,
/etc/php5/conf.d/intl.ini,
/etc/php5/conf.d/mbstring.ini,
/etc/php5/conf.d/mcrypt.ini,
/etc/php5/conf.d/ncurses.ini,
/etc/php5/conf.d/pdo_sqlite.ini,
/etc/php5/conf.d/phar.ini,
/etc/php5/conf.d/readline.ini,
/etc/php5/conf.d/simplexml.ini,
/etc/php5/conf.d/tidy.ini,
/etc/php5/conf.d/zip.ini
As you can see I've got to edit mrflibbles php.ini... and not
/etc/php5/php.ini
Regards,
Shaun Laughey
On 29 February 2012 13:21, Shaun Laughey <shaun at laughey.com> wrote:
> Well Darragh,
>> You have 2 errors there.
>> In the file called ming.ini change the lines beginning with # to lines
> beginning with a semi-colon ;
>> An excerpt from the PHP.INI
>> ; The syntax of the file is extremely simple. Whitespace and Lines
> ; beginning with a semicolon are silently ignored (as you probably
> guessed).
> ; Section headers (e.g. [Foo]) are also silently ignored, even though
> ; they might mean something in the future.
>> Now that we've fixed the easy one :-)
>> APC.SO is another matter. It's enabled by default.
>> So in the PHP.INI you should check that you have the line
>> apc.enabled = 0
>> REF: http://php.net/manual/en/apc.configuration.php>> Regards,
> Shaun Laughey
>>>> On 29 February 2012 12:32, Darragh Ó Héiligh <d at digitaldarragh.com> wrote:
>>> Good afternoon,
>>>> Could someone point me in the right direction please? I think this error
>> has presented itself because of a dependency that has been removed that
>> shouldn't be required but I'm not entirely sure what is pointing to it.
>> APC is not installed.
>>>>>>>>>> PHP Deprecated: Comments starting with '#' are deprecated in
>> /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0 PHP Warning:
>> PHP Startup: Unable to load dynamic library
>> '/usr/lib/php5/20090626+lfs/apc.so' - /usr/lib/php5/20090626+lfs/apc.so:
>> cannot open shared object file: No such file or directory in Unknown on
>> line 0
>>>> Here is the ming.ini file:
>> # configuration for php MING module
>> extension=ming.so
>>>> This error has been generated 1310 times since the 6th of February so
>> it's becoming a bit of an irritation.
>>>> Any ideas?
>>>> Thanks
>>>>>>>> Darragh
>> --
>> Irish Linux Users' Group mailing list
>> About this list : http://mail.linux.ie/mailman/listinfo/ilug>> Who we are : http://www.linux.ie/>> Where we are : http://www.linux.ie/map/>>>>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!