Wednesday 20 March 2024

Could not start a new session. Response code 500. Message: Failed to read marionette port

There is bug in firefox binary installed using apt/snap, I faced same issue when I installed firefox from apt package respository. I solved this by downloading firefox from official mozilla source and symlinked binary to /usr/bin/firefox/
  • First remove firefox from you system.
apt remove firefox
  • Download firefox from official source. (You may need to replace download URL)
wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/116.0.3/linux-x86_64/en-US/firefox-116.0.3.tar.bz2
  • Extract downloaded archive to location you want. I am using opt to extract archive.
tar -xf firefox-116.0.3.tar.bz2 --directory /opt/
  • Symlink firefox binary to /usr/bin
ln -s /opt/firefox/firefox /usr/bin/firefox

Install imagick extension in PHP

  • Install required packages
yum install php-pear php-devel gcc
  • Install ImageMagick
yum install ImageMagick
yum install ImageMagick-devel 
  • Install ImageMagick PHP Extension
pecl install imagick
echo "extension=imagick.so" > /etc/php.d/imagick.ini

-- OR


Enable remi repository for centos using below guide.

https://www.ubuntumint.com/install-remi-repo-in-rhel-centos-rocky-almalinux/

Once remi repository enabled, you can directly install it from repository using yum.

yum install php-pecl-imagick
  • Restart Apache and check the installation
service httpd restart

Could not start a new session. Response code 500. Message: Failed to read marionette port

There is bug in firefox binary installed using apt/snap, I faced same issue when I installed firefox from apt package respository. I solved ...