[완료]apache, PHP 설치 관련

ystory의 이미지

안녕하세요.. 아파치 PHP설치 관련해서 질문 드립니다.

httpd-2.2.6 설치..
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --with-mpm=worker --enable-ssl --with-ssl --enable-so
옵션 주고,
make & make install 정상적으로 됐구요.
#cat >> /etc/ld.so.conf
/usr/local/apache2/lib
/usr/local/apache2/modules
#ldconfig
추가했습니다.
------------정상 완료-------------

php-5.2.5 설치

./configure --with-apxs2=/usr/local/apache2/bin/apxs -with-mysql=/usr/local/mysql/ --with-config-file-path=/usr/local/apache2/conf --with-exec-dir=/usr/local/apache2/bin --with-gd=shared --with-openssl --with-libxml-dir=/usr/local/lib --with-gd --enable-gd-native-ttf --with-zlib --with-jpeg-dir=/usr/lib --with-iconv with-jpeg --with-png-dir=/usr/local/lib
옵션주고
#make
Build complete.
되는대요,,
#make install 에서
Warning! dlname not found in /usr/local/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: cannot access `/usr/local/apache2/modules/libphp5.so': 그런 파일이나 디렉토리가 없음
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] 오류 1

분명 아파치 깔때 DSO 로 설치 했음에도
저런 오류가 뜨네요..

어떤 분 말로는 snapShot 에서 받아서 컴파일 하니 된다던데 그것두 안되구요.
php-*.tar.gz로 된 파일은 libphp5.so 를 만들지 못하는 버그가 있어서
php-*.tar.bz2 파일을 다운받아서 설치 하면 된다던데 그것도 안됩니다.
그리고 어느 사이트에서는
It seems the problem was with my port. I updated the ports and reinstalled apache. Now i got php5 installed with out any problem.
라고 하는데 port update 를 어떻게 하는것인지 -_-;;

무슨 문제 일까요. 아파치 지웠다 다른버전 깔아도 계속 그럽니다.
어제부터 끙끙 거리는데 도움 좀 주세요!!!ㅠ_ㅠ

scriptx의 이미지

httpd-2.2.6 설치..
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --with-mpm=worker --enable-ssl --with-ssl --enable-so 가 아니고

--enable-module=so 랍니다

앞으론 옵션을 잘보는 습관을 들입시다
---------------------------------------------------------
우리가 삽질하는 이유는 삽질하지 않는 법을 배우기 위해서다

---------------------------------------------------------------------------------------
for the queen of the sciences

ystory의 이미지

그런데 ./configure --help 에 보면 --enable-so DSO capability 라고 나와있네요.
그리고 --enable-module=so 라고 옵션 줘도 똑같습니다. ㅠㅠ
--------------------------------------
김 용 설 입 니 다.

--------------------------------------
으휴

scriptx의 이미지

그렇다면 설치과정에서 잘못된건 없네요 다 지우고 bz를 풀어서 해보세요
착각해서 그런것일 가능성이 큽니다.
---------------------------------------------------------
우리가 삽질하는 이유는 삽질하지 않는 법을 배우기 위해서다

---------------------------------------------------------------------------------------
for the queen of the sciences

ystory의 이미지

다른 버전 찾아서 해보려구 해요..
답변 감사합니다.
--------------------------------------
김 용 설 입 니 다.

--------------------------------------
으휴

adaylily의 이미지

옵션 때문에 필요한거 재설치하고 해보니까 안되더라구요..
하지만, 기본 옵션으로는 아주 잘된다는 가정하에 말씀드립니다.
일단 찾아본 것은

make clean
make
make install

이 과정을 한번 다시 해보시죠...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.