Wednesday, 18 December 2013

[CentOS] Re: Forbidden error 403: You don't have permission to access /phpMyAdmin/ on this server.

[CentOS] Re: Forbidden error 403: You don't have permission to access /phpMyAdmin/ on this server.

After installing the phpMyadmin in Centos 6.4,  I try to open in browser by assign this 172.16.1.251/phpmyadmin, it was opening but when try to open it from other machine it was not, so the solution I applied is given below:

 [root@myhost~]vi /etc/httpd/conf.d/phpMyAdmin.conf


In section

<IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 172.16.1.251
     Allow from ::1
    </IfModule>


change as follows:

<IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     #Deny from All
     Allow from 172.16.1.251
     Allow from ::1
     Allow from all
   </IfModule>

and save and quit.

Then restart

#service httpd restart

Tuesday, 17 December 2013

MYSQLD Deamon not starting, giving "Another MYSQL Deamon running with same Unix socket"

I have CentOS 6.4 and install MYSQL , after working some hours, I power off the system, now after Powering on the system, above error occurred, to solve the problem please do the following steps:


# shutdown -h now
 
This will stop the running services before powering down the machine.


# mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak

# service mysqld start
 
Restarting the service creates a new entry called mqsql.sock
Or if the problem still not resolved then try below command

socket=/var/lib/mysql/mysql2.sock 

Monday, 16 December 2013

Print Spooler service is not started error in Win Xp


 Print Spooler service is not started error in Win Xp



"Print Spooler service is not started error in Win Xp" or Any error regarding printing use "Microsoft Fix it" to fix the problem.

HOW TO INSTALL MS OFFICE 2007 IN UBUNTU 12.04 64-BIT


Wednesday, 9 October 2013

How to Open pdf File in terminal via Command Line

How to Open pdf File in terminal via Command Line:--

[user@hostname~]$gnome-open   xyz.pdf

Sunday, 6 October 2013

How to open .rar File in Ubuntu

How to open .rar File in Ubuntu.

[user@hostname~]#sudo apt-get install unrar

Thursday, 3 October 2013

How to solve parted error (Error: Unable to open /dev/sdc – unrecognised disk label.)

How to solve parted  error (Error: Unable to open /dev/sdc – unrecognized disk label.)

OCT-3-2013

Sometimes, after connecting an internal or external hard drive to your system you will face GPT error. In my scenario I face following issue when adding new partition like /dev/sdc.
[root@rhel01~]# parted /dev/sdc
GNU Parted 1.8.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print free
Error: Unable to open /dev/sda - unrecognized disk label.

Because this error comes due to two reason:
1. GPT
2.MSDOS

By default parted treats SCSI sda*  device as GPT tables. making it MSDOS will solve the problem.
How to replace the GPT table with msdos ?
[root@rhel01~]#parted /dev/sda
(parted) mklabel msdos
(parted) quit
It creates a new disk label of type “msdos”.
Reference link
http://linuxian.com/2012/09/10/how-to-solve-gpt-error-error-unable-to-open-devsda-unrecognised-disk-label/