-
Notifications
You must be signed in to change notification settings - Fork 6
Setting up CentOS 6 Web server
sergeylukin edited this page Apr 20, 2012
·
35 revisions
- useradd www
- useradd -G www developername
- yum groupinstall "Development Tools"
- yum install man wget vim readline-devel
- yum install httpd
- chkconfig --levels 235 httpd on
- chown www:www /var/www -R
- Set ServerName to 127.0.0.1:80 and NameVirtualHost to *:80 in /etc/httpd/conf/httpd.conf
- Add Virtual hosts files in /etc/httpd/conf.d/
Install YAML (required):
- Download & extract latest version from http://pyyaml.org/download/libyaml/
- change directory to yaml's source
- /configure --prefix=/usr/local
- make && make install
Install RUBY:
- cd /usr/local/src
- download & extract latest version from http://www.ruby-lang.org/en/downloads/
- change directory to ruby's source
- ./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib
- make && make install
- cd /usr/local/src
- download & extract latest version from http://rubygems.org/pages/download
- ruby setup.rb
- gem install jekyll
-
as described here
-
Disable SELinux: set SELINUX=disabled in /etc/selinux/config (reboot to apply changes or run /usr/sbin/setenforce 0)