본문 바로가기
매일코딩/리눅스-우분투

Ubuntu 14.04 기준 APM (Apache/PHP/MySQL) 설치

by 인생여희 2017. 11. 17.
반응형


 

– APM 설치

 

1. Apache2 설치

$ sudo apt-get install mysql-server mysql-client

 

2. MySql server / client 설치

$ sudo apt-get install mysql-server mysql-client

(MySQL root 패스워드 설정 필요)

 

3. PHP 설치

$ sudo apt-get install php5 php5-common

 

4. Apache / PHP 연동

$ sudo apt-get install libapache2-mod-php5

 

5. PHP / MySQL 연동

$ sudo apt-get install php5-mysql

 
 

– APM 동작확인

 

1. Apache / MySQL 재시작

$ sudo service apache2 restart

$ sudo service mysql restart

 

2. Apache인인 / PHP 연동 확인

$ sudo vi /var/www/html/phpinfo.php

<?php
phpinfo();
?>

http://localhost/phpinfo.php 접속

 

PHP Version 5.5.9-1ubuntu4.9

 

System
Build Date
Server APIApache 2.0 Handler
Virtual Directory Supportdisabled
Configuration File (php.ini) Path/etc/php5/apache2
Loaded Configuration File/etc/php5/apache2/php.ini
Scan this dir for additional .ini files/etc/php5/apache2/conf.d

….

 
 

3. 이후 설정 변경경로

Apache: /etc/apache2/apache2.conf

MySQL: /etc/mysql/my.cnf

PHP: /etc/php5/apache2/php.ini



출처 https://swbae98.wordpress.com/2015/05/16/ubuntu-14-04-apm-apachephpmysql-%EC%84%A4%EC%B9%98/

반응형

댓글