OpCacheGUI
Apparence
Installation
git clone https://github.com/PeeHaa/OpCacheGUI.git
cp init.example.php init.production.php
|
Configuration
init.production.php |
// copie du fichier init.example.php
// afficher les erreurs dans le log plutot que sur les pages du site
ini_set('display_errors', 0);
ini_set('log_errors', 1);
ini_set('date.timezone', 'Europe/Paris');
// pas de login / password
$login = [
'username' => '',
'password' => '',
'whitelist' => [
'localhost',
],
];
|
init.deployment.php |
// require_once __DIR__ . '/init.example.php';
require_once __DIR__ . '/init.production.php';
|
/etc/nginx/servers/opcachegui.conf |
server {
listen 80;
server_name opcachegui;
root /srv/http/OpCacheGUI/public;
index index.php;
allow 192.168.0.1;
deny all;
# This is only needed when using URL paths
try_files $uri $uri/ /index.php;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi.conf;
}
}
|
Erreurs
Cannot use variable $request twice
Call to undefined function opcache_get_configuration()
OpCache n'est pas activé
/etc/php/php.ini |
zend_extension=opcache.so
|