Category Archives: Operating System

Install LAMP Server using command line

Hello Linux Lovers! The acronym LAMP is derived from first letters of Linux, Apache HTTP Server, Database MySQL, and Language PHP, Perl or Python. We already have shown you how to install LAMP on many platforms. So we can say that LAMP is a combination of operating system and open-source software stack.
Lets start the LAMP setup procedure:
1. To install LAMP run the below command:

sudo apt-get install lamp-server^

2. Run the following commands to setup user for your apache server, add permission & enable some modules:
sudo usermod -a -G www-data YOUR_USER_NAME

sudo chgrp -R www-data /var/www

sudo chmod -R g+w /var/www

sudo apt-get install php5-curl

sudo a2enmod rewrite

Primary DNS Server on RHEL 5.x

Step- 1: Check bind and caching-nameserver rpm package is installed or not by following this command: [root@ns1 ~]# rpm -qa | grep –i bind*    or [root@ns1 ~]#  rpm –qa bind*            (if installed then it will show all the bind related packages) bind-chroot-9.3.6-4.P1.el5 bind-libs-9.3.6-4.P1.el5 ypbind-1.19-12.el5 bind-9.3.6-4.P1.el5 bind-utils-9.3.6-4.P1.el5 bind-sdb-9.3.6-4.P1.el5 bind-devel-9.3.6-4.P1.el5 bind-libbind-devel-9.3.6-4.P1.el5 system-config-bind-4.0.3-4.el5 [root@ns1 ~]# rpm -qa […]