您的位置:首页 > 其它

Set up & Configurate& 4000 nbsp;Server -cen…

2015-04-17 20:04 232 查看
1.First : can’t fine vim





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





  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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: