แก้ไขที่ php.ini หาบรรทัดที่มีข้อความว่า   disable_functions =
โดย เพิ่มข้อความเหล่านี้ไปหลัง เครื่องหมาย = แล้วจัดการเซฟ

escapeshellarg, escapeshellcmd, exec, passthru, proc_open,proc_close,proc_get_status, proc_nice, proc_terminate,shell_exec, system,apache_child_terminate, apache_get_modules,apache_get_version,apache_getenv, apache_lookup_uri, apache_note,apache_request_headers,apache_reset_timeout, apache_response_headers,apache_setenv, getallheaders, virtual, popen, pclose

สั่ง restart apache

ให้ทำการเพิ่มข้อความด้านล่างลงไปใน my.cnf แล้วทำการ restart mysql

local-infile=0

How to install mod_rpaf – reverse proxy

wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz
tar -xvzf mod_rpaf-0.6.tar.gz
cd mod_rpaf-0.6
apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c

 

add this to httpd.conf and save it

LoadModule rpaf_module /usr/lib/apache/mod_rpaf-2.0.so
#Reverse proxy
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1 xxx.xxx.xxx.xxx <-- set your public ip xxx.xxx.xxx.xxx
RPAFheader X-Forwarded-For

 

restart service apache

#/etc/init.d/httpd restart

การ backup/restore OpenLdap (BerkleyDB)

Posted: 25th May 2009 by admin in Linux How to
Tags:

Backup:

slapcat > backup.ldif

Restore:

slapadd < backup.ldif