Code Monkey home page Code Monkey logo

Comments (7)

nicoverbruggen avatar nicoverbruggen commented on May 10, 2024 1

I totally missed that opcache, by default, is located in /conf.d/ext-opcache.ini :)

I'm going to close this issue and roll this feedback into #31 -- there's two issues here:

  • Extensions in other files aren't detected by default
  • Extensions that are specified by the full path are not detected due to the regex

I'll be looking into both of these for v4.0 :)

from phpmon.

nicoverbruggen avatar nicoverbruggen commented on May 10, 2024

PHP Monitor currently doesn't support full paths there. You usually don't need to specify the full path regardless.

Does changing the config to:

[opcache]
zend_extension="opcache.so"

cause issues with your PHP installation? After this, PHP Monitor should recognize it. (You should restart PHP Monitor.)

from phpmon.

marcorieser avatar marcorieser commented on May 10, 2024

After removing the full path it says "BROKEN". I'm not sure if my php installation is broken anyways if I have to specify a specific path.

from phpmon.

nicoverbruggen avatar nicoverbruggen commented on May 10, 2024

Okay, best put it back then :) Question: how did you install opcache?

(My reasoning for not handling these earlier was simple: if the user specifies the full path, they probably know what they are doing. If this is what pecl install opcache generated however, I'll need to revisit my regex that detects these. I'll keep that in mind.)

If you don't mind, you can always try removing opcache and try reinstalling it.

Ideally you'd want the following in php.ini as I noted before:

zend_extension="opcache.so"

To be investigated regardless.

from phpmon.

marcorieser avatar marcorieser commented on May 10, 2024

pecl install opcache results in No releases available for package "pecl.php.net/opcache" install failed.
I am no expert in terms of php configuration and honestly I can't remember if I had to install opcache or if it was already bundled with the php 8 installation.

Thank you for this amazing tool!

from phpmon.

nicoverbruggen avatar nicoverbruggen commented on May 10, 2024

opcache is usually bundled with PHP if you installed it via Homebrew. I'm on an older version for test purposes right now, and when I run php -v, I see:

PHP 7.2.34 (cli) (built: Mar 14 2021 10:58:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.34, Copyright (c) 1999-2018, by Zend Technologies

PHP Monitor reports no extensions, since opcache is enabled by default.
If you remove the opcache line from your php.ini file and run php -v, what's the output?

from phpmon.

marcorieser avatar marcorieser commented on May 10, 2024

Then the output is

PHP 8.0.3 (cli) (built: Mar  4 2021 20:42:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies

The only thing I find a bit strange is that opcache is shipped packaged with PHP but yet an absolute path to the opcache.so file must be specified.

from phpmon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.