ERROR: `/root/tmp/pear/pdflib/configure –with-pdflib=/usr/local' failed

How to UNSECURED /tmp and /var/tmp partition.

On the linux server the /tmp and /var/tmp partition is secure. So you can not installed some php modules for example “pdflib” on the server, it shows the error  “ERROR: `/root/tmp/pear/pdflib/configure –with-pdflib=/usr/local’ failed”  then you need to set the /tmp and /var/tmp partition UNSECURED and then try to install it

You can set UNSECURED it by using following steps.

1)[root@server~]$ mount -o remount rw /tmp

2) [root@server~]$ mount -o remount rw /var/tmp

You can set SECURED it by using following steps.

1) [root@server~]$ mount -o remount noexec,nosuid,rw /tmp

2) [root@server~]$ mount -o remount noexec,nosuid,rw /var/tmp

Or

1]  /scripts/securetmp

Leave a Comment