Okay, so I seem to have a php (with php7.) directory and php 5.0 directory…
When I run sudo php5enmod apcu this is what I get:
sudo php5enmod apcu
WARNING: Module apcu ini file doesn’t exist under /etc/php5/mods-available
WARNING: Module apcu ini file doesn’t exist under /etc/php5/mods-available
I’m using Raspbian on the pi (16.04)
I did sudo apt-get purge php.*
then
sudo apt-get install php-apcu (php5-apcu and php5-apc did not work) I got this message however:
WARNING: Not enabling the apcu module for PHP 7.0 cli SAPI since the module
WARNING: was disabled by local administrator.
php_invoke apcu: no action - module was disabled by maintainer for PHP 7.0 cli sapi
After reinstall of php I can not do php5enmod or php7enmod
I did try phpenmod apcu and it worked now I still can’t access owncloud…I’m going to try the phpinfo.php
when opening a browser after creating phpinfo.php and pasting the <?php phpinfo(); ?> and saving did not work.
This site can’t be reached
localhost refused to connect.
Search Google for localhost phpinfo
ERR_CONNECTION_REFUSED
/etc/php/7.0/apache2/conf.d $ ls
10-opcache.ini 20-exif.ini 20-phar.ini 20-sysvsem.ini
10-pdo.ini 20-fileinfo.ini 20-posix.ini 20-sysvshm.ini
20-apcu_bc.ini 20-ftp.ini 20-readline.ini 20-tokenizer.ini
20-apcu.ini 20-gettext.ini 20-shmop.ini
20-calendar.ini 20-iconv.ini 20-sockets.ini
20-ctype.ini 20-json.ini 20-sysvmsg.ini
/etc/php5/mods-available $ ls -al
total 8
drwxr-xr-x 2 root root 4096 Sep 18 19:18 .
drwxr-xr-x 3 root root 4096 Sep 18 19:18 …
I did a new php -m and apcu is now listed
php -m
[PHP Modules]
apc
apcu
calendar
Core
ctype
date
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
shmop
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
I also went to php.ini and renabled opcache.enable=1
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=128
; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8
; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 1000000 are allowed.
opcache.max_accelerated_files=10000
; The maximum percentage of “wasted” memory until a restart is scheduled.
;opcache.max_wasted_percentage=5
; When this directive is enabled, the OPcache appends the current working
; directory to the script key, thus eliminating possible collisions between
; files with the same name (basename). Disabling the directive improves
; performance, but may break existing applications.
;opcache.use_cwd=1
; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
;opcache.validate_timestamps=1
; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. (“1” means validate once per second, but only
; once per request. “0” means always validate)
opcache.revalidate_freq=1
; Enables or disables file search in include_path optimization
;opcache.revalidate_path=0
; If disabled, all PHPDoc comments are dropped from the code to reduce the
; size of the optimized code.
opcache.save_comments=1
I ran sudo less /var/log/apache2/error.log
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/2013122
6/apcu.so’ - /usr/lib/php5/20131226/apcu.so: cannot open shared object file: No
such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/2013122
6/apc.so’ - /usr/lib/php5/20131226/apc.so: cannot open shared object file: No su
ch file or directory in Unknown on line 0
I did some more digging and I do not have a ‘/usr/lib/php5/2013122
6/apcu.so’ directory with apcu.so…but…
I do have this directory…/usr/lib/php/20151012/apcu.so
what do I do now?