Tag Info

Hot answers tagged

2

I had the same problem. Running any command throws this error message PHP Warning: PHP Startup: apc.shm_segments setting ignored in MMAP mode in Unknown on line 0 in my case the setting was in apc.ini under the path /etc/php.d/apc.ini I have updated the line "apc.shm_segments=3" to "apc.shm_segments=1" and it solved the problem.


2

It would seem fairly likely that you've made a mess of your php.ini. Comment out one change at a time until it starts working again, then leave that change commented and uncomment one chang at a time. If it stops working again, then leave that one commented and continue. Once you've got only the known troublemakers commented out, you can then work on ...


2

In order to get the colour on your console with PHP CLI, php5-posix module has to be installed. With MacPorts the following command does the job: sudo port install php5-posix Enabling colour on the console for the PHP output will hugely improve the readability in Symfony projects for instance.


1

It is clear that the CLI PHP SAPI is installed, because you can run it. Most likely the issue is that the configuration script or your CGI is running in a chroot and cannot find it; you need to determine where it expects the CLI to be (you may have to read through the config test script if this isn't documented anywhere), and make it available there in the ...


1

It seems that php5_module is already loaded by yourself and loaded later by the default rhel6 configuration or the configuration on rhel6 is loading the module php5_module... which in itself doesn't matter except for the fact that the configuration you are entering is being overridden by the default rhel6 configuration. Looking at step 11 from Dan's site, ...


1

Have you installed the extension to where your command line version of PHP expects it to be? Check extension_dir in your /etc/php.ini to see where it expects to find extensions and install the extension there or point it at your lampp PHP extensions directory (assuming it is a compatible version of PHP).


1

Both php.ini's contains a different extension_dir setting, /etc/php.ini seems to set it to /usr/lib/php/modules and LAMPP sets it to /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626. To make Mailparse work for LAMPP, you need to copy mailparse.so to /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626 and add extension=mailparse.so to ...



Only top voted, non community-wiki answers of a minimum length are eligible