Monday, August 27, 2012

Ubuntu (Ubuntu) APM (Apache + PHP + Mysql) Construction




Posts have been written about the installation of the Ubuntu-based APM.
(Apt-get way to proceed with the installation.) Please note that the benefits

Zero. root privileges
since have root privileges by hand will need to put a sudo to sudo-i << command.

1 Installing the APM and other library
 (1) Apache2 installation
 apt-get install apache2

 (2) php5
 apt-get install php5

 (3) mysql
 apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
 Password (to enter the password in the middle comes out the root account and the root account separately DB)

 (4) GD library installed (XE installation required)
 apt-get install php5-gd

 (5) phpmyadmin
 apt-get install phpmyadmin
 DB root password (in the middle asks pop up just proceed by default.)

2 Setting
 (1) phpmyadmin interlocking and ServerName
 vi / etc/apache2/apache2.conf
 On the bottom line
 Include / etc / phpmyadmin / apache.conf
 ServerName localhost
 After entering the store

 (2) language set (UTF-8) set
  (2-1) PHP
  vi / etc/php5/apache2/php.ini
  : default_charset = "iso-8859-1" default_charset = "utf-8" to change

  (2-2) mysql
  vi / etc / mysql / my.cnf
  Below add [mysqld]
  default-character-set = utf8
  default-collation = utf8_general_ci
  init_connect = set collation_connection = utf8_general_ci
  init_connect = set names utf8
  character-set-server = utf8
  collation-server = utf8_general_ci
  character-set-client-handshake = TRUE

 (3) Apache, Mysql restart
 service apache2 restart
 service mysql restart

This progress has completed the installation of APM and other essential settings.
Pinoy (EUC-KR) optional on the UTF-8 language set to set, if you do not enter or change the utf-8 to EUC-KR.

Localhost (127.0.0.1, my IP, domain, etc.) to final confirmation by typing in the address bar and verify that the output It works! Paste / phpmyadmin phpmyadmin works properly Make sure that you

No comments:

Post a Comment