Chmod all files to 644 and all folders to 755 of a directory

Chmod all files to 644 and all folders to 755 of a directory

Why to chmod ? Using suPHP or FastCGI you gonna notice that they need special permissions. In dso for example 777 is the default. Having those permissions using suPHP is first

dangerous and secondly
not recommended

Especially when almost all providers forbid 777 when using suPHP. So we need to change permissions at …Read More

LAMP Server (Apache / MariaDB /PHP) on Fedora 19+ and Centos/RHEL 7

LAMP Server (Apache / MariaDB /PHP) on Fedora 19+ and Centos/RHEL 7

LAMP is a combination of operating system and open-source software stack. The acronym LAMP comes from the first letters of Linux, Apache HTTP Server, MySQL/MariaDB database, and PHP, Perl or Python (and sometimes PhpMyAdmin too.)

 
Installing Apache
Change to root (if not root already) user using the following command:

and install apache using …Read More

Console commands to hibernate and standby / sleep Linux machines

Console commands to hibernate and standby / sleep Linux machines

It’s great that Linux nowadays supports all the power management features available on computers. But it’s odd that beside the buttons to trigger standby/hibernate – which are only available in a graphical interface – there are no simple console commands to put the computer to sleep or into hibernation.

Standby and …Read More

CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP)

CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP)

More about LAMP
LAMP is nothing but a software bundle or a platform consisting of Linux operating system, Apache web-server, MySQL database server and PHP (or Perl/Python)scripting language. The LAMP stack is used for building heavy-duty dynamic web sites entirely out of free and open-source software. In this tutorial, I’m going …Read More

Software Raid Grub issues

Software Raid Grub issues

raid (mdadm / software raid) issues with grub
Playing around on my labrat I realized that sometimes EL/Centos (6.5 when writing this) messes up booting when using Software raid.

When typical stuff like grub-install from a rescue console doesn’t work:

Or trying to boot from /boot (/dev/md0):

# grub-install /dev/md0

Let’s try something else:

grub> root (hd0,0)
root …Read More