php53 + apc

Today I have come across this problem: [root@www ~]# php -v PHP:  syntax error, unexpected BOOL_FALSE in /etc/php.ini on line 995 PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/fileinfo.so’ – /usr/lib64/php/modules/fileinfo.so: undefined symbol: php_pcre_exec in Unknown on line 0 PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/zip.so’ – /usr/lib64/php/modules/zip.so: undefined symbol:…

phpinfo from cli/terminal

php -r “phpinfo();” You can also use it: [root@www ~]# php -r “phpinfo();” | grep apc apc apc.cache_by_default => On => On apc.canonicalize => On => On apc.coredump_unmap => Off => Off apc.enable_cli => Off => Off apc.enabled => On => On apc.file_md5 => Off => Off apc.file_update_protection => 2 => 2 apc.filters => no…

PHP mail tester

<?php $to = “admin@kowalczyk.me”; $subject = “Test mail”; $message = “Hello! This is a simple email message.”; $from = “someonelse@example.com”; $headers = “From:” . $from; mail($to,$subject,$message,$headers); echo “Mail Sent.”; ?>