Pages: Previous12
Current Page: 2 of 2
Re: Enabeling OPCache in Wampserver 2.5
Posted by: Otomatic (Moderator)
Date: May 30, 2016 07:46PM

Hi,

Triangle with exclamation point signify that these extensions cannot be loaded as normal PHP extensions.
Its must be loaded by zend_extension =

This is better explanations with Wampserver 3.

My PC is in backup procedure, so I'll give more explanations tomorrow morning.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: RiggsFolly (Moderator)
Date: May 30, 2016 08:27PM

XDEBUG is loaded RIGHT AT THE BOTTOM OF the php.ini file

Its not dont in any way that could be considered a secret

; XDEBUG Extension

zend_extension = "d:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"
;
[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "d:/wamp/tmp"
xdebug.show_local_vars=0

The opcache config in WAMPServer 2.5 and PHP5.5.12 is configured a few lines above XDEBUG

[opcache]
; Determines if Zend OPCache is enabled
;opcache.enable=0

; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0

; The OPcache shared memory storage size.
;opcache.memory_consumption=64

; The amount of memory for interned strings in Mbytes.
;opcache.interned_strings_buffer=4

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
;opcache.max_accelerated_files=2000

; The maximum percentage of "wasted" memory until a restart is scheduled.
;opcache.max_wasted_percentage=5

; When this directive is enabled, the OPcache appends the current working
; directory to the script key, thus eliminating possible collisions between
; files with the same name (basename). Disabling the directive improves
; performance, but may break existing applications.
;opcache.use_cwd=1

; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
;opcache.validate_timestamps=1

; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
;opcache.revalidate_freq=2

; Enables or disables file search in include_path optimization
;opcache.revalidate_path=0

; If disabled, all PHPDoc comments are dropped from the code to reduce the
; size of the optimized code.
;opcache.save_comments=1

; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
; may be always stored (save_comments=1), but not loaded by applications
; that don't need them anyway.
;opcache.load_comments=1

; If enabled, a fast shutdown sequence is used for the accelerated code
;opcache.fast_shutdown=0

; Allow file existence override (file_exists, etc.) performance feature.
;opcache.enable_file_override=0

; A bitmask, where each bit enables or disables the appropriate OPcache
; passes
;opcache.optimization_level=0xffffffff

;opcache.inherited_hack=1
;opcache.dups_fix=0

; The location of the OPcache blacklist file (wildcards allowed).
; Each OPcache blacklist file is a text file that holds the names of files
; that should not be accelerated. The file format is to add each filename
; to a new line. The filename may be a full path or just a file prefix
; (i.e., /var/www/x  blacklists all the files and directories in /var/www
; that start with 'x'). Line starting with a ; are ignored (comments).
;opcache.blacklist_filename=

; Allows exclusion of large files from being cached. By default all files
; are cached.
;opcache.max_file_size=0

; Check the cache checksum each N requests.
; The default value of "0" means that the checks are disabled.
;opcache.consistency_checks=0

; How long to wait (in seconds) for a scheduled restart to begin if the cache
; is not being accessed.
;opcache.force_restart_timeout=180

; OPcache error_log file name. Empty string assumes "stderr".
;opcache.error_log=

; All OPcache errors go to the Web server log.
; By default, only fatal errors (level 0) or errors (level 1) are logged.
; You can also enable warnings (level 2), info messages (level 3) or
; debug messages (level 4).
;opcache.log_verbosity_level=1

; Preferred Shared Memory back-end. Leave empty and let the system decide.
;opcache.preferred_memory_model=

; Protect the shared memory from unexpected writing during script execution.
; Useful for internal debugging only.
;opcache.protect_memory=0


BUT BY DEFAULT there is no load of the opcache extension, so add it here

zend_extension=php_opcache.dll
[opcache]


Now using the wampmanager menus do

(left click) wampmanager -> Apache -> Service -> restart service

Now look at the output from phpinfo

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: juggernautsei (---.drr01.mybh.sc.frontiernet.net)
Date: May 31, 2016 12:56PM

Thank you for all your help.
Here are all of my setting from the php.ini file.

I have tried the php_opcache.dll with and without the path and still it does not load. I have checked that all the Visual C++ versions are loaded from 2010 - 2015. I have tried to load the dll with the regsrv32 command the the system tells me to check and make sure that the dll is a real dll file.

I still have the /!\triangle next to the php_opcache.dll in the extension menu. Next I was going to try adding the dll to the path statement for windows. But I am quickly running out of ideals.

I used the dll checker [technet.microsoft.com] and the dll is not loaded or loading.

[opcache]
zend_extention = php_opcache.dll
; Determines if Zend OPCache is enabled
opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1

; The OPcache shared memory storage size.
opcache.memory_consumption=128

; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
opcache.max_accelerated_files=4000

; The maximum percentage of "wasted" memory until a restart is scheduled.
opcache.max_wasted_percentage=5

; When this directive is enabled, the OPcache appends the current working
; directory to the script key, thus eliminating possible collisions between
; files with the same name (basename). Disabling the directive improves
; performance, but may break existing applications.
opcache.use_cwd=1

; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
opcache.validate_timestamps=1

; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
opcache.revalidate_freq=60

; Enables or disables file search in include_path optimization
opcache.revalidate_path=1

; If disabled, all PHPDoc comments are dropped from the code to reduce the
; size of the optimized code.
opcache.save_comments=1

; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
; may be always stored (save_comments=1), but not loaded by applications
; that don't need them anyway.
opcache.load_comments=1

; If enabled, a fast shutdown sequence is used for the accelerated code
opcache.fast_shutdown=1

; Allow file existence override (file_exists, etc.) performance feature.
opcache.enable_file_override=1

; A bitmask, where each bit enables or disables the appropriate OPcache
; passes
opcache.optimization_level=0xffffffff

;opcache.inherited_hack=1
opcache.dups_fix=0

; The location of the OPcache blacklist file (wildcards allowed).
; Each OPcache blacklist file is a text file that holds the names of files
; that should not be accelerated. The file format is to add each filename
; to a new line. The filename may be a full path or just a file prefix
; (i.e., /var/www/x blacklists all the files and directories in /var/www
; that start with 'x'). Line starting with a ; are ignored (comments).
;opcache.blacklist_filename=

; Allows exclusion of large files from being cached. By default all files
; are cached.
opcache.max_file_size=512

; Check the cache checksum each N requests.
; The default value of "0" means that the checks are disabled.
;opcache.consistency_checks=0

; How long to wait (in seconds) for a scheduled restart to begin if the cache
; is not being accessed.
opcache.force_restart_timeout=180

; OPcache error_log file name. Empty string assumes "stderr".
opcache.error_log=

; All OPcache errors go to the Web server log.
; By default, only fatal errors (level 0) or errors (level 1) are logged.
; You can also enable warnings (level 2), info messages (level 3) or
; debug messages (level 4).
;opcache.log_verbosity_level=1

; Preferred Shared Memory back-end. Leave empty and let the system decide.
;opcache.preferred_memory_model=

; Protect the shared memory from unexpected writing during script execution.
; Useful for internal debugging only.
;opcache.protect_memory=0

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;curl.cainfo =

; Local Variables:
; tab-width: 4
; End:

; XDEBUG Extension

zend_extension = "c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"

;
[xdebug]
xdebug.remote_enable = on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=1
xdebug.max_nesting_level=512

Above is all



Edited 1 time(s). Last edit at 05/31/2016 12:57PM by juggernautsei.

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: Otomatic (Moderator)
Date: May 31, 2016 01:04PM

Hi,

> I still have the /!\triangle next to the php_opcache.dll in the extension menu.
This is completely normal. This simply indicates that the php_opcache.dll extension can not be loaded in the same way as php extensions.
> Next I was going to try adding the dll to the path statement for windows.
One should never put on a path Wampserver in the Windows path.

> [opcache]
> zend_extention = php_opcache.dll
As for xdebug, you must use the complete full path.
zend_extension ="c:/wamp/bin/php/php5.5.12/ext/php_opcache.dll"

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: juggernautsei (---.knology.net)
Date: May 31, 2016 09:02PM

[innercitycocva.org]

I was hoping that taking the space out and copying and pasting what you wrote would fix the issue. please see screenshot.

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: Otomatic (Moderator)
Date: June 01, 2016 10:43AM

Hi,

I repeat once again that whatever the circumstances, there will always be a triangle with an exclamation mark next to the name php_opcache.
This is only an indication, indicating that this extension will not be switched on or off like any other PHP extensions.
This indication is entirely independent of whether the php_opcache extension is loaded or unloaded.
The way to see if this extension is loaded or not is either a phpinfo () or the homepage of Wampserver.


---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: RiggsFolly (Moderator)
Date: June 01, 2016 10:50AM

The enchant extension requires that a dictionary has been installed (seperately to PHP)

Have you installed one of the dictionaries??? If not then it wont work and you will get the [triangle with an exclamation]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: juggernautsei (---.hr.hr.cox.net)
Date: June 01, 2016 03:53PM

Thanks for all your help...

I am able to install drupal 8.1.1 now.

It still does not show in the phpinfo() list but now drupal gives me the option to continue even though before it did not give the option before changing the setting from 1 to 0 which seems counter intuitive since 1 is normally the on condition and 0 being the off condition.

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.