'전체 글'에 해당되는 글 93건

  1. 2016.10.08 [트러블슈팅] qmail 메일큐 삭제
  2. 2016.09.24 [기타] ubuntu 네트워크 설정
  3. 2016.09.22 [php] php 소스설치
메일이 잘나가다 갑자기 안될때가 있다.
그럴때 메일큐를 확인해보기를 바란다.

# /var/qmail/bin/qmail-qstat
messages in queue: 7666
messages in queue but not yet preprocessed: 0


Posted by 실력키우기

[ubuntu 초기 네트워크 설정]


# vi /etc/network/interface


auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
address 192.168.xxx.xxx
netmask 255.255.255.224
gateway xxx.xxx.xxx.xxx
dns-nameserver xxx.xxx.xxx.xxx


# ifup eth1    -> 네트워크 시작



[위처럼 설정을 해줬는데 네트워크가 안 잡힐 경우]


# journalctl -xe 명령어로 디바이스명을 찾는다.


긴 글이 나오며, 그중 enp0s25 식의 디바이스명이 나올텐데 eth1 부분에 해당 디바이스명으로 바꾸어 준다.


# ifup enp0s25    -> 네트워크 시작



[디바이스명 찾는 또다른 방법]


# cat /proc/net/dev



'Linux Server > etc' 카테고리의 다른 글

[기타] ftp설치 하지 않고 ftp 사용법 (sftp)  (0) 2016.11.01
[기타] 강제 umount 하기  (0) 2016.10.11
[기타] ikvm 초기화  (0) 2016.09.19
[기타] rkhunter 다운로드 및 사용방법  (0) 2016.09.17
[기타] APM 제거방법  (0) 2016.09.17
Posted by 실력키우기

[php 다운받는곳]

https://secure.php.net/releases/


[libmcrypt 설치]


# cd /usr/local/src

# wget http://ris.smileserv.com/source/libmcrypt-2.5.8.tar.gz

# tar xvfz libmcrypt-2.5.8.tar.gz

# cd libmcrypt-2.5.8

# ./configure

# make

# make install


[mhash 설치]


# cd /usr/local/src

# wget http://ris.smileserv.com/source/mhash-0.9.9.9.tar.gz

# cd mhash-0.9.9.9.tar.gz

# ./configure

# make

# make install



[라이브러리 설치 및 링크작업]


yum install libjpeg-devel        -> 해당 라이브러리 yum설치

yum install libpng-devel        -> 해당 라이브러리 yum설치


ln-s /usr/lib64/libjpeg.so /usr/lib    ->   링크작업

ln-s /usr/lib64/libpng.so /usr/lib    ->   링크작업



[php 소스설치]


./configure \

--prefix=/usr/local/php \

--with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/apache/conf \

--with-mysql=/usr/local/mysql \

--enable-mod-charset \

--enable-safe-mode \

--enable-sigchild \

--enable-magic-quotes \

--with-libxml-dir \

--with-openssl \

--with-zlib \

--with-zlib-dir \

--with-bz2 \

--enable-calendar \

--with-curl \

--enable-dba \

--with-gdbm \

--enable-exif \

--enable-ftp \

--with-gd \

--with-jpeg-dir \

--with-png-dir \

--with-freetype-dir \

--enable-gd-native-ttf \

--with-gettext \

--with-imap \

--with-imap-ssl \

--with-kerberos \

--enable-mbstring \

--with-mhash \

--with-mcrypt \

--enable-sockets \

--with-regex=php \

--enable-sysvmsg \

--enable-sysvsem \

--enable-sysvshm \

--enable-wddx \

--enable-zend-multibyte \

--enable-zip


설치 완료후 httpd: Syntax error on line 146 of /usr/local/apache/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: unixd_config 이런식으로 에러가뜨면서 아파치가 안올라올 경우


php-5.2.17/sapi/apache2handler/php_functions.c 파일에서 아래내용 수정

unixd_config -> ap_unixd_config 로 변경하면 된다. 총 2군데 4번 변경 후에 재컴파일 해줘야함 (아파치의 버전업으로 인해서 해당 심볼의 명칭이 바뀌었다)






'Linux Server > php' 카테고리의 다른 글

[php] php버전별 컨피그값  (0) 2016.12.14
[php] ZendOptimizer 설치  (0) 2016.10.27
[php] Zend Guard Loader 설치  (0) 2016.10.27
[모듈] soap모듈 설치하기  (0) 2016.09.11
[모듈] pdo_mysql 설치 방법  (0) 2016.09.06
Posted by 실력키우기

블로그 이미지
공 부 하 는 직 장 인
실력키우기

태그목록

공지사항

Yesterday
Today
Total

최근에 달린 댓글