Tag: file

How Do I Enable Remote Access To MySQL Database Server?

By default remote access to MySQL database server is disabled for security reasons. However, some time you need to provide remote access to database server from home or a web server. If you want to remotely access to the database server from the web server or home, follow this quick […]

Linux or UNIX Recover deleted files – undelete files

If you rum rm command accidentally and deleted important a file, recovery becomes critical under Linux and/or UNIX oses. Since Linux is multiuser and multitasking operating system other users/process can overwrite deleted file disk space. So you need to take down system to single user mode. First use wall (only […]

PHP Warning: POST Content-Length exceeds the limit

PHP Warning: POST Content-Length of xxxxx bytes exceeds the limit of xxxxxx bytes in Unknown on line 0 You receive the “POST Content-Length” error message when a file greater than the size defined in the php.ini file is uploaded via the browser. The file you are uploading using the POST […]

/tmp partition full. Howto increase /tmp partition size

/tmp partition full… How to increase /tmp partition? You can create a Virtual partition on Linux in case your server isn’t built with a /tmp partition OR you need to increase the disk space of the partition for some reason, and then you can mount the virtual partition as /tmp. […]

Bash For Loop Examples

Question: How do I use bash for loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using for statement? How do I use three-parameter for loop control expression? Answer: A ‘for loop’ is a bash programming language statement which allows code to be repeatedly […]

-bash: locate: command not found

Error Message: [root@server ~]# locate filename -bash: locate: command not found You may receive the above error message while searching a file using locate command and the error indicates that the package “slocate” required for the locate command is not installed. To install the package, execute: yum -y install slocate […]

HOWTO: ProFTPD Antivirus using CLAMAV

This howto is about making ProFTPD work with CLAMAV to scan all files uploaded by users using a FTP client. Recently our customers are having real difficulty with Iframe viruses, Php shells and other kind of windows viruses are also a headache always. ClamAV is already working with exim mail […]