Create a link in UBUNTU to a app or module or extension — how to install fpdf in ubuntu

1. Please login as “root” or admin privilege as root equivalent in terminal and give the following command

# sudo apt-get install php-fpdf

2. Internet connection should be there, after successful installation there will be a file in the following location

# ls -l /usr/share/php/fpdf

3. Please create a symbolic link and direct the link to make available on your webserver ( the default location of apache web server is ” /var/www/ ” ) using the following command

# ln -s /usr/share/php/fpdf  /var/www/fpdf

4. Reload your webserver

#/etc/init.d/apache2 restart

(or)

#/etc/init.d/apache2 force-reload

(or)

#service apache2 restart

5. Make sure PHP commands on web page associated with the conversion to PDF function like this

<?php

require(‘fpdf/fpdf.php’);

?>

6. Finish.

For further reference ,

How to install PHP-FPDF in Ubuntu

Leave a comment

Filed under Development, PHP, UBUNTU, YII

Leave a comment