To sort this just run the folowing command to map the databases:
[root@server ~]# /usr/local/cpanel/bin/setupdbmap
Once done you should be able to view the DB’s in the cPanel.
Sep 8
To sort this just run the folowing command to map the databases:
[root@server ~]# /usr/local/cpanel/bin/setupdbmap
Once done you should be able to view the DB’s in the cPanel.
Sep 8
One day my client asked me to migrate a Direct Admin Server to NEW server with improved hardware. He wants this migration with minimum down time.
Below are the steps which I did for this migration.
Read the rest of this entry
Apr 7
E: syslogd appears to be running, but not klogd which logs kernel firewall messages to syslog. You should ensure that klogd is running
R: nano -c /etc/init.d/syslog
Search the line below, (nearly at line # 42)
passed klogd skipped #daemon klogd $KLOGD_OPTIONS
Replace it with lines below,
#passed klogd skipped
daemon klogd $KLOGD_OPTIONS
Now search ‘status klogd’ (nearly at line #61) and uncomment it.
If you change the file, remember to restart syslog via /etc/init.d/syslog restart
Apr 4
/usr/lib64/apr-1/build/libtool –silent –mode=compile gcc -prefer-pic -DLINUX =2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/include -I/usr/include/apache -I/usr/include/apr-1 -I/usr/include/apache -O2 -g -Wall -DWITH_PCRE _STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 – I/usr/include/apache -I/usr/include/apache -I. -I/usr/local/directadmin/custombuild/httpd-2.2.17/srclib/apr/include -I/usr/local/directadmin/custombuild/httpd-2.2.17/srclib/apr-util/include -I/usr/local/directadmin/custombuild/httpd-2.2.17/ srclib/apr-util/xml/expat/lib -I/usr/local/include -I/usr/include -I/usr/kerberos/include -I/usr/local/include -I/usr/local/include/libxml2 -c -o msc_pcre.lo m sc_pcre.c && touch msc_pcre.slo
msc_pcre.c: In function ‘msc_pregcomp_ex’:
msc_pcre.c:73: error: invalid application of ‘sizeof’ to incomplete type ‘pcre_extra’
msc_pcre.c:77: error: invalid application of ‘sizeof’ to incomplete type ‘pcre_extra’
msc_pcre.c:98: warning: ignoring #pragma message
msc_pcre.c:119: warning: ignoring #pragma message
apxs:Error: Command failed with rc=65536
.
make: *** [mod_security2.la] Error 1
the solution is simple:
Copy the pcre.h from /usr/include/
TO /usr/include/apache and replace the old pcre.h (always backup)