2012-10-14

Linux] apache_php_openssl설치



httpd-2.0.59.tar.gz    php-5.1.6.tar.gz 파일 이용.

apache설치
./configure --prefix=/usrl/local/apache  --enable-module=so --enable-so


./configure --prefix=/usr/local/apache2 --enable-suexec \
                          --enable-so --with-suexec-caller=bin \
                          --enable-ssl --with-ssl=/usr/local/ssl --enable-cache \
                          --enable-ext-filter --with-z=/usr/include --enable-dav \
                          --with-dbm=db4 --with-berkeley-db=/usr/local/BerkeleyDB.4.2

make && make install


php설치
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql  --with-gd --disable-debug  --enable-track-vars  --with-jpeg-dir=/usr/local --with-zlib-dir=/usr/local --with-libxml-dir=/usr/local/libxml2



출처 : Tong - journae님의 Windows 통

make && make install

httpd.conf파일에서
LoadModule php5_module      module/libphp5.so
파일 존재확인!

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
추가!

cp php.ini-dist /usr/local/lib/php.ini  설정파일 카피!

apache실행
/usr/local/apache/bin/apachectl start
하면

Syntax error on line 232 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: php_escape_html_entities
라는 에러가 나오네요...  nu,m

제가 리눅스 엄청 초보라 어떻게 대처해야 할지 모르겠어요

고수님들 도와주세요 ~~~~




 
   바람난일용이   07-05-17 17:01  
혹시 아파치 2개 설치 하셧는지요.. ?
컴파일시에는 --with-apxs2=/usr/local/apache2/bin/apxs  아파치2라는 디렉토리에 하셨는데
실행은 Syntax error on line 232 of /usr/local/apache/conf/httpd.conf:
아니면 디렉토리 이름을 바꾸신건지.... 설치 하고 실행하고 경로가 다르면.. 해당패스가
달라져 에러가 날수잇읍니다...
이부분 체크해 보심이...

혹시 아파치 2개 설치 하셧는지요.. ?
컴파일시에는 --with-apxs2=/usr/local/apache2/bin/apxs  아파치2라는 디렉토리에 하셨는데
실행은 Syntax error on line 232 of /usr/local/apache/conf/httpd.conf:
아니면 디렉토리 이름을 바꾸신건지.... 설치 하고 실행하고 경로가 다르면.. 해당패스가
달라져 에러가 날수잇읍니다...
이부분 체크해 보심이...
 
   서비효과   07-05-17 17:04  
앗.. 1mm의 오타가 있었네요.. 감사합니다 ^^








Don't forget to run 'make test'.

Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/src/php-5.2.3/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in /usr/local/apache2/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/php/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/php/lib/php/build/
Installing header files:          /usr/local/php/include/php/
Installing helper programs:       /usr/local/php/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/php/lib/php/
[PEAR] Console_Getopt - installed: 1.2.2
[PEAR] Archive_Tar    - installed: 1.3.2
[PEAR] Structures_Graph- installed: 1.0.2
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR           - installed: 1.5.4
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/php/include/php/ext/pdo/

댓글 없음:

댓글 쓰기