Friday, March 16, 2012

configure memcache php centos


wget http://pecl.php.net/get/memcache-2.1.2.tgz
tar -xvf memcache-2.1.2.tgz
cd memcache-2.1.2
phpize && ./configure --enable-memcache && make

Thursday, March 08, 2012

USB pin assignment


We can get 5V DC power from USB connector using pin 1 (-ve) and pin 5 (+ve). power supply will enough to charge your mobile phone while your phone out of power supply.

Monday, March 05, 2012

cpanel send email from another server

http://www.thecpaneladmin.com/changing-exims-sending-ip/

http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EximDifferentIps

this guide working

To configure a smart host, create
PHP Code:
/etc/exim.conf.local  
and add the following lines. 



Be sure to change to the hostname or ip of the smart host server:


PHP Code:
 @ROUTERSTART@
            
smart_route:
                
driver manualroute
                domains 
= !+local_domains
                transport 
remote_smtp
                route_list 
= * host.name.of.smart.host.server  

Next run
PHP Code:
/scripts/buildeximconf  
Then run
PHP Code:
/scripts/restartsrv_exim  


http://www.underhost.eu/forums/tutorials-how-cpanel-whm/480-how-configure-exim-cpanel-server-use-smart-host.html


Wednesday, February 29, 2012

mod_security bypass administrator backend (forbidden)

edit the /etc/httpd/modsecurity.d/modsecurity_localrules.conf


SecRule REQUEST_FILENAME "/joomla/administrator/index2.php" \
"allow,phase:1,nolog,ctl:ruleEngine=Off"


Ref: http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f7/howto/joomla.html

Tuesday, February 28, 2012

centos install usb modem sms gateway

http://catatanlepas.com/komputer/37-aplikasi-linux/194-membuat-sms-gateway-di-centos-55.html

1. install wvdial

yum install wvdial

2. scan for usb device


[root@local ~]# wvdialconf /etc/wvdial.conf
Scanning your serial ports for a modem.

WvModem<*1>: Cannot get information for serial port.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1: No such device or address
Port Scan<*1>: S1
ttyS2: No such device or address
Port Scan<*1>: S2
ttyS3: No such device or address
Port Scan<*1>: S3


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://open.nit.ca/wvdial/

If you still have problems, send mail to wvdial-list@lists.nit.ca.

3. switch from usb mass storage to modem mode

http://www.linuxquestions.org/questions/linux-newbie-8/zte-ac2627-usb-modem-not-working-in-fedora-9-a-795499/
yum install usb_modeswitch



Saturday, February 25, 2012

rsync + ssh on different port

rsync -av --progress --inplace --rsh='ssh -p8023' somefile user@host:somedir/

In the example above, rsync will use ssh on port 8023.


ref:http://www.linuxquestions.org/questions/linux-software-2/rsync-ssh-on-different-port-448112/

Wednesday, February 22, 2012

svn without SP3

use silksvn to checkout svn repository for older sp2 windows xp. sp3 users can use tortise svn

http://www.sliksvn.com/en/download/
Related Posts Plugin for WordPress, Blogger...