Develop
apache 서버
작은이야기
2011. 9. 29. 22:45
index.html 띄우기.
yum install httpd
yum install httpd-tools
yum --help
yum install php
yum install php-mbstring
yum install php-mysql
yum install php-gd
yum install mysql
yum install mysql-serer
yum install mysql-server
vi /etc/httpd/conf/httpd.conf
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName 192.168.0.10:80
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
$$ 설명 $$
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName 192.168.0.10:80
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
$$ 설명 $$
ServerName => ip 혹은 domain
DocumentRoot => index.html 등이 담기는 루트 폴더
DocumentRoot => index.html 등이 담기는 루트 폴더
service httpd restart
service mysqld restart
setup -> Firewall configuration -> Customize 에서
www 외 필요한것들 체크
http://samples.tistory.com/79
http://blog.naver.com/micleneo?Redirect=Log&logNo=100087225311
http://urihouse.net/40129170768