diff --git a/etc/nginx/common/locations.conf b/etc/nginx/common/locations.conf index 5461d98a..eda749f0 100644 --- a/etc/nginx/common/locations.conf +++ b/etc/nginx/common/locations.conf @@ -47,6 +47,22 @@ location /phpmyadmin { rewrite ^/* /pma last; } +# Opcahe Pages +location /opcahe { + root /var/www/shared; + include common/allowed_ip.conf; + index index.php index.html index.htm; + + location ~ ^/opcache/(.+\.php)$ { + try_files $uri =404; + root /var/www/shared; + fastcgi_pass php; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /etc/nginx/fastcgi_params; + } +} + # Status Pages location /nginx_status { stub_status on; diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 064a4627..87ac9c29 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -631,6 +631,15 @@ TOTALCACHENGINX() # Activate W3 Total Cache wp plugin activate w3-total-cache $NETWORKACTIVATE || OwnError "Unable To Activate W3 Total Cache Plugin" + + # Memcached Settings + mkdir -p /var/www/shared/opcache || OwnError "Unable To Create Memcached Directory" + cd /var/www/shared/opcache || OwnError "Unable To Change Memcached Directory" + + # Download Memcache Status Files + wget -c https://raw.github.com/rlerdorf/opcache-status/master/opcache.php + wget -c https://raw.github.com/amnuts/opcache-gui/master/index.php -O opgui.php + wget -c https://gist.github.com/ck-on/4959032/raw/0b871b345fd6cfcd6d2be030c1f33d1ad6a475cb/ocp.php } SUPERCACHENGINX()