1) wordpress 설치시 / directory 는 htdocs context 로 설치하면, 도메인으로 접속시 바로 워드 프레스로 접속된다.
2) 설치후 chown -R nobody wordpress 해줘야 플러그인 설치가 된다.
3) wordpress 폴더 통째로 복사해서 쓸 수 있는 경우. htdocs-wpaaa / wordpress 를 htdocs-wpbbb / wordpress 로 복사해서 쓸 수는 있다. 하지만, htdocs-wpaaa / wordpress 를 htdocs-wpbbb 로 복사하면 사용할 수 없다.
http://httpd.apache.org/download.cgi 접속 Stable Release - Lasted Version 아래의 버전 확인(예: 2.4.9) 후 클릭 Source: 오른쪽의 bz2 파일 링크(예: httpd-2.4.9.tar.bz2) 클릭하여 다운로드
[root@web01 ~]#cd /usr/local/src/httpd-2.4.37 [root@web01 ~]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --with-mpm=prefork [root@web01 ~]# make [root@web01 ~]# make install
ㅁ 아파치 설치 디렉토리 확인
[root@web00 ~]# cd /usr/local/apache2/
[root@web00 apache2]# ll
total 52
drwxr-xr-x. 2 root root 4096 Dec 1 23:45 bin
drwxr-xr-x. 2 root root 4096 Dec 1 23:46 build
drwxr-xr-x. 2 root root 78 Dec 1 23:45 cgi-bin
drwxr-xr-x. 4 root root 84 Dec 1 23:56 conf
drwxr-xr-x. 3 root root 4096 Dec 1 23:45 error
drwxr-sr-x. 2 root root 24 Oct 18 23:33 htdocs
drwxr-xr-x. 3 root root 8192 Dec 1 23:45 icons
drwxr-xr-x. 2 root root 8192 Dec 1 23:46 include
drwxr-xr-x. 3 root root 281 Dec 1 23:45 lib
drwxr-xr-x. 2 root root 41 Dec 2 00:08 logs
drwxr-xr-x. 4 root root 30 Dec 1 23:46 man
drwxr-sr-x. 14 root root 8192 Oct 18 23:34 manual
drwxr-xr-x. 2 root root 4096 Dec 1 23:45 modules
[root@web00 apache2]# ll conf/
total 100
drwxr-xr-x. 2 root root 4096 Dec 1 23:45 extra
-rw-r--r--. 1 root root 18313 Dec 1 23:56 httpd.conf
-rw-r--r--. 1 root root 13077 Dec 1 23:45 magic
-rw-r--r--. 1 root root 60847 Dec 1 23:45 mime.types
drwxr-xr-x. 3 root root 37 Dec 1 23:45 original
[root@web00 apache2]# ll conf/extra/
total 68
-rw-r--r--. 1 root root 2881 Dec 1 23:45 httpd-autoindex.conf
-rw-r--r--. 1 root root 1817 Dec 1 23:45 httpd-dav.conf
-rw-r--r--. 1 root root 2942 Dec 1 23:45 httpd-default.conf
-rw-r--r--. 1 root root 1119 Dec 1 23:45 httpd-info.conf
-rw-r--r--. 1 root root 5078 Dec 1 23:45 httpd-languages.conf
-rw-r--r--. 1 root root 1395 Dec 1 23:45 httpd-manual.conf
-rw-r--r--. 1 root root 4444 Dec 1 23:45 httpd-mpm.conf
-rw-r--r--. 1 root root 2222 Dec 1 23:45 httpd-multilang-errordoc.conf
-rw-r--r--. 1 root root 13371 Dec 1 23:45 httpd-ssl.conf
-rw-r--r--. 1 root root 694 Dec 1 23:45 httpd-userdir.conf
-rw-r--r--. 1 root root 1467 Dec 1 23:45 httpd-vhosts.conf
-rw-r--r--. 1 root root 3161 Dec 1 23:45 proxy-html.conf
※ 오류 해결
→ --prefix=/usr/local/apache2에 있는대로 /usr/local/apache2가 아파치 홈 폴더가 된다.[1] → configure: error: Cannot use an external APR-util with the bundled APR 오류 발생하면[2]
[root@mysql apache]# tar -xzf apr-1.5.0.tar.gz [root@mysql apache]# tar -xzf apr-util-1.5.3.tar.gz [root@mysql apache]# tar -xzf pcre-8.31.tar.gz [root@mysql apache]# tar -xzf httpd-2.4.6.tar.gz
##apr 설치 cd apr-1.5.0 ./configure --prefix=/usr/local/apr
make && make install
##오류시 조치 config.status: executing libtool commands rm: cannot remove `libtoolT': No such file or directory config.status: executing default commands [root@mysql apr-1.5.0]# cp -arp libtool libtoolT
##apr-util 설치
cd apr-util-1.5.3 ./configure --with-apr=/usr/local/apr --prefix=/usr/local/apr-util make && make install
## pcre 설치
[root@mysql ~]# yum install pcre-config
cd pcre-8.31
./configure --prefix=/usr/local/pcre make && make install