amnuts / opcache-gui

A clean, effective and responsive interface for Zend OPcache
1.22k stars 198 forks source link

[new PHP user] file location for index.php for OpCache? #6

Closed StefanScott closed 9 years ago

StefanScott commented 9 years ago

Hi -

I'm new to PHP (have mostly used Java previously) and I would like to use opcache-gui to monitor a PrestaShop ecommerce app which I'm running using PHP 5.6.7 with nginx + php-fpm on Debian.

The nginx server is serving the PrestaShop app from the following folder (which already contains its own index.php file):

/var/www/shop1.mysite.com/public_html/prestashop

So my question is: Where should I place the index.php file for opcache-gui?

Should I simply create another nginx server and put the index.php file for opcache-gui in that server's top-level public folder?

If so, will opcache-gui also "see" what's happening on the other server (the main one, serving my PrestaShop app)?

Thanks for any help!

amnuts commented 9 years ago

Hi,

No need to create another server - just rename the index.php file from opcache-gui to anything else, something like 'opcache.php' for example, just anything that doesn't conflict with files already there because of the shop app.

Alternatively, you could always just create a folder called (for example) 'opcache' and have the index.php file in there.

Andy