Posts

Showing posts from August, 2014

How to make website/webpage accessible without 'www'?

It would be convenient for users to access websites without having to type 'www' everytime. For example www.abc.bt would be made accessible simply by typing abc.bt . How do we achieve it. This may be achieved by making changes in DNS and httpd.conf file. In DNS, there are two ways to achieve it, first with A Record, second with CNAME. But I will show example using A record. Lets say we have a domain, abc.bt and IP Address of the server on which website is hosted is 192.168.0.10 In the DNS file, create A record as follows: www.abc.bt        IN       A       192.168.0.10 abc.bt                 IN       A        192.168.0.10 Now edit the httpd.conf file            <VirtualHost *:80>                 ServerAdmin webmaster@abc.bt         ...

How to install php-mcrypt on CentOS 7 with php 5.4?

First download the rpm file from the source by issuing the following command: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm Install the rpm package with the following command:  yum localinstall php-mcrypt-5.3.3-3.el6.x86_64.rpm

How to install php on CentOS 7

Step 1: To install php and other required modules             sudo yum install php php-mysql php-gd php-pear Step 2: Start the apache(httpd) to make effect             sudo systemctl restart httpd.service

How to install mysql on CentOS 7

MariaDB is enhanced version of MySQL. For further information check  https://mariadb.org To install the mariaDB, launch the following commands Step 1: Install mariaDB         sudo yum install mariadb-server maria Step 2: Start the mariadb daemon         sudo systemctl start mariadb.service Step 3: Make the mariadb daemon start automatically on system reboot         sudo systemctl enable mariadb.service

How to install GNOME GUI on CentOS 7

Step 1. Download the latest version of CentOS from http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso Step 2. Install  CentOS 7 as minimal server with libraries. Step 3. To install GNOME GUI run the following commands                # yum groupinstall "GNOME Desktop" "Graphical Administration Tools" Step 4.  Run the  following command to enable the GUI on system start.               ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target Step 5. Reboot the system and you are done with GUI installation