APM 설치 - Compile

2009/04/17 21:15
수동으로 Compile 해서 Apache2+PHP5+MySQL 설치방법

http://www.bin-co.com/blog/2008/09/compile-install-lamp-linux-apache-mysql-php-server-from-source/

아니면

http://inmte.com/blog//blog/compile-and-install-a-lamplinuxapachemysqlphp-server-from-source/

참고 해보세요... 아주 쉽게 설명 있습니다..
크리에이티브 커먼즈 라이선스
Creative Commons License

'[-How-To-] > [-Linux-]' 카테고리의 다른 글

CentOS 5에 Yum이 설치 되어있지 않을때...  (0) 2009/05/16
Terminal 명령어  (0) 2009/04/17
APM 설치 - Compile  (0) 2009/04/17
APM 설치 - yum 이용  (0) 2009/04/17
bashrc 설정  (0) 2009/04/11
SCIM 한영키 설정하기  (0) 2009/04/01

APM 설치 - yum 이용

2009/04/17 20:47
CentOS 에서 LAMP 설치..

Yum 을 사용해 설치시..

Apache2+PHP 설치
sudo yum groupinstall "Web Server"

아파치 시작
sudo /etc/init.d/httpd start

에러 메시지
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Apache Config 수정
sudo nano /etc/httpd/conf/httpd.conf

Line 265 에
#ServerName www.example.com:80

호스트이름으로 바꿔야한다... (그리구 #을 지우고..)
ServerName demo

그리구 아파치 다시 시작
sudo /etc/init.d/httpd restart

서버 제시작할시 Apache를 자동시작하게 추가
sudo /sbin/chkconfig httpd on

확인 방법
sudo /sbin/chkconfig --list httpd

예를 들자면
team1ab @ centos ~ $ sudo /sbin/chkconfig httpd on
team1ab @ centos ~ $ sudo /sbin/chkconfig --list httpd
httpd              0:off    1:off    2:on    3:on    4:on    5:on    6:off


MySQL 설치

sudo yum groupinstall "MySQL Database"

MySQL 시작
sudo /etc/init.d/mysqld start

시작하면. (에러 메시지)
team1ab @ centos ~ $ sudo /etc/init.d/mysqld start
Initializing MySQL database:  Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h centos password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
                                                                     [  OK  ]
Starting MySQL:                                             [  OK  ]

MySQL Root 비번 설정
sudo /usr/bin/mysqladmin -u root password 'new-password'

Note. "new-password" 에 본인이 비번 설정해준것으로 로그인.

예를 들면
sudo /usr/bin/mysqladmin -u root password 'abcdef'

MySQL 에 접속해보자
mysql -u root -p

예를 들면.
team1ab @ centos ~ $ mysql -u root -p
Enter password:

하면 비밀번호를 입력해주고 Enter, 해주면 저 메시지가 나온다.. 그럼 설치가 된것이다...
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.45 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

종료할때는 >> \q << 해주면된다...

MySQL를 서버 재시작시 자동으로 실행하구 싶으면.
sudo /sbin/chkconfig mysqld on

해주고 확인시.
sudo /sbin/chkconfig --list mysqld

예를 들면.
team1ab @ centos ~ $ sudo /sbin/chkconfig mysqld on
team1ab @ centos ~ $ sudo /sbin/chkconfig --list mysqld
mysqld             0:off    1:off    2:on    3:on    4:on    5:on    6:off

그럼 설치 끝이다...
이제 잘사용해보세요...

그냥... 쉽게 기본만 설치할시..
Apache2+PHP5+MySQL5
sudo yum install httpd mod_ssl php-common php-gd php-mcrypt php-pear php-pecl-memcache php-mhash php-mysql php-xml mysql-server mysql mysql-devel

설정은 똑같이 위에 것들을 따라 하시면 됩니다.
크리에이티브 커먼즈 라이선스
Creative Commons License

'[-How-To-] > [-Linux-]' 카테고리의 다른 글

Terminal 명령어  (0) 2009/04/17
APM 설치 - Compile  (0) 2009/04/17
APM 설치 - yum 이용  (0) 2009/04/17
bashrc 설정  (0) 2009/04/11
SCIM 한영키 설정하기  (0) 2009/04/01
CentOS  (0) 2009/03/23

LAMP 설치 및 설정법

2009/03/23 14:19
L - Linux
A - Apache/아파치
M - mysql/디비
P - php+python+perl

Apache/아파치 설치및 설정법

터미널에서

$ sudo aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
아니면
$ sudo apt-get install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert

해준다.... (둘중에 편한걸로 하면된다...)

그후에...
$ sudo nano /etc/apache2/apache2.conf
실행시켜준다...

그리구... apache2.conf 마지막에.
ServerName 호스트이름
을 추가 해주고.. 저장후 빠저나온다..

$ sudo apache2ctl graceful << 를 실행시켜준다..

저방법으로 리스타트를 해주면 open connection을 죽이지 않는다...

그후에.. 서버 아이피로 접속해보면...
이렇게 뜰것이다..

M - Mysql (DB)

$ sudo aptitude install mysql-server mysql-client libmysqlclient15-dev
그럼...
이렇게 뜬다... 비밀번호를 설정해주고...있으면..

저게 뜬다.. 그럼 다시 비밀번호를 처준다...
그럼 설치 끝이다....

P - Php

$ sudo aptitude search php5-
저 명령어를 해주면 php에 대한 모든 설치할수 있는 파일이 검색된다...
(그 리스트에서 본인이 골라서 설치해도 되지만.. 전 다해보겠습니다...)

$ sudo aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache php5-mhash php5-mysql php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl
그럼 php가 설치 된다...

그게 설치 다되면...
$ sudo /etc/init.d/apache2 reload
크리에이티브 커먼즈 라이선스
Creative Commons License

'[-How-To-] > [-Linux-]' 카테고리의 다른 글

CentOS  (0) 2009/03/23
아파치 Virtualhost 설정법  (0) 2009/03/23
LAMP 설치 및 설정법  (0) 2009/03/23
LLMP 설치 및 설정법  (0) 2009/03/13
irssi 에서 한글 깨질때.  (0) 2009/01/26
Ubuntu 에서 프로그램 다운로드 할때...  (0) 2009/01/26