Tag Archives: ubuntu

Debian 8 and Ubuntu 14.04 LTS Install Suhosin PHP Extension To Protects Server

Debian 8 and Ubuntu 14.04 LTS Install Suhosin PHP Extension To Protects Server

Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core. How can I install suhosin extension on a Debian v8.x or Ubuntu Linux 14.04 LTS server?
Halal Vitamins

Powered by WPeMatico

Linux / Unix: Shell Script Find Out In Which Directory Script File Resides

I need to find out in which directory my bash script resides so that I can read config file called .backup .ignore .target. For example, if my script resides in >/home/foo/script.sh, I need to read /home/foo/.{backup,ignore,target} files. How do I find out the current directory location and shell script directory location in Bash running on Linux or Unix like operating systems?

Read answer to: “Linux / Unix: Shell Script Find Out In Which Directory Script File Resides

Tweet this    Share on Facebook

Powered by WPeMatico

W: TMPDIR is Mounted noexec, Will Not Cache Run Scripts Error and Solution

I mount /tmp with nodev, nosuid, and noexec options to increase the security of my Linux based web server. And, whenever I ran apt-get install or apt-get upgrade command, I am getting the following error: Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-43-generic
Found initrd image: /boot/initrd.img-3.2.0-43-generic
....
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-43-generic W: TMPDIR is mounted noexec, will not cache run scripts. ....
...
How do I fix this problem without compromising security of the data or web-server?

Read answer to: “W: TMPDIR is Mounted noexec, Will Not Cache Run Scripts Error and Solution

Tweet this    Share on Facebook

Powered by WPeMatico