alluldrinkcafe
·
Fri, 26 Jul 2013 17:19:31 +0000
It is necessary to install pecl first. apt-get install php-pear then use: pecl install mongo if error occurs like sh: phpize command not found, just install php-dev with apt-get. and add a line in php.ini extension=mong...
alluldrinkcafe
·
Fri, 28 Jun 2013 15:54:39 +0000
Some VPS offers forbid ipv6 connections, here is how to open it: # vim /etc/sysconfig/network modify NETWORKING_IPV6 = no to yes # vim /etc/modprobe.d/disable_ipv6.conf (or another .conf file, the name of that file may...
alluldrinkcafe
·
Tue, 25 Jun 2013 11:01:20 +0000
with root, we use: # echo 1 > /proc/sys/net/ipv4/ip_forward without root, one cannot simply add sudo before previous command, since ‘>’ also needs to be ‘sudoed’. We need to use: # echo R...
alluldrinkcafe
·
Sun, 23 Jun 2013 05:48:51 +0000
Recently, I find an interesting system called BackTrack, which contains lots of web security tools. In the next few days, I am going to experience it.
alluldrinkcafe
·
Fri, 14 Jun 2013 05:37:51 +0000
json_Decode/Encode function are only available in php version >5.2.0, which are not included in official source of centos. Here is the method: # rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka # vi /e...
alluldrinkcafe
·
Fri, 14 Jun 2013 05:32:07 +0000
1. Apply for a application on open.weibo.com, and get an app key and a secret key. 2. download an SDK with demo for PHP from here. 3. Be sure that your PHP version is above 5.2.0, since json_decode/json_encode function i...
alluldrinkcafe
·
Wed, 12 Jun 2013 10:56:41 +0000
It is comparatively easier to configure Apache than Squid. Two problems may occur when it first run: 1 httpd: apr_sockaddr_info_get() failed for [hostname] solution : uncomment ServerName paragraph and define hostname. 2...
alluldrinkcafe
·
Wed, 12 Jun 2013 10:23:35 +0000
Httpd has to be installed before proxy authorized to users. htpasswd -c /etc/squid/passwd [username]
alluldrinkcafe
·
Tue, 11 Jun 2013 12:52:51 +0000
There are two ways to modify the name of a server: temporarily, and permanently. By use command hostname [newhostname] By modify HOSTNAME of file /etc/sysconfig/network Both two methods are needed when hostname has to be...
alluldrinkcafe
·
Tue, 11 Jun 2013 12:43:13 +0000
SQUID is a great HTTP proxy tool, which can be installed directly with “yum install squid”. a typical squid configuration file is listed below: acl all src 0.0.0.0/0 acl vip src x.x.x.0/24 auth_param basic pr...