php - Ubuntu Error and Email from Cron? -


i have been trying figure out whats going on here... have looked on , nothing seems solid solution. if knows link or information on how fix appreciated.

ubuntu 14.04 lts microsoft azure server apache drupal site apc enabled (everything looks on drupal side) keep getting these annoying emails below issue.

i added smtp , mailutils server, , getting these errors looks apache / php...

--

cron [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime)

php warning: php startup: unable load dynamic library '/usr/lib/php5/20121212/apc.so' - /usr/lib/php5/20121212/apc.so: cannot open shared object file: no such file or directory in unknown on line 0

thanks help, -frank

these being generated /etc/cron.d/php5 cronjob. if want errors generated here stop being emailed, can set mailto="" on line before command in file. not desired solution here, useful 1) know can find error coming , 2) know how control output.

the command generating these errors maxlifetime. can confirm trying run /usr/lib/php5/maxlifetime , seeing if same error comes up.

your apc.so file might somewhere else. try "locate apc.so" find out is. if doesn't exist, recommend reinstalling extension exist. if exist, /etc/php5/apache2/php.ini file might having trouble finding it. couple solutions read other threads had people either creating symbolic link to file (a bit sloppy, works) or noticing "extension_dir=" in php.ini set other "./" looking in wrong place (or "extension=apc.so" entry contained of path , had typo or something).

in case, php.ini file trying load extension msql.so didn't exist on system. don't know why this, commented out line , error messages went away. in cases, though, assume extension deliberately installed want go route of tracking down or fixing it.

good luck.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -