Gooday Note Scrap Source Android login
 
작성일 : 15-10-23 14:02
[RaspberryPi] Raspberry pi APM(apache, php, mysql) 설치
 글쓴이 : 최고관… (123.♡.195.24)
조회 : 1,199  

1. APACHE

$ sudo apt-get install apache2

 

2. MYSQL

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


3. PHP

$ sudo apt-get install php5 php-common libapache2-mod-php5 php5-mysql


-- vhost 설정 --

$ sudo vi /etc/apache2/sites-enabled/000-default

---------------------------------------------------

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /home/pi/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/pi/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

-----------------------------------------------------------------

$ sudo /etc/init.d/apache2 restart


최고관… 15-10-23 14:03
 123.♡.195.24  
mysql 외부접속 허용
바인딩 어드레스 비활성화

$ sudo nano /etc/mysql/my.cnf
bind-address 127.0.0.1 삭제 또는 주석(#)
 
 

Total 7
번호 제   목 글쓴이 날짜 조회
7 [RaspberryPi] 계정 관리(추가, 수정, 삭제) (1) 최고관… 05-19 5342
6 [RaspberryPi] 외장하드 마운트(ntfs) 기리 10-23 1242
5 [RaspberryPi] Raspberry pi FTP 설치 (1) 최고관… 10-23 912
4 [RaspberryPi] Raspberry pi APM(apache, php, mysql) 설치 (1) 최고관… 10-23 1200
3 [RaspberryPi] Raspberry pi wlan 설정 최고관… 10-23 886
2 [RaspberryPi] Raspberry Pi 설정 - Raspbian 최고관… 10-23 913
1 [RaspberryPi] Raspberry Pi 설치 - Raspbian 최고관… 10-23 1228