Blogs

Upgrade PHP on Ubuntu 14

Starting with PHP 5.5.9 on Ubuntu 14. Upgrade PHP to 7.2

sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.2 php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
sudo apt-get install libapache2-mod-php7.2 -y

sudo a2dismod php5
sudo a2enmod php7.2
sudo service apache2 restart

Got recommendation to add apache2 repo as well. Complied.

Initial tests showing everything working as before. 

Website performance seems faster.

Specify fonts for BIRT PDF report

Assume you have used the Calibri font at design-time.

Extract the fontsConfig file. The actual version number of the birt runtime will be different for you installation.

cd /var/lib/tomcat7/webapps/birt/WEB-INF/lib
jar xf org.eclipse.birt.runtime_3.7.2.v20120214-1408.jar fontsConfig.xml

Assume under Ubuntu linux you have added the Calibri fonts to the folder /usr/share/fonts/truetype/calibri. The permissions of this folder should look like

Style content in ckeditor

To see your content in the ckeditor the same way, or close to it, that it appears when viewed, you need to add your custom styles to one of the CSS files loaded by the editor.

The ckeditor.css file is loaded. It is located in modules/ckeditor/css/ckeditor.css. You could place your custom css there.

However, your default theme’s style.css is also loaded. It is better to place it there since you already have to have it there to show up when viewed.

Pages

Subscribe to Blogs