Archive for the ‘LAMP’ category

# 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

MySQL command

January 12th, 2009

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

January 12th, 2009

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

January 12th, 2009

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

January 12th, 2009

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 [...]

Met this problem when I was compiling PHP5 for my testing virtual centos. Gotto temporary disable it by executing command, /usr/sbin/setenforce 0

The problem happened when I could not start the Apache service when the production server was overloading. root@servername [~]# service httpd start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Lets run the netstat to check the Apache process is hook up [...]

/home/virtfs/Cpanelusername

January 23rd, 2008

Today, I’m going to share my experience related to title. Above path is actually the Jailshell configuration path created by WHM when a Cpanel user was granted with shell access. Note : Do not delete any data inside /home/virtfs/Cpanelusername as it can screw up your Cpanel server. Reason : The /home/virtfs/ is created for user [...]

Apache 2.2.4 Installation

August 7th, 2007

This is after many months I learn install Apache at my Vmware machine under WinXp. As my recent migrate to Ubuntu, I do install Apache for my learning usage. A bit confuse when choose which version to install. But since my comp plan to migrate Apache 1.x to 2.x, I straight away download the latest [...]