Created
May 6, 2013 08:20
-
-
Save ChangJoo-Park/5523972 to your computer and use it in GitHub Desktop.
ubuntu wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APACHE 서버의 설치 | |
먼저 아파치 서버를 설치합니다. | |
1 | |
$ apt-get install apache2 | |
위의 명령을 실행했는데 설치가 안되면 다음 명령을 실행하고 나서 위의 명령을 다시 실행합니다. | |
1 | |
apt-get update | |
이렇게 해서 아파치 서버를 설치하고 나면 MySQL 연동 모듈을 설치합니다. | |
1 | |
apt-get install libapache2-mod-auth-mysql | |
이제 mod_rewrite를 활성화합니다. | |
1 | |
sudo a2enmod rewrite | |
활성화가 완료되면 /etc/apache2/sites-available/default 파일을 수정합니다. | |
1 | |
2 | |
3 | |
4 | |
DocumentRoot /var/www/ | |
Options Indexs FollowSymLinks MultiViews | |
AllowOverride None //--- None을 All로 변경 한다. | |
수정하였으면 아파치를 재실행 합니다. | |
1 | |
sudo /etc/init.d/apache2 restart | |
다음은 설치된 아파치와 관련하여 작업에 도움이 되는 내용입니다. | |
설치 폴더 : /usr/share/apache2/ | |
환경 폴더 : /etc/apache2/, /etc/default/apache2 | |
로그 폴더 : /var/log/apache2/ | |
Document Root : /var/www/ | |
기동 종료 : /etc/init.d/apache2 start, stop, reload, restart, status | |
서비스 확인 : ps -ef | grep apache | |
/cgi-bin/ : /usr/lib/cgi-bin/ | |
Lock 폴더 : /var/lock/apache2 | |
MySQL 설치 | |
다음 명령으로 우분투에 MySQL 서버를 설치합니다. | |
1 | |
sudo apt-get install mysql-server | |
설치 후 재실행 합니다. | |
1 | |
sudo /etc/init.d/mysql restart | |
다음은 설치 후 관련된 정보입니다. | |
설치 폴더 : /usr/share/mysql/ | |
환경 폴더 : /etc/mysql/ | |
vi /etc/mysql/my.cnf | |
데이터 폴더 : /var/lib/mysql | |
작업 폴더 : /var/lib/mysql | |
기동 종료 : /etc/init.d/mysql start, stop, restart, reload, status | |
서비스 확인 : ps -ef | grep mysql | |
로그 정보 : /var/log/mysql/mysql-slow.log | |
PHP 설치 | |
다음 명령으로 php5를 설치합니다. | |
1 | |
sudo apt-get install php5 | |
설치가 진행되면 apache 연동 모듈인 libapache2-mod-php5는 함께 설치됩니다. | |
설치가 되면 MySQL 연동 모듈을 설치합니다. | |
1 | |
sudo apt-get install php5-mysql | |
다음은 설치 후 관련 정보입니다. | |
설치 폴더 : /usr/share/php5/ | |
환경 폴더 : /etc/php5/ | |
설정 파일: vi /etc/php5/apache2/php.ini | |
PhpMyAdmin 설치 | |
phpmyadmin은 MySQL DB를 웹에서 관리할 수 있도록 도와 줍니다. | |
다음 명령으로 설치합니다. | |
1 | |
sudo apt-get install phpmyadmin | |
다음은 설치 후 관련 정보입니다. | |
설치 폴더 : /usr/share/phpmyadmin/ | |
환경 폴더 : /etc/phpmyadmin/ | |
작업 폴더 : /var/lib/phpmyadmin/ | |
서비스 폴더 : /var/www/phpmyadmin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment