Closed abumalick closed 7 years ago
I have this path in my object-cache.php due to different structure of bedrock:
$lcache_path = dirname( realpath( __FILE__ ) ) . '../../app/plugins/wp-lcache/object-cache.php';
require_once( $lcache_path );
But I get the same error when I change the path or remove this file.
@abumalick You need to apc.enable_cli='on'
too
Can you tell me how I should activate this ? I see no option for this in cpanel and I don't have access to php.ini . Can I activate it in htaccess ?
Tried to put this in htaccess but it don' t work php_flag apc.enable_cli On
Can you tell me how I should activate this ? I see no option for this in cpanel and I don't have access to php.ini .
It'll need to be set in your php.ini.
Run wp --info
to see then path to your php.ini for CLI.
.htaccess
is only executed for a web request.
Thank you very much for your help, I asked my provider and they gave me an option in cpanel to activate it. Now it seems to work, but I have another issue, I will create another thread
Hello, I get a Missing APCU extension enabled and I have the extension enabled.
I am on shared hosting and I can active apcu extension in cpanel. I tried with php5.6 and php 7.0 . I get the same warning message. Note : I have access to server with ssh, I can use php cli and composer but no root. I use wordpress under bedrock from roots
Any idea ?
Here is phpconfig output :
In my
phpconfig()
I have for php 5.4 :apc
APC support | Emulated
apcu
In my
phpconfig()
I have for php 7.0PHP Version => 7.0.12
apcu