DEVICE="eth0" BOOTPROTO="static" NM_CONTROLLED="no" ONBOOT="yes" TYPE="Ethernet" IPADDR=192.168.1.101 NETMASK=255.255.255.0 GATEWAY=192.168.1.1
Category Archives: CentOS
CentOS Misc Terminal Commands
How to Find Host and Domain Name
Terminal Command
hostname
How to create a Virtual Host in CentOS 6.3
After installing apache in CentOS it would go to Apache 2 Test Page.
To locate this directory you need to go to /var/www/
In this directory you can create your file which you needs to run.
To set up Virtual Host navigate to /etc/httpd/conf/httpd.conf file
Open the file in gedit or editor of your preference.
Add the lines below
<VirtualHost *:80> DocumentRoot /var/www/sample/ ServerName virtualhost1 </VirtualHost>
The document root points out to sample older in www directory
The server name is virtual host name you type in URL
You should also add the code in /etc/hosts file
127.0.0.1 virtualhost1
Once this is done dont forget to restart apache server in terminal by typing service httpd.restart
Now you are ready to go now.Open the browser and type http://virtualhost1/
Cheers!!!
Protected: How to run PHP file from Cron Job Cent OS 6
How to install wine in CentOS 6.3
To install Wine in CentOS first check for yum Update using the below Command
yum check-update
Once this is done type
yum install wine
download mysql workbench for centos 6.3
In the Platform you should select Oracle & Redhat
How to install apache in CentOS Terminal
Install Apache Server in Terminal CentOS
yum install httpd
Check Status of Apache Server
/etc/init.d/httpd status
Start Apache Server
/etc/init.d/httpd start
Start MySQL Terminal
/etc/init.d/service mysqld start
Check Status of MySQL
/etc/init.d/service mysqld status