Pages: 12Next
Current Page: 1 of 2
Enabeling OPCache in Wampserver 2.5
Posted by: Mayhski (---.kpn.net)
Date: November 26, 2014 05:43PM

Hi,
I have upgraded my wampserver to version 2.5 since i got my new Desktop in 2 weeks ago.

Since it comes bundled with PHP 5.5.12 i thought i would give opcache a try....

But not with much luck...

I've added the location to php_opcache.dll in the php.ini as zend_extention with the full path to the file (quoted)
and enabled the opcache settings like: opcache.enable=1
but without any luck.

Wamp doesn't pick up that the module is active and doesn't give any errors on the matter.
Functions like opcache_get_status() aren't known by the system.

Has anybody experienced the same problems?



Edited 1 time(s). Last edit at 11/26/2014 05:44PM by Mayhski.

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: RiggsFolly (---.as43234.net)
Date: November 26, 2014 07:13PM

It should be very easy.

For PHP 5.5.x versions

1. Edit php.ini ( using the WampManager menus -> PHP -> php.ini )

2. Find this section of the php.ini file

#zend_extension=php_opcache.dll
[opcache]

3. Uncomment the zend_extension line

zend_extension=php_opcache.dll
[opcache]



As WAMPServer has XDEBUG installed by default you have to remember to add this line BEFORE the line that includes the XDEBUG extension, which is why I decided to put it just before the parameters that are related to the extension

It is in the correct please when you follow the above suggestion.


At this stage you can forget about all the opcache parameters and just restart Apache so the changes to php.ini are picked up.

Run the phpinfo() link on the WampServer homepage, and look for this section of the output


And



Then as a testing tool and also a managment tool I suggest you download opcache-gui so you can see that opcache is doing something.




Once you are sure it has been loaded, you can start to configure it to your requirements.

---------------------------------------------------------------------------------------------
(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-



Edited 1 time(s). Last edit at 03/07/2015 11:35AM by RiggsFolly.

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: EndlessEncounters (199.66.94.---)
Date: March 07, 2015 11:24AM

Is there any difference between adding 1 or the other?


@ RiggsFolly = full path (nix)
;## LOAD OPCACHE
zend_extension = "c:/wamp/bin/php/php5.5.12/ext/php_opcache.dll"
;##


@ EndlessEncounters = short path
;## LOAD OPCACHE
zend_extension=php_opcache.dll
;##

Ran it like this
localhost/phpinfo()

"up and running for both"

Registered: 11/21/2007 04:17AM



Edited 1 time(s). Last edit at 03/07/2015 11:34AM by EndlessEncounters.

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: RiggsFolly (---.as43234.net)
Date: March 07, 2015 11:32AM

No,

Probably not.

The short version appears to work, and is actually already in the php.ini in a commented state, so use that.

---------------------------------------------------------------------------------------------
(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: EndlessEncounters (199.66.94.---)
Date: March 07, 2015 11:38AM

Correct me of I am wrong, I keep hearing that opcache is faster in php 5.5 then APC am i correct?

Registered: 11/21/2007 04:17AM

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: RiggsFolly (---.as43234.net)
Date: March 07, 2015 11:49AM

Well according to this article I think its more a case that APC has admitted defeat in favour of OpCache.

And more importantly has stopped active development since 2012. Instead going to uAPC which has the opcode caching features removed.

---------------------------------------------------------------------------------------------
(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: EndlessEncounters (199.66.94.---)
Date: March 07, 2015 11:51AM

For those wondering enabling php_opcache.dll

@RiggsFolly well explained tutorial above


Wamp with zend & OPcache will improve overall wamp performance

Registered: 11/21/2007 04:17AM

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: EndlessEncounters (199.66.94.---)
Date: March 07, 2015 11:58AM

@ RiggsFolly

The link you provided to Wiki page explained everything winking smiley
Thanks

From Wikipedia, the free encyclopedia
mid of March 2013 starting with PHP 5.5 the Zend Opcache is integrated and shipped with PHP

Registered: 11/21/2007 04:17AM

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: EndlessEncounters (199.66.94.---)
Date: March 07, 2015 01:11PM

@RiggsFolly
you can start to configure it to your requirements.

@the-rest-of-us

What if people really want to start using Zend Opcache to it's full capacity but have NO IDEA what settings to config.

A. Lets start with a Dedicated Server
i7
16gb
2 tb

We would like to test this on steroids! smiling smiley


B. Lets finish with a shared Server for those on shared host


So from ULTRA Tuning recommendations to Regular Tuning would surly be appreciated by many on here.....


Thanks.

Registered: 11/21/2007 04:17AM

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: RiggsFolly (---.as43234.net)
Date: March 07, 2015 02:28PM

Endless,

It's flattering for you to think I am the repository of all knowledge. Unfortunately it's not true.
I learned everything from trial and error and trolling the internet for tutorials/advice.

If people want to know how to configure Opcache, then they are best advised to go to the official web site.
There are too many variable, and by that I mean what people are running and trying to optimise,rather than the opcache veriables. As always optimisation is a trial and error process and is normally specific to the code you are running, the server you are running it on ... etc etc...

Start here [php.net] and work out from there.

This site is basically for helping people get WAMPServer running and not for teaching Apache/MySQL of PHP.

---------------------------------------------------------------------------------------------
(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-



Edited 1 time(s). Last edit at 03/07/2015 03:19PM by RiggsFolly.

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: EndlessEncounters (199.66.94.---)
Date: March 07, 2015 03:01PM

@ziggy
Thanks for the answer.

I agree users must test it out until it suit there needs.

Registered: 11/21/2007 04:17AM

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: EndlessEncounters (199.66.94.---)
Date: March 10, 2015 09:10PM

Not only Zend-Opcache is good but I have now tweaked tests on my own localhost.

Doing tests with WordPress just noticed that it defiantly increased speed with Zend-Opcache, mod_expire and mod_deflate enabled.

Registered: 11/21/2007 04:17AM

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: juggernautsei (172.79.213.---)
Date: May 30, 2016 04:09PM

I am having problems with getting the OPcache to load.

System info:
Windows 64Bit
Windows NT TMB-SEVER1 6.0 build 6002 (Windows Server 2008 Standard Edition Service Pack 2) i586
Build Date Apr 30 2014 11:13:46
Compiler MSVC11 (Visual C++ 2012)
Architecture x86

I have tried everything in this post and still not loading.

zend_extention = "C:/wamp/bin/php/php5.5.12/ext/php_opcache.dll"


Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

Any suggestions on what is stopping OPcache from loading?

Questions?

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

Hi,

Comment the line :
;zend_extention = "C:/wamp/bin/php/php5.5.12/ext/php_opcache.dll"
in file
Wampmanager tray icon -> PHP ->php.ini

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

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: juggernautsei (172.79.213.---)
Date: May 30, 2016 05:47PM

I did comment out the line and still not working.

I found this on the PHP.net site:

Note:
If you want to use OPcache with ยป Xdebug, you must load OPcache before Xdebug.

Xdebug is loading but I don't know where it is being loaded from.

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

Hi,

> I did comment out the line and still not working.
When the line is commented you need to restart Wampserver.

What is "still not working." ?

Opcache is already loaded BEFORE xDebug.

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

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

When I comment out the line I start the service first and the check the phpinfo for the OPcache section. Not there. Then, I reboot the server to see if that would load the OPcache in the phpinfo list. Still not there.

Any suggestions on where else to look?

I used the notepad+ to look for any other listings of Xdebug but xdebug is still loading before the OPcache. There is a white triangle with an ! in it when I click and browse the PHP extention of the wamp manager.

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: Otomatic (Moderator)
Date: May 30, 2016 06:59PM

Hi,

Please : READ BEFORE YOU ASK A QUESTION

Ultimately I do not understand what you want!
First you wondering what to do to not load opcache, and then you ask how to load opcache.

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

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

Apologies if you do not understand. This is not my first time posting here. I have posted here for years so not a nubee.

Now, refer back to my first post. I listed my system setting and type of server as required by posting here.

I have consistently said that the OPcache is NOT loading.

I have listed what I have done to try to get it to LOAD.

NOTHING I have done to change the configuration has caused the OPcache to LOAD.

I checked my PHPINFO() and the OPcache is not showing in the list.

I don't know how to be any more clearer than what I have written above.

Window Server 2008
WAMP 2.5

Options: ReplyQuote
Re: Enabeling OPCache in Wampserver 2.5
Posted by: juggernautsei (172.79.213.---)
Date: May 30, 2016 07:21PM

I have installed WAMP 2.5 on three different servers and each time I install it the same thing happens with the OPcache and enchant.

They both have the triangle with an exclamation point in it.

Does anyone know why it is doing that?

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


Sorry, only registered users may post in this forum.