Apache cookbook fail to start Chef

I write a cookbook on Chef.But I got an error.   package ‘apache2’ service ‘apache2’ do action [:enable, :start] end file ‘/var/www/html/index.html’ do content ‘<html> <body> <h1>Hello World</h1> </body> </html>’ end   Error: STDERR: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1. Set the ‘ServerName’ directive globally to suppress…

Read More

How to Clear RAM Memory Cache on Linux

Every Linux System has three options to clear cache without interrupting any processes or services. 1. Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches 2. Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches 3. Clear PageCache, dentries and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches…

Read More

AIX command vs. Linux commands

Common System Files File AIX Linux Password file /etc/passwd /etc/passwd Encrypted password file /etc/security/passwd /etc/shadow Error logs /var/adm/ras/errpt /var/adm/messages /var/log/messages Group files /etc/group /etc/security/group /etc/group /etc/gshadow Secure login /etc/security/user etc/securetty DNS /etc/resolv.conf /etc/netsvc.conf /etc/resolv.conf /etc/nsswitch.conf Hosts file /etc/hosts /etc/hosts Services /etc/services /etc/services Kernel /usr/lib/boot/unix_64 /boot/vmlinuz Device files ODM at /etc/objrepos /dev Inittab /etc/inittab /etc/inittab inetd.conf…

Read More

15 Best Security Tips for LAMP Stack (Apache, MySQL and PHP) on Linux

All the configuration changes are used in this article will be updated in following configuration files as per your operating systems. In some cases configuration files path may change. So make change in appropriate files. After making changes restart related services to change take effect. For Ubuntu, Debian & LinuxMint: Apache2: /etc/apache2/apache2.conf PHP5: /etc/php5/apache2/php.ini MySQL:…

Read More