I installed apc on my ubuntu 10.4 vps today using the following lines.
sudo apt-get install php-apc sudo /etc/init.d/apache2 restart
While everything works fine. I encounter problems configuring
APC. I try to increase the allocated memory size. To my understanding I could do this either by increasing the amount of segments
If I configure
apc.shm_segments and restart/graceful the server
apc.php still shows only one segment. In the apache error log I can find the line:
PHP Warning: PHP Startup: apc.shm_segments setting ignored in MMAP mode in Unknown on line 0
How, would I make APC use apc.shm_segments?
Nevertheless, I'd prefer to use increase apc.shm_size to the 128M I configured as
kernel.shmmax = 134217728
However, everytime I configure
/etc/php5/conf.d/apc.ini and restart/gracful apache. Apache does start but hangs. It does not serve any websites and a
apache2ctl stop is not regarded anymore.
Has anyone experienced the same and/or knows why I can't change the shm_size default value?