Monthly Archives: September 2011

Setting PHP INI parameters from nginx

A little known feature in PHP-FPM 5.3.3+ (since it was integrated into PHP core) is that you can actually define PHP INI parameters inside of your nginx configuration. This bridges some of the desire to have “php_value” and “php_admin_value” from … Continue reading

Posted in Nginx, php | Tagged , , , | Comments Off

Receive e-mail reports for SELinux AVC denials

SELinux isn’t a technology that’s easy to tackle for newcomers. However, there’s been a lot of work to smooth out the rough edges while still keeping a tight grip on what applications and users are allowed to do on a … Continue reading

Posted in Email | Tagged | Comments Off

Tarball Delete ( remove ) File

How do I delete OR remove a single file from within a tar ball under Unix / Linux like operating systems? You can use the following syntax to delete a file from a tar ball:   tar –delete -f example.tar … Continue reading

Posted in Uncategorized | Tagged , | Comments Off

Linux / UNIX: HowTo Empty Directory

How do I empty a directory (delete all files) under Linux / Unix without deleting directory itself? You can use the following commands: [a] rm command - Delete one or more files or directories. [b] find command - Find and delete all files from … Continue reading

Posted in Uncategorized | Comments Off

Linux: Mount Disk Partition Using LABEL

How do I mount the filesystem (disk partition) using the filesystem label on the ext3/ext4 file system located on USB disk or hard disk under Linux operating systems? The e2label command will display or set the filesystem label. The mount command has … Continue reading

Posted in Linux | Tagged , , | Comments Off

Linux / Unix: Bash Find Matching All Dot Files

A dot-file is generally any file whose name begins with a full stop. In Linux or Unix like operating system it is also called as hidden file. How do I list all dot files in my home directory? You can … Continue reading

Posted in Linux, Shell | Comments Off

Nginx HTTP MP4 module

The module ngx_http_mp4_module provides pseudo-streaming server-side support for H.264/AAC files typically having filename extensions .mp4, .m4v, and .m4a. Pseudo-streaming works in alliance with conformant Flash players. A player sends an HTTP request to the server with a start time argument … Continue reading

Posted in http, Module, Nginx | Tagged | Comments Off

Linux: NFS4 mount Error reason given by server: No such file or directory

I recently installed NFS server v4 on my HP Linux server. However, I’m not able to mount it from Linux nfs4 client using the following command: mount.nfs4 server2:/data /data I’m getting the following error: mount.nfs4: mounting server2:/data failed, reason given … Continue reading

Posted in Error, NTFS | Tagged , , | Comments Off

Debian / Ubuntu Linux: Setup NFSv4 File Server

How do I install and configure NFS version 4 server under Debian or Ubuntu Linux server operating systems using host-based authentication? You need to install the following packages in Debian / Ubuntu Linux server: nfs-kernel-server: Linux kernel NFS version 3 … Continue reading

Posted in FileSystem, NTFS | Tagged , , | Comments Off

RHEL / CentOS Linux: Mount and Access NTFS Partition

How to enable NTFS support on CentOS Linux version 5 or 6? How do I mount ntfs partition under RHEL 5 or 6? First, you need to install EPEL repo as described here. The following command will turn in EPEL … Continue reading

Posted in FileSystem, Linux, NTFS | Tagged , | Comments Off