2015년 1월 14일 수요일

넥서스 s, 갤럭시 s4 ssid 미표시 문제.

넥서스 s, 갤럭시 s4 에서 wifi의 ssid 가 안 나타나는 현상이 있었다.

다른 디바이스에서는 모두 잘 나타나는 데, 유독 2개의 스마트폰에서만 나타나지 않는다.



원인: wifi의 설정이 2.4GHz 의 13번 채널을 사용 했기 때문이다.

미국의 경우 1~11채널, 한국은  1~13번 채널을 사용한다.



해결:

1. 공유기의 wifi의 채널을 11이하로 변경한다.

2. 유심을 끼고(13채널이 가능한 usim: 그냥 쓰는 거..), 폰을 재부팅한다.





참고 :

http://forum.xda-developers.com/google-nexus-5/help/wifi-channel-13-t2509384/post47064930#post47064930

http://clien.net/cs2/bbs/board.php?bo_table=cm_andro&wr_id=228198

각 국가별 사용가능 채널

2015년 1월 9일 금요일

AP 연동 설치 .(apache 2.4.10 + php 4.4.9 )

php 4.4.9 소스 설치
apache 2.4.10
mysql client 5.1.73
OS : Centos 6.6 32bit


1. php 버젼을 업그레이드 할 수가 없는 상황에서 OS와 httpd만 업그레이드 함.
2. 호환성은 무시하고 간다.
3. CentOS 7.0 버젼으로 하고 싶었으나, 32bit 모듈 문제로 32bit 지원하는 6 버젼 제일 최신으로 감.
4. mysql 은 설치하지 않음. 다른 서버에 설치 되어 있음. client 만 설치.




 


하다 보니 문제점이 속속 터짐.
문제점 1
#make 시 openssl 에러
#make: *** [ext/openssl/openssl.lo] Error 1
해결


참고 : http://blog.renoeve.com/?p=1204




 


문제점 2.
libphp4.so: undefined symbol: ap_get_server_version


ap_get_server_version 해당 함수는 없어졌음.
ap_get_server_banner 으로 바꾸면 됨.
참조 1.


http://www.yongbok.net/blog/apache2-undefined-symbol-unixd_config/


참조2.


http://d.hatena.ne.jp/rougeref/20121115




문제점 3.
mysql 사용시 아래처럼 에러 남.


File ’NONEXISTENT/charsets/?.conf’ not found (Errcode: 2)
Character set ’#19’ is not a compiled character set and is not specified in the ’NONEXISTENT/charsets/Index’ file
File ’NONEXISTENT/charsets/?.conf’ not found (Errcode: 2)
Character set ’#19’ is not a compiled character set and is not specified in the ’NONEXISTENT/charsets/Index’ file
File ’NONEXISTENT/charsets/?.conf’ not found (Errcode: 2)
Character set ’#19’ is not a compiled character set and is not specified in the ’NONEXISTENT/charsets/Index’ file
File ’NONEXISTENT/charsets/?.conf’ not found (Errcode: 2)
Character set ’#19’ is not a compiled character set and is not specified in the ’NONEXISTENT/charsets/Index’ file
File ’NONEXISTENT/charsets/?.conf’ not found (Errcode: 2)
php 기본 내장 client API 는 latin 밖에 지원하지 않는 다고 함.


 


클라이언트 용만 설치 후
yum -y install mysql mysql-devel
php 설치시 configure 옵션을 변경 후 재설치.
’–with-mysql=/usr’ \




문제점 4.
Zend Optimizer 3.3.9 인식 안됨.


인식 안되는 문제는 Thread Safety enable로 설치되어서 임.
근데 왜 Thread Safety enable이냐면
아파치의 apxs를 이용하여 아파치의 mpm 모드를 체크하여, prefork 일 경우만 NTS 모드로 설치를 하는데,
apxs 명령어에 오류가 있다.


php의 configure 파일에서 APXS_MPM=$APXS -q MPM_NAME 부분을 APXS_MPM=httpd -V|awk ’/^Server MPM/{print $3}’ 로 변경.


 


참조: http://wp.enteroa.kr/tag/zend-optimizer/

[MRTG]ERROR: skipping update of xxx.xxx.xxx.1_1001. As /home/mrtg/sw.log is older than MaxAge (7200 s) 오류

mrtg 가 아래 그림과 같이 나오는 이상한 현상 발견.


sw-day


 


 


 


mrtg 명령어를 실행해 보니 아래와 같은 에러 발생.
ERROR: skipping update of xxx.xxx.xxx.1_1001. As /home/mrtg/sw.log is older than MaxAge (7200 s)


cfg 파일에 MaxAge:7200 옵션이 들어가 있었음.


원인 : MaxAge:7200 옵션은 7200초(2시간) 이상된 로그에 대해서는 거부하는 옵션임. mrtg 서버를 테스트 한다고 2004년도로 바꾼 적이 있는 데, 그 때 생긴 로그를 업데이트 하지 못해서 발생하는 문제.
해결 : MaxAge 값을 주석 처리 하고 mrtg 실행 후 다시 주석 해제.


 


참고 : http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html