Set up & Configurate Server -cen…

本文档提供了一份详细的CentOS 5.0服务器配置教程,包括安装vim编辑器、查看已安装软件和服务、Apache配置及启动、BerkeyDB安装、openldap部署、PHP集成等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.First : can’t fine vim

Set <wbr>up <wbr>& <wbr>Configurate <wbr>Server <wbr>-centos <wbr>5.0

You can use vi or install vim

2.See what have bee installed

 a.rqm –qa >> tt.txt
 b.tt.txt shows the software and service that you server has been installed
 c.after you see the tt.txt ,you will decide what software and service you need ,then install them

3.The purpose of looking tt.txt
 a. Whether the server has been install something you want
   if not, you prepare the source file and install them yourself
 b. Whether the version of the software or service is correct for you 
   if not, uninstall them ,and install them yourself
4.The installation of  apache
 a../configure --prefix=/usr/local/apache2 --enable-so --enable-proxy --enable-openssl -enable-vhost-alias --enable-mods-shared=most --enable-dav --enable-maintainer-mode-with-mpm=worker
 b.make
 c.make install

5.Start apache

Set <wbr>up <wbr>& <wbr>Configurate <wbr>Server <wbr>-centos <wbr>5.0

  The Solution of this error:
    a.stop apache
    b.cd apache’s conf directory
    c.modify the http.conf
    d.remove the “#” before ServerName
    e.restart apache

6.The installation of BerkeyDB

 a.cd db-4.8.XX/build_unix
 b. ../dist/configure –prefix=/usr/local/bdb
 c.make
 d.make install
 e. vim /etc/ld.so.conf加入一行:/usr/local/bdb/lib ,並保存
 f.ldconfig

7.The installation of openldap
  a.cd openldap.XX
  b../configure –prefix=/usr/local/openldap –with-bdb
  c.make
  d.make install
  e.modify the file slapd.conf  

8.The installation of PHP 

  a../configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/png --with-zlib --with-GD --with-freetype-dir=/usr/local/freetype --with-libxml-dir=/usr/local/libxml –with-gettext=/usr/local/gettext --with-ldap=/usr/local/openldap
 b. make
 c.make test
 d.make install
 e.cp php.ini-dist /usr/local/lib/php.ini
 f.modifty the http.conf
 g.Add php to apache

9.Restart apache
 a.After add the php configure in http.config,you should restart the apache to reload the http.configure.
 b.When you restart the apache,you may meet the error:
   httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
  Reason:linux have a protect mode named SELInux.
  Resolution:1.close the SELinux:vi /etc/selinux/configure;Change SELinux=enforing  to   SELinux=disable;restart the apache2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值