(源自網絡經本人修改)frontpage_extension on Centos 4.3 的安裝
- 詳細內容
- 分類: Linux
- 發佈: 2006-05-31, 週三 00:20
- 作者 Super User
- 點擊數: 24764
1.install apache (http://www.apache.org/)
tar -zxvf httpd-2.0.55.tar.gz
cd httpd-2.0.55
./configure --prefix=/usr/local/apache
make
make install
cd ..
2.install freetype (http://www.freetype.org/)
tar -zxvf freetype-2.1.10.tar.gz
cd freetype-2.1.10
./configure --prefix=/usr/local/modules/freetype
make
make install
cd ..
3.install jpeg (http://www.ijg.org)
mkdir -p /usr/local/modules/jpeg6/include
mkdir /usr/local/modules/jpeg6/bin
mkdir /usr/local/modules/jpeg6/lib
mkdir /usr/local/modules/jpeg6/man
mkdir /usr/local/modules/jpeg6/man/man1
tar -zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --prefix=/usr/local/modules/jpeg6
make
make install-lib
make install
cd ..
4.install zlib
tar -zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=/usr/local/modules/zlib
make
make install
cd ..
5.install libpng
tar -zxvf libpng-1.2.9rc1.tar.gz
cd libpng-1.2.9rc1
./configure --prefix=/usr/local/modules/libpng
make
make install
cd ..
6.install GD
tar -zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure \
--prefix=/usr/local/modules/gd \
--with-png=/usr/local/modules/libpng \
--with-zlib=/usr/local/modules/zlib \
--with-jpeg=/usr/local/modules/jpeg6 \
--with-freetype=/usr/local/modules/freetype
make
make install
cd ..
7.install php4 (http://www.php.net/)
tar -zxvf php-4.4.2.tar.gz
cd php-4.4.2
./configure \
--prefix=/usr/local/php4 \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/php4 \
--with-zlib=/usr/local/modules/zlib \
--with-xml \
--with-iconv \
--with-png=/usr/local/modules/libpng \
--with-freetype=/usr/local/modules/freetype \
--with-gd=/usr/local/modules/gd \
--enable-gd \
--with-jpeg-dir=/usr/local/modules/jpeg6 \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysql
make
make install
cp -rp php.ini-dist /usr/local/php4/php.ini
cd ..
vi /usr/local/php4/php.ini
修改 register_globals = On
vi /usr/local/apache/conf/httpd.conf
-----------------------------------------------------------
將所AllowOverride設定成All
User apache
Grouop apache
AddType application/x-httpd-php .php .php3 #添加該行,讓server 認php 文件.
安裝frontpage extension 2002 in apache2.0
1.tar -zxvf fp50.linux.tar.gz
2.cd frontpage/version5.0
3../fp_install.sh
Are you satisfied with your backup of the system (y/n) [N]?y
FrontPage Server Extensions directory [/usr/local/frontpage/]:/usr/local/frontpage
4. Which directory is the file located in (X to cancel)? /home/jason/ --->改
[ 這是tar.gz的位置, 故按自己的安排而定的 ]
5. Where is the zcat which can uncompress gz files? /bin/zcat
[ zcat 的所在, 按本機設定而定義的 ]
press space key
Do you accept the terms of the license agreement (y/n) [N]?y
6. Which version of Apache will you be using? (1.3 or 2.0) 2.0
[ 由於我們裝置於apache2.0之上 ]
7. Where is the current apache control file (apachectl) located: [] /usr/local/apache/bin/apachectl
[ compile 後apache control file的位置所在, 一般來說皆會在apache裡的bin folder中尋到的.
Do you wish to continue? (y/n) [N]?y
Would you like interactive prompting for each webs owner/group (y/n) [Y]?
Which local character encoding does your system support: [1]
What should the default language be: [1]
8. Installing the root web...
Do you want to install a root web (y/n) [Y]?
Server config filename: /usr/local/apache/conf/httpd.conf
[ apache configure file position ]
This should be the full path to your apache configuration file, httpd.conf.
FrontPage Administrator's user name: admin
[ frontpage administrator setting ]
Enter the new server's port number: 80
[ 一般以80 port為準 ]
Port your server is running on, default is 80
Getting User from /usr/local/apache/conf/httpd.conf
Unix user name of the owner of this new web: [apache]
Getting Group from /usr/local/apache/conf/httpd.conf
Unix group of this new web: [apache]
Installing root web into port 80...
installing server / on port 80
Will chown web to apache as part of install.
Will chgrp web to apache as part of install.
Starting install, port: 80.
Enter user password:books123
Confirm password:books123
Creating web http://.
Chowning Content in service /.
Install completed.
Install new sub/per-user webs now (y/n) [Y]? n
For details on how to upgrade servers manually, please see
the Server Extension Resource Kit (SERK), located at
http://www.microsoft.com/frontpage
Installing Virtual Webs..
Do you want to install Virtual Webs (y/n) [Y]? n
Installation completed! Exiting...
9. 新增用戶
執行指令的路徑
- /usr/local/frontpage/version5.0/bin/
添加srm.conf 與 access.conf
echo "" > /usr/local/apache/conf/srm.conf
echo "" > /usr/local/apache/conf/access.conf
在 httpd.conf 增加 VirtualHost
add user command :
/usr/local/frontpage/version5.0/bin//owsadm.exe -o install -u [frontpage user] -p 80 -m [domain] -servconf /usr/local/apache/conf/httpd.conf -xuser [linux user]