APC not detected on PHP 7.0, 7.1

1,157 views
Skip to first unread message

theja...@gmail.com

unread,
Jul 12, 2017, 7:12:53 AM7/12/17
to AtoM Users
I have installed and configured working instances of AtoM on the Windows platform in the past, after hours of experimentation with various versions of dependencies.

Now I'm trying to get AtoM 2.3.1 working on Apache httpd (2.4.26 or later), PHP 7.1 or failing that, PHP 7.0, (thread safe) with the necessary php extensions enabled with the additional extensions APCu (5.1.8-7.1 thread safe) and Imagick (3.4.3 thread safe) on the Windows x64 platform (currently, for testing, Windows 7 SP1 Professional).

When loading AtoM for the first time, after configuring the database options and Elasticsearch options, an exception is thrown saying APC has to be installed and enabled. However, I have checked phpinfo and it shows APCu is installed and enabled. Also, there doesn't seem to be any relevant error in the httpd or php logs.

I have successfully installed and configured a working instance on above platform with PHP 5.6

So, before wasting hours more trying to resolve the problem, I am hoping to get some suggestions from anyone who may have had a similar issue, or any background on the subject...

Dan Gillean

unread,
Jul 12, 2017, 11:01:15 AM7/12/17
to ICA-AtoM Users
Hi there,

I will ask a developer to take a look at this thread and supplement my patchy response, but have you manually installed php-apcu-bc as our installation instructions suggest? See:

From the docs:

We also need php-apcu-bc, which is not available yet in Ubuntu 16.04. Let’s install it manually for now:
  • sudo apt install php-dev
  • sudo pecl install apcu_bc-beta
  • echo "extension=apc.so" | sudo tee /etc/php/7.0/mods-available/apcu-bc.ini
  • sudo ln -sf /etc/php/7.0/mods-available/apcu-bc.ini /etc/php/7.0/fpm/conf.d/30-apcu-bc.ini
  • sudo ln -sf /etc/php/7.0/mods-available/apcu-bc.ini /etc/php/7.0/cli/conf.d/30-apcu-bc.ini
  • sudo systemctl restart php7.0-fpm
If you make changes, don't forget to restart php7.0-fpm after:
  • sudo systemctl restart php7.0-fpm
 Cheers,

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/efd4b8c8-c763-40fa-a0b6-b62c311c88c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan Gillean

unread,
Jul 12, 2017, 11:10:14 AM7/12/17
to ICA-AtoM Users
Apologies, I just noticed that you are installing on Windows. Generally, we only maintain official documentation for Linux Ubuntu, as this is what we use in development and production and we're unable to maintain documentation for all the possible variations on O/S, database, webserver, etc that are possible. For Windows installations, the easiest solution will be virtualization, as we recommend here:

However, if this is purely for testing purposes, you might be interested in trying out our Vagrant box. It can be easily installed on any operating system, using Virtualbox and Vagrant. It is intended for testing and development however, and is not scaled to used in production or run persistently. For more information, see:

The slides are probably the most accessible and comprehensive version of the instructions, if you are interested.

Regards,


Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory

To post to this group, send email to ica-ato...@googlegroups.com.

theja...@gmail.com

unread,
Jul 12, 2017, 12:38:55 PM7/12/17
to AtoM Users
Thanks for the responses Dan Gillean. I didn't realize that apcu_bc was required, as I got an instance working without it on PHP 5.6 using the same version of the APCu plugin. I did, consider it in passing, but couldn't find a stable release (of apcu_bc) for Windows x64.

I mentioned "testing" in my post, but actually I was just testing on a test machine before an intended production deployment on a Windows Server machine if the testing proved successful/satisfactory. I'm at the moment unsure whether the OS on our production server could be changed (to Linux/Ubuntu) or whether I could use a different Linux server for the purpose, but looks like we may be stuck with windows...

These instances of AtoM are not intended to be exposed to the internet, so I guess the OS and software being Windows wouldn't be a problem, but I was looking for more-or-less stable software packages, and apcu_bc seems to be beta...

If I can't get AtoM to work on PHP 7.1, guess I'll have no choice but to go with PHP 5.6, but I was just hoping there'd be some better solution...

Reply all
Reply to author
Forward
0 new messages