<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/centos53-setup-Apache2-PHP-Ruby-Python/</link>
<title><![CDATA[Centos 5.3服务器完美配置之安装Apache2以及PHP，Ruby，Python]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[电脑技术]]></category>
<pubDate>Mon, 20 Sep 2010 17:33:59 +0000</pubDate> 
<guid>https://www.heckjj.com/centos53-setup-Apache2-PHP-Ruby-Python/</guid> 
<description>
<![CDATA[ 
	<span style="font-family: 微软雅黑;"><span style="font-size: 14px;"><strong><span style="color: #4169E1;">CentOS下Apache2以及PHP，Ruby，Python的安装</span></strong></span><br/>现在我们开始安装apache和php：<br/>yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel<br/><br/>编辑/etc/httpd/conf/httpd.conf：<br/>vi /etc/httpd/conf/httpd.conf<br/><br/>然后改变DirectoryIndex：<br/>[...]DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl[...]将apache注册为启动的服务：chkconfig --levels 235 httpd on<br/><br/>启动apache：<br/>/etc/init.d/httpd start<br/><br/><span style="font-size: 14px;"><strong><span style="color: #4169E1;">安装mod_ruby</span></strong></span><br/>CentOS 5.3上没有mod_ruby，所以如果你要使用ruby必须自己编译安装mod_ruby。首先需要安装一些软件包：yum install httpd-devel ruby ruby-devel</span><span style="font-family: 微软雅黑;"><br/><br/>然后下载安装mod_ruby：<br/>cd /tmp<br/>wget http://www.modruby.net/archive/mod_ruby-1.3.0.tar.gz<br/>tar zxvf mod_ruby-1.3.0.tar.gz<br/>cd mod_ruby-1.3.0/<br/>./configure.rb --with-apr-includes=/usr/include/apr-1<br/>make<br/>make install<br/><br/>最后把mod_ruby加入apache配置中，在/etc/httpd/conf.d中新建ruby.conf：<br/><br/>vi /etc/httpd/conf.d/ruby.conf<br/><br/>加入这一行以后保存：<br/><br/>LoadModule ruby_module modules/mod_ruby.so重启Apache:/etc/init.d/httpd restart<br/><br/><span style="font-size: 14px;"><strong><span style="color: #4169E1;">安装mod_python</span></strong></span><br/>用yum安装mod_python：<br/><br/>yum install mod_python<br/><br/>重启apache：<br/><br/>/etc/init.d/httpd restart<br/><br/><span style="font-size: 14px;"><strong><span style="color: #4169E1;">安装FTP服务器</span></strong></span><br/>可以安装vsftpd用作ftp服务器：<br/><br/>yum install vsftpd<br/><br/>启动ftp服务器：<br/><br/>service vsftpd start<br/><br/>之后如果要验证ftp服务器是否在运行用ftp命令:<br/><br/>ftp localhost<br/><br/>按照提示输入anonymous和一个email作为用户名即可登陆</span><br/>Tags - <a href="https://www.heckjj.com/tags/%25E5%25AE%258C%25E7%25BE%258E%25E9%2585%258D%25E7%25BD%25AE/" rel="tag">完美配置</a> , <a href="https://www.heckjj.com/tags/centos/" rel="tag">centos</a> , <a href="https://www.heckjj.com/tags/apache2/" rel="tag">apache2</a> , <a href="https://www.heckjj.com/tags/php/" rel="tag">php</a> , <a href="https://www.heckjj.com/tags/ruby/" rel="tag">ruby</a> , <a href="https://www.heckjj.com/tags/python/" rel="tag">python</a>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/centos53-setup-Apache2-PHP-Ruby-Python/#blogcomment</link>
<title><![CDATA[[评论] Centos 5.3服务器完美配置之安装Apache2以及PHP，Ruby，Python]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/centos53-setup-Apache2-PHP-Ruby-Python/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>