WWWorkin/Webkit2014. 3. 20. 14:31
DIGITory/Servers2013. 12. 10. 14:42

from http://blog.naver.com/yong2603/10174798457


웹서버를 구축할 때 가장 많이 쓰는 조합이 Apache, Php, Mysql이다. 이것의 앞글자를 따서 APM이라고 부른다.

리눅스에서 APM을 구축하는 것은 명령어만 몇줄 치면 끝나기 떄문에 윈도우즈에서 구축하는 것에 비해 훨씬 간단하다.

이 글은 우분투 12.10기반에서 Apache2, Php5, Mysql5를 설치하는 방법을 제시한다.

 

* 설치하기

 

1. Apache2

1
sudo apt-get install apache2

 

2. Mysql5

Mysql server와 서버에 접속하기 위한 client를 설치한다.

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

 

설치 과정에서 mysql 비밀번호 설정창이 나타난다.

이때 설정한 비밀번호는 MySQL root 계정의 비밀번호이니, 꼭 기억하도록 한다.

 

3. PHP5

1
sudo apt-get install php5 php5-common

 

4. Apache와 PHP 연동

1
sudo apt-get install libapache2-mod-php5

 

5. PHP와 Mysql 연동

1
sudo apt-get install php5-mysql

 

 

* 구축 테스트

 

6. apache와 mysql을 재시작 해준다.

1
2
3
sudo /etc/init.d/apache2 restart
 
sudo /etc/init.d/mysql restart

 

7. apache 서버와 mysql 서버가 정상적으로 작동하고 있는지 확인한다.

1
2
3
sudo netstat -atp | grep apache2
 
sudo netstat -atp | grep mysqld

 

8. php와 apache의 연동을 확인한다.

위의 가이드대로 따라했다면 웹호스트의 루트 디렉토리는 /var/www 가 된다.

/var/www 에 phpinfo.php 를 만들고, 아래와 같은 내용을 적은 후, 저장해준다.

1
sudo gedit /var/www/phpinfo.php
1
2
3
4
5
<?
 
phpinfo();
 
?>

 

9. 웹브라우저에서 웹서버의 동작을 확인해본다.

웹브라우저를 켠 후,

http://localhost/phpinfo.php

에 접속해본다. 아래와 같은 화면이 뜬다면 웹서버가 정상적으로 구축된 것이다.

 

10. 기타 개인 설정

기본 설정을 개인적으로 바꾸고 싶다면 다음 파일들을 수정하면 된다.

apache : /etc/apache2/apache2.conf

mysql : /etc/mysql/my.cnf


'DIGITory > Servers' 카테고리의 다른 글

FTP download, upload 시 timeout 현상  (1) 2014.03.27
HP Micro Server N36L - setting Raid  (0) 2013.08.02
using SSD 2.5" on HP Micro Server N36L  (0) 2013.08.02
Posted by Joe.C
Events & Ads2013. 11. 18. 00:10
Posted by Joe.C
DIGITory/Android2013. 11. 11. 17:44

The status of devices always are 'offline' in adb like below

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

List of devices attached 

XXXXXXXXXXXXXX offline

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

There are something to try to fix it.

1. reboot devices and PC.

2. do.
adb kill-server
adb start-server

3. If your adb's version is 1.0.29, update it. over 1.0.31


Posted by Joe.C
DIGITory/.......2013. 11. 1. 11:04


Red



Green



Blue



White



Black



'DIGITory > .......' 카테고리의 다른 글

window용 파일 검색  (0) 2014.10.31
tumblr에서 이미지 다운로드  (0) 2014.10.28
starting development with git  (0) 2014.09.01
code highlighter on HTML  (0) 2013.10.16
git clone : error: server certificate verification failed.  (0) 2013.08.23
Posted by Joe.C
DIGITory/.......2013. 10. 16. 19:25

"소스코드 하이라이팅 자바스크립트" from 'http://cafe.naver.com/cafec/186453'


H.html


Posted by Joe.C
DIGITory/Robocode2013. 10. 10. 01:05


Robocode home : http://robocode.sourceforge.net/


need.... Java run-time, eclipse, robocode

can using editor in robocode. but eclipse is.... eclipse.


http://valley.egloos.com/viewer/?url=http://folog.egloos.com/1635239

http://lunakarpin.tistory.com/5



Posted by Joe.C
DIGITory/.......2013. 8. 23. 11:28

I got

"error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/mrobinson/webkit.git/info/refs"


I just want to make 'git clone' with https for private git in github.

.

.

.

.

then I did it....just SSL_NO_VERIFY..........

export GIT_SSL_NO_VERIFY=1


'DIGITory > .......' 카테고리의 다른 글

window용 파일 검색  (0) 2014.10.31
tumblr에서 이미지 다운로드  (0) 2014.10.28
starting development with git  (0) 2014.09.01
1920 x 1080 image ( Red, Green, Blue, White, Black )  (0) 2013.11.01
code highlighter on HTML  (0) 2013.10.16
Posted by Joe.C
DIGITory/MS Windows2013. 8. 18. 03:23

http://blog.naver.com/hahaj1/20160173652 : Korean information....


http://www.macrium.com/reflectfree.aspx : Download the free version of Macrium Reflect.


I copied Win7 on Micro Server to new SSD drive. (It's too slow to work with HDD)

Macrium Reflect is so simple and nice.

just remeber ....

1. clone reserved system partition for Win7

2. no drive letter for system partition

that's it.

'DIGITory > MS Windows' 카테고리의 다른 글

Window 10 - Edge Browser에서 굴림 font 맑은고딕으로 변경  (0) 2016.03.26
Remove Internet explorer  (0) 2014.07.25
한영 전환 : shift + space  (0) 2014.06.12
Window Vista RC2  (0) 2006.10.17
window tip - <anti-aliasing>  (0) 2006.08.07
Posted by Joe.C
DIGITory/Servers2013. 8. 2. 00:07


I tried to set RAID 1 for mirroring.....

set it on CMOS....


but it didn't work... I can't format the drive.... 

when I tried to do format the drive....it shows up Blur Screen... or error messages...


so I used RAIDXpert...

(http://support.amd.com/us/gpudownload/windows/Pages/raid_windows.aspx#2)


and... now...... it's working!!!

'DIGITory > Servers' 카테고리의 다른 글

FTP download, upload 시 timeout 현상  (1) 2014.03.27
Ubuntu에 Web Server 설치  (0) 2013.12.10
using SSD 2.5" on HP Micro Server N36L  (0) 2013.08.02
Posted by Joe.C