Was seeing some session issue as follows: 1[me@example default]$ cd /var/www/example.com/docroot 2[me@example docroot]$ drush st 34session_set_save_handler(): Cannot change save handler when headers already sent session.inc:242 [warning] 5session_id(): Cannot change session id when headers already sent session.inc:266 …
Read MoreIf you're seeing an error in your log: 1PHP Fatal error: Maximum execution time of 240 seconds exceeded in </path/to/any_file.php> on line xx Then you may need to edit your php.ini and update the variable 'maximum_execution_time'. Don't forget to restart your web service. If issue persist, then overrides is being …
Read More1me@web-13940:/var/log/sites/web.prod/logs/web-13940$ zgrep -c 'Allowed memory size of' php-errors.log php-errors.log-201712* 2php-errors.log:11 3php-errors.log-20171222.gz:4 1me@web-13940:/var/log/sites/web.prod/logs/web-13940$ zgrep 'Allowed memory size of' php-errors.log* | grep -o …
Read MoreI was seeing this error from drupal logs: 1User error: ImageMagick error 127: sh: convert: command not found in _imagemagick_convert_exec() (line 522 of /var/www/example.com/docroot/sites/all/modules/contrib/imagemagick/imagemagick.module). Which indicates that package ImageMagick wasn't installed. Since the machine in …
Read MoreUpdate php.ini, example 1error_log = /tmp/error_php Then restart apache Details in https://www.redips.net/php/log-errors-separate-file/
Read More1<?php 2$inipath = php_ini_loaded_file(); 3if ($inipath) { 4echo 'Loaded php.ini: ' . $inipath; 5} else { 6echo 'A php.ini file is not loaded'; 7} 8?> or 1[icasimpan!@example.org ~]$ php -i |grep php.ini 2Configuration File (php.ini) Path => /etc 3Loaded Configuration File => /etc/php.ini …
Read More1$ git clone https://github.com/mongodb/mongo-php-driver.git 2$ cd mongo-php-driver 3$ git submodule sync && git submodule update --init 4$ phpize 5$ ./configure 6$ make all -j 5 7$ sudo make install Details in https://www.php.net/manual/en/mongodb.installation.manual.php or …
Read More1sudo add-apt-repository ppa:ondrej/php 2sudo apt-get update 3sudo apt-get install mcrypt php7.1-mcrypt
Read More