PHP설치시 생기는 2가지 문제 해결
1 문제 상황.
1-1. libxml-2.0 ubuntu
1-2. no package sqlite3 found ubuntu
의존성 문제 ./configure로 의존성 먼저 확인
checking for GLIB... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
로 나오지만 사실 자세히 읽어보면 - libxml2-dev의 문제이다.
1-1. libxml2-dev패키지 해결책
우분투에서 libxml2 이용하기(설치 및 헤더파일 위치 찾기)
libxml2를 이용하기 위해서는 우선 libxml2-dev 패키지 설치 를 진행해야한다.1. libxml2-dev 패키지 설치s...
blog.naver.com
1-2. no package sqlite3 found ubuntu 해결책
https://askubuntu.com/questions/208393/unable-to-locate-package-sqlite3
2. 설치 관련 중요 자료
2-1. 전반적으로 나와있음
http://faq.hostway.co.kr/Linux_WEB/8180
Linux WEB - Apache / PHP 최신버전 설치하기
# Apache / PHP 최신버전 설치 내용 입니다.간략한 conf 파일 수정이 있으니 사용자의 내용에 맞게 수정하시면 될 것 같습니다.1. Version 정보 구분 Version Apr 1.5.2 Apr-Util 1.5.4 Apache 2.4.16 PHP 5.6.13 - 설치에 앞서 설치를 진행하는 기본디렉토리
faq.hostway.co.kr
2-2.
https://www.cubrid.com/tutorial/3793963
2-1과 2-2에서 공통적으로 AddType application/x-httpd-php .php .phtm로 문제를 해결하지만, 실제로 Apache 7에서는 그것을 인식 못 한다.
https://www.youtube.com/watch?v=FkLQANf_39A
유튜브보면, 모듈을 복사하는 과정이 있다. 실제 라이브러리에 모듈이 없어서 문제인 것이었다.
2-4 PHP공식 문서이다.
https://docs.moodle.org/38/en/Compiling_PHP_from_source
2-5. 짧게 나온 한글 문서
리눅스 웹서버(httpd,apache) php 연동방법
리눅스 웹서버(httpd,apache) php 연동방법 0. Version [root@localhost ~]# httpd -v Server version: Apache/2.2.15 (Unix) Server built: Oct 19 2017 16:43:38 [root@localhost ~]# php -v PHP 5.6.29 (cli) (..
lhjin.tistory.com
2-6. 옵션 정리
[리눅스 / linux / PHP ] PHP 설치, cofigure 옵션 정리
[리눅스 / linux / PHP ] PHP 설치, configure 옵션 정리 CentOS 5 가 최소 설치되었다고 가정하고 시작했기 때문에 컴파일 환경을 구축을 먼저 해줘야 합니다. yum update -y reboot yum install gcc.x86_64 gcc-..
yehza.tistory.com
2-7 재컴파일 할 때 쓰임
https://okkks.tistory.com/1027
php 재컴파일을 이용한 openssl, mcrypt 모듈 추가, configure 옵션 추가
php 설치 후에 추가로 설치할 모듈이 있어 configure 옵션을 추가, 변경해서 php를 재 컴파일을 해야 하는 경우 추가할 모듈이 설치되어있는지 확인한다. (예> openssl, mcrypt) 기존에 설치했던 소스 디렉토리로..
okkks.tistory.com
2-8. 실제 공식 문서
https://www.php.net/manual/en/install.unix.apache2.php
PHP: Apache 2.x on Unix systems - Manual
for slackware 10.2 users with apache2, mysql5, and trying to install php5:when following the directions above, after this step:./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli kept getting this error:"Unable to find MySql header files....
www.php.net
실제로 내가 PHP설치시 컴파일 한 옵션
PHP때 준 옵션
./configure \
> --prefix=/usr/local/php \
> --with-apxs2=/usr/local/apache2/bin/apxs \
> --with-config-file-path=/usr/local/apache2/conf \
> --with-apxs2=/usr/local/apache2/bin/apxs \
> --with-mysqli \
'컴퓨터 일반 > 리눅스' 카테고리의 다른 글
vscode다루기 (0) | 2020.04.21 |
---|---|
[리눅스] PHP MYSQL연동시 (0) | 2020.04.18 |
[MySQL] MYSQL설치관련 (0) | 2020.04.18 |
[리눅스] Apache설치 관련 자료 (0) | 2020.04.18 |
리눅스 정리 (0) | 2020.04.15 |