开发者

Anyone successfully used php_apc with symfony1.4?

开发者 https://www.devze.com 2022-12-20 11:44 出处:网络
I开发者_开发百科 can only make symfony work properly by diabling php_apc.dll, very strange!Yes, I am using it with Symfony 1.4 at the moment. I\'ve got the latest XAMPP installed on a Windows 7 machin

I开发者_开发百科 can only make symfony work properly by diabling php_apc.dll, very strange!


Yes, I am using it with Symfony 1.4 at the moment. I've got the latest XAMPP installed on a Windows 7 machine and I enabled APC on it.

I seem to remember that this was the source of some headache for me when I installed XAMPP for the first time a few months ago but all is working fine now.

Let me know if I can help out somehow, with settings info or something.

MORE INFO:

Thinking about this further, I think what's suggested in Cryo's link below is what I did when I started out (I had to replace the dll with another version)... but now that my Symfony project is created, APC is working clean out of XAMPP (I've switched machines in the middle of project and didn't need to replace the APC dll for the current one).

MY APC SETTINGS IN PHP.INI:

[PECL]
extension=php_apc.dll

[apc]
apc.shm_segments = 1
apc.shm_size = 128M
apc.ttl = 7200
apc.user_ttl = 7200
apc.num_files_hint = 1024
apc.enable_cli = 1

(the APC part is the XAMPP default, I only uncommented the PECL line to enable APC)


The following may provide some insight: http://forum.symfony-project.org/index.php/m/82364/#msg_num_6


For me Zend optimizer needed disabling.

To do this edit zend.ini:

nano /etc/php.d/zend.ini

where /etc/php.d/ is replaced by the path for your local installation:

remove or comment out line:

zend_extension=/usr/lib64/php/modules/ZendOptimizer.so

and then restart apache :)

to find zend.ini path:

updatedb

followed by:

locate zend.ini 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号