UbuntuLinuxBASE와 이것을 운영하는 데 필요한 APM을 설치하고 설정하는 내용입니다.

MySQL - Apache2 - PHP - base installing in Ubuntu

1. MySQL install
apt-get install mysql-common-4.1
apt-get install mysql-server-4.1
(required to ubuntu CD)


2. apache2 install
apt-get install apache2-common

3. PHP install
apt-get install php4
apt-get install php4-common
apt-get install php4-universe-common
apt-get install php4-dev
apt-get install php4-cgi
apt-get install php4-mysql

4. MySQL setup
(MySQL에 접속)
mysql -u root -p****
create database base;
create database basedynamic;
show databases; (db생성 확인)
GRANT ALL ON base.* TO user_name@localhost IDENTIFIED BY 'password';
GRANT ALL ON basedynamic.* TO user_name@localhost;
exit

5. apache2 configuration
vi /etc/apache2/apache2.conf
(file에 추가할 사항)
(Module이 있는 부분에)
LoadModule php4_module /usr/lib/apache2/modules/libphp4.so
(AddHanlder가 있는 부분에)
AddHandler php-script .php .php4 .phtml
AddHandler php-source .phps

vi /etc/apache2/httpd.conf
(이 내용을 추가)
User user_name
Group user_name

/etc/init.d/apache2 restart

6. PHP configuration

vi /etc/php4/apache2/php.ini
(이 내용을 추가)
extension_dir = "./" --> extension_dir = " "로 변경
;extension= --> extension=/usr/lib/php4/20020429/mysql.so로 변경.

vi /etc/php4/cli/php.ini
(내용 추가)
extension_dir = "./" --> extension_dir = " "로 변경
;extension= "" --> extension=/usr/lib/php4/20020429/mysql.so로 변경.

7. BASE install

cd /usr/local
tar zxpf base-1.2.16.tar.gz
cd base-1.2.16
./configure --prefix=/usr/local/base \
--with-base-user=user_name --with-php=/usr/bin/php4
make ; make install

8. BASE configuration

vi /usr/local/base/config.inc.php

$config["dbHost"]                               = "localhost";
$config["dbUser"]                               = "terra";
$config["dbPassword"]           = "password";
$config["dbDatabase"]           = "base";
$config["dbDynamic"]                    = "basedynamic";

$config["mime.types"]           = "/etc/mime.types";

9. ETC
(mysql에 있는 base에 table 생성)
cd /usr/local/base/sql
mysql -uuser_name -ppassword base < base_mysql.sql
mysql -uuser_name -ppassword base < base_mysql_data.sql

(base밑에 있는 www를 심볼릭링크로 /var/www에 연결)
cd /var/www
ln -s /usr/local/base/www base

BASE Server operation : /usr/local/base/bin/base.server start|stop|restart
web URL : http://localhost/base


궁금한 사항문의 하기

BASE/Install (last edited 2012-08-07 11:07:12 by 182)

web biohackers.net