# mysql ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO) Create a file .my.cnf in /root . Insert below detail to .my.cnf [client] user=root pass=mysql root password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
MySQL command
Create mysql user with password : # mysql # create user wpuser identified by ‘wppass’; Note : wpuser is the mysql username and follow by wppass is the mysql user password. Grant privileges to mysql db : # grant all privileges on wordpress.* to ‘wpuser’@’localhost’ identified by ‘wppass’; Check privileges : show grants for ‘wpuser’@’localhost’; [...]
cannot run apxs
The error faced when compiling PHP module to Apache2. Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using –with-apxs2=/path/to/apxs 3. Apache was not built using –enable-so (the apxs usage page is displayed) The output of /usr/local/apache/bin/apxs follows: ./configure: /usr/local/apache/bin/apxs: /replace/with/path/to/perl/interpreter: [...]
chkconfig
Learn some chkconfig command today. This command is used to maintain the /etc/rc[0-6].d directory hierarchy. First of all, lets understand and differentiate some of the /etc/rc[0-6].d . rc1.d >>> Single user mode rc2.d >>> Custom user mode rc3.d >>>Multiple user mode with networking availability rc4.d >>> Custom user mode rc5.d >>> Multiple user mode with [...]
Manually install pureftp
Before install pureftp, I am going to show how to manually create a linux user, linux group and assign the user to grou[. Add user: # useradd ftpuser Check user: # less /etc/passwd ftpuser:x:500:500::/home/ftpuser:/bin/bash Add group: # groupadd ftpgroup Check group: # less /etc/group ftpgroup:x:500: Assign user to group: # vi /etc/group change ftpgroup:x:500: to [...]