메뉴 건너뛰기

리눅스 APM(Apache+PHP+MySQL) 및 Openssl 소스 설치하기


1. MySQL 소스설치
2. Openssl 소스설치
3. 아파치(Apache) 소스설치
4. PHP 소스설치
5. APM+OpenSSL 연동하기


1) 아파치 모듈 확인
[root@divweb3 ~]# cd /usr/local/apache/modules/ 
[root@divweb3 modules]# pwd 
/usr/local/apache/modules 
[root@divweb3 modules]# ls -la 
total 23776 
drwxr-xr-x 2 root root 4096 Mar 7 01:46 . 
drwxr-xr-x 15 root root 4096 Mar 6 22:44 .. 
-rw-r--r-- 1 root root 9170 Mar 6 21:57 httpd.exp 
-rwxr-xr-x 1 root root 23363778 Mar 7 01:46 libphp5.so 
-rwxr-xr-x 1 root root 955143 Mar 6 22:44 mod_ssl.so

 

2) httpd.conf : php, ssl 모듈 Load 확인
# LoadModule foo_module modules/mod_foo.so 
LoadModule php5_module modules/libphp5.so 
LoadModule ssl_module modules/mod_ssl.so    -- 없거나 주석처리 되어 있으면 명시해준다

# Virtual hosts 
Include conf/extra/httpd-vhosts.conf   -- Virtual host 사용 시 주석해제

# Local access to the Apache HTTP Server Manual 
#Include conf/extra/httpd-manual.conf 

# Distributed authoring and versioning (WebDAV) 
#Include conf/extra/httpd-dav.conf 

# Various default settings 
#Include conf/extra/httpd-default.conf 

# Secure (SSL/TLS) connections 
Include conf/extra/httpd-ssl.conf  -- SSL 사용 시 주석해제

 

3) extra/httpd-ssl.conf
SSLCertificateFile "/usr/local/apache/conf/ssl/'인증서파일'" 
SSLCertificateKeyFile "/usr/local/apache/conf/ssl/'개인키파일'" 
SSLCertificateChainFile "/usr/local/apache/conf/ssl/'Chain CA인증서파일'" 
SSLCACertificateFile "/usr/local/apache/conf/ssl/'ROOT CA'인증서 파일"

 

4) user 생성 후, phpinfo.php 파일 생성해서 APM, OpenSSL 연동확인
# vi phpinfo.php
<?
phpinfo();
?>

 

 

* 아파치 error_log 에 아래와 같은 에러가 발생하면, iptable 서비스를 off 함
[Fri Jul 15 01:21:22 2016] [notice] caught SIGTERM, shutting down
[Fri Jul 15 06:41:42 2016] [notice] Apache/2.2.21 (Unix) PHP/5.3.25 configured -- resuming normal operations
--> iptable, ip6table 서비스해제


* 아파치 에러로그에 아래와 같은 PHP Warning 발생(PHP 페이지는 정상적으로 열림)
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0 
해결방안
php.ini 에서 아래내용 주석처리 
;register_globals = On 
;register_long_arrays = On

 

* SSL모듈관련 에러가 발생하면 해당모듈을 찾아서 /usr/lib64에 copy 함
libssl.so.10.1.1.0: cannot open shared object file: No such file or directory.
libcrypto.so.10: cannot open shared object file: No such file or directory.
[root@CentOS-TEST ssl]# cp /usr/local/ssl/lib/libssl.so.1.0.0 /usr/lib64

번호 제목 글쓴이 날짜 조회 수
34 git, github 사용하기. vscode에서 github 연동하기(2023.02.09) file 관리자 2023.02.08 1298
33 록키리눅스(Rocky Linux) 네트워크 설정하기 - nmcli, nmtui file 관리자 2023.02.01 35627
32 CentOS 종료 대비, 록키 리눅스(Rocky Linux) 설치하기 file 관리자 2023.01.27 1360
31 플래시 설치파일 file 관리자 2021.01.13 356
30 tar 압축하면서 다른 디렉토리에 풀기 file 관리자 2020.11.14 475
29 리눅스 하드디스크 추가 관리자 2019.02.12 1431
28 [MySQL]ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 관리자 2018.12.23 1295
27 [리눅스]phpinfo() 실행 시 하얀 화면이 나타날 경우 대처방법 file 관리자 2018.12.13 3703
26 [리눅스]rsync 설정 후, crontab 스케줄 등록 관리자 2018.08.28 2740
25 [리눅스][XE]백업복구(서버이관) 시 오류-03.사이트 메뉴 편집, 사이트 디자인 설정 출력 안되는 현상 file 관리자 2018.08.27 11124
24 [리눅스][XE]백업복구(서버이관) 시 오류-02.아파치 rewrite에러 file 관리자 2018.08.27 516
23 [리눅스][XE]백업복구(서버이관) 시 오류-01.No matching DirectoryIndex (index.html) fonud 오류 file 관리자 2018.08.27 1461
22 [리눅스][XE][오류]msg_is_not_administrator file 관리자 2018.08.08 1242
21 [리눅스]CentOS에서 하드디스크 추가 관리자 2018.03.21 8843
20 [리눅스]리눅스 파일 압축 암호 설정 및 해제(ZIP) 관리자 2017.07.30 18083
19 [리눅스]CentOS 7,최신 APM 소스설치-5) PHP, gd library jpeg support file 관리자 2017.02.21 1853
18 [리눅스]CentOS 7 root password 분실 file 관리자 2016.12.27 6353
17 [리눅스]vsftpd ftp 파일전송오류(451 Failure writing to local file) 관리자 2016.12.20 4117
16 [리눅스]APM(apache+php+mysql) 다른서버로 이관하기(백업-복구하기) 관리자 2016.09.12 4673
15 [리눅스]XE(XpressEngine)설정 file 관리자 2016.07.26 684