Chinaunix首页 | 论坛 | 博客
  • 博客访问: 856794
  • 博文数量: 436
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: -103
  • 用 户 组: 普通用户
  • 注册时间: 2016-08-01 09:48
个人简介

爱生活,爱IT

文章分类

全部博文(436)

文章存档

2015年(1)

2014年(2)

2013年(6)

2011年(39)

2010年(176)

2009年(30)

2008年(28)

2007年(54)

2006年(91)

2005年(9)

分类: LINUX

2005-09-21 15:02:07

个有收藏品,未加整理。自己可以看明白就行。

 PHP:

需要先安装Apache,相关组件如(--libexecdir=/usr/local/apache/modules/ --with-config-filepath=/usr/local/apache/conf/ --with-mysql

--with-gd --with-zlib --with-xml --with-apxs2=/usr/local/apache/bin/apxs --with-ttf=/usr/local/apache --with-jpeg-dir=/usr/local/apache


./configure --libexecdir=/usr/local/apache/modules/ --with-config-filepath=/usr/local/apache/conf/ --with-mysql --with-gd --with-zlib --with-xml --with-apxs2=/usr/local/apache/bin/apxs --with-ttf=/usr/local/ --with-jpeg-dir=/usr/local/ --with-png=/usr/local


make: *** [libphp4.la] Error 1

make: *** [ext/gd/gdttf.lo] Error 1


make clean

作者: Crossday 时间: 2004-1-7 21:30


可能是zlib没有安装试试看先make clean再把--with-zlib参数去掉

--------------------------------------------------------------------------------


或者找到 zlib 路径在编译参数中带上 --with-zlib=/usr 这样的路径。


libpng-1.2.6




1. 下载:

2. 解包:

tar xvfz php-4.3.4.tar.gz

3. 安装:

cd php-4.3.4

./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --with-gd --with-zlib --with-xml --with-xmlrpc

make

make install

libtool --finish /root/php-4.3.4/libs

cp php.ini-dist /usr/local/lib/php.ini

vi /usr/local/lib/php.ini 修改 mysql.default_socket =/tmp/mysql.sock


执行文件。

root@lptwx:~# /usr/local/apache2/bin/apachectl start


自动运行脚本/etc/rc.httpd

#!/bin/sh

# Start/stop/restart http.


# Start http:

httpd_start() {

if [ -x /usr/local/apache2/bin/apachectl ]; then

echo "Starting http daemon: /usr/local/apache2/bin/apachectl"

/usr/local/apache2/bin/apachectl start

fi

}


# Stop http:

httpd_stop() {

killall httpd

}


# Restart httpd:

httpd_restart() {

httpd_stop

sleep 1

httpd_start

}


case "$1" in

'start')

httpd_start

;;

'stop')

httpd_stop

;;

'restart')

httpd_restart

;;

*)

echo "usage $0 start|stop|restart"

esac


#End httpd script



mysql.sock doesn't exist

安装MYSQL

确保正确的安装mysql.

shell> groupadd mysql

shell> useradd -g mysql mysql

shell> cd /usr/local

shell> tar xvfz mysql-standard-4.0.17-pc-linux-i686.tar.gz

shell> ln -s mysql-standard-4.0.17-pc-linux-i686 mysql

shell> cd mysql

shell> scripts/mysql_install_db

shell> chown -R root .

shell> chown -R mysql data

shell> chgrp -R mysql .

shell> bin/mysqld_safe --user=mysql & 最好运行一次,以便检查一此文件配置失误。

注意:所有数据库文件或日志文件都默认在data目录中,可以在bin/mysql_safe 中修改

mysql.sock 是跟my.cnf的配置放在/tmp

cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf

根据启动脚本定义的不同,可能需要复制到data目录中,

/usr/local/mysql/support-files# cp mysql.server /etc/rc.mysqld是(可以修改许多的默认设

置)

刚安装好的mysql 必须用root登录,以便修改其它权限。

/data中的几个重要的文件: hostname.pid, hostname.log

修改口令:

#mysqladmin -u root password new-password

运行mysql

#mysql -u -p

停止mysql

#mysqlqdmin -u -p shutdaown

./bin/mysqladmin -u root password 'new-password'

./bin/mysqladmin -u root -h lptwx password 'new-password'

安装apache 2

./configure --enable-module=so

make

make install

安装php

PHP:

1. 下载:

2. 解包:

tar xvfz php-4.3.4.tar.gz

3. 安装:

cd php-4.3.4

./configure --prefix=/usr/local/apache2/ --with-mysql --with-config-filepath=/

usr/local/apache2/conf/ --libexecdir=/usr/local/apache2/modules/ --with-gd --with-zlib

--with-xml --with-apxs2=/usr/local/apache2/bin/apxs --with-ttf=/usr/local --with-jpeg-

dir=/usr/local/

make

make install

libtool --finish /root/php-4.3.4/libs

cp php.ini-dist /usr/local/lib/php.ini

vi /usr/local/lib/php.ini 修改mysql.default_socket =/tmp/mysql.sock

vi /usr/local/apache/conf/httpd.conf

DirectoryIndex后加上index.php

加一行AddType application/x-httpd-php .php .phtml .php3 .inc

加一行LoadModule php4_module modules/libphp4.so

AddDefaultCharset后改为GB2312

LINUX系统管理详细信息

Linux网络服务软件安装备忘录ve

Linux网络服务软件安装备忘录ver 0.2 hutuworm(原作)

关键字Linux Apache MySQL PHP VPN BBS

Linux网络服务软件安装备忘录ver 0.2

by hutuworm

软件版本

RedHat Linux 8.0

Apache 2.0.45

MySQL 4.0.12

PHP 4.3.1

ProFTPD 1.2.8

vsftpd 1.1.0-1

UnrealIRCd 3.2-beta16

pptpd 1.1.4-b3

cnphpBB 2.0.4mod

安装过程

Apache:

1. 下载:

2. 解包:

tar xvfz httpd-2.0.45.tar.gz

3. 安装:

cd httpd-2.0.45

./configure --prefix=/usr/local/apache --enable-so

make

make install

4. 修改httpd.conf:

vi /usr/local/apache/conf/httpd.conf

DirectoryIndex后加上index.php

加一行AddType application/x-httpd-php .php .phtml .php3 .inc

加一行LoadModule php4_module modules/libphp4.so

AddDefaultCharset后改为GB2312

5. 启动时运行:

vi /etc/rc.d/rc.local 加一行/usr/local/apache/bin/apachectl start

MySQL:

1. 下载:

2. 安装:

groupadd mysql

useradd -g mysql mysql

cd /usr/local

gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -

ln -s full-path-to-mysql-VERSION-OS mysql

cd mysql

scripts/mysql_install_db

chown -R root .

chown -R mysql data

chgrp -R mysql .

3. 运行:

./bin/mysqld_safe --user=mysql &

4. 启动时运行:

vi /etc/rc.d/rc.local 加一行cd /usr/local/mysql./bin/mysqld_safe --user=mysql &

PHP:

1. 下载:

2. 解包:

tar xvfz php-4.3.1.tar.gz

3. 安装:

cd php-4.3.1

./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --

with-gd --with-zlib --with-xml

make

make install

cp php.ini-dist /usr/local/lib/php.ini

vi /usr/local/lib/php.ini 修改mysql.default_socket =/tmp/mysql.sock

ProFTPD:

1. 下载:

ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.8.tar.gz

2. 解包:

tar xvfz proftpd-1.2.8.tar.gz

3. 安装:

cd proftpd-1.2.8

./configure

make

make install

vi /usr/local/etc/proftpd.conf Group 后改为nobody

4. 运行:

/usr/local/sbin/proftpd

5. 启动时运行:

vi /etc/rc.d/rc.local 加一行/usr/local/sbin/proftpd

vsftpd:

1. 下载:

ftp://ftp.rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/vsftpd-1.1.0-1.i386.rpm

2. 安装:

rpm -ihv vsftpd-1.1.0-1.i386.rpm

3. 配置:

vi /etc/vsftpd.conf

每一个选项都有详细说明,根据需要按照说明进行配置。

修改/etc/vsftpddisable设置为NO

4. 运行:

service xinetd reload

UnrealIRCd:

1. 下载:

2. 解包:

tar xvfz Unreal3.2-beta16.tar.gz.tar

3. 安装:

cd Unreal3.2

./Config

./make

4. 配置:

cp doc/example.conf ./unrealircd.conf

根据需求按照文档设置unrealircd.conf

5. 运行:

./unreal start

6. 启动时运行:

vi /etc/rc.d/rc.local 加一行cd /home/hutuworm/Unreal3.2./unreal start

pptpd:

1. 下载:

2. 解包:

tar xvfz pptpd-1.1.4-b3.tar.gz

3. 安装:

cd poptop-1.1.4/

./configure

make

make check

make install

4. 配置:

vi /etc/pptpd.conf

speed 115200

option /etc/ppp/options

remoteip 192.168.1.88-168

vi /etc/ppp/options

lock

name hutuworm.org

auth

require-chap

proxyarp

vi /etc/ppp/chap-secrets

hutuworm hutuworm.org password *

vi /etc/rc.d/rc.local

modprobe ipip

modprobe ip_conntrack

modprobe iptable_nat

modprobe ipt_MASQUERADE

iptables -t nat -A POSTROUTING -d 0.0.0.0/0 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

/usr/local/sbin/pptpd

5. 重起后自动运行:

reboot

Linux网络服务软件安装备忘录ver 0.4

by hutuworm

软件版本

Fedora CORE 1 Yarrow □下列软件均在此平台上安装成功

Apache 2.0.48 ◇Web服务器

MySQL 4.0.16 ◇数据库服务器

PHP 4.3.4 ◇服务器端脚本语言

ProFTPD 1.2.9 ◇FTP服务器

vsftpd 1.2.0 ◇非常安全的FTP服务器

UnrealIRCd 3.2-beta18 ◇IRC服务器

pptpd 1.1.4-b3 ◇VPN服务器

cnphpBB 2.0.4mod ◇PHP编写的BBS

ample 0.5.6 ◇网络电台服务器

Resin 3.0.3 ◇应用服务器

安装过程

Apache:

1. 下载:

2. 解包:

tar xvfz httpd-2.0.48.tar.gz

3. 安装:

cd httpd-2.0.48

./configure --prefix=/usr/local/apache --enable-so --enable-proxy --enable-rewrite --enablecache

--enable-disk-cache --enable-mem-cache

make

make install

4. 修改httpd.conf:

vi /usr/local/apache/conf/httpd.conf

DirectoryIndex后加上index.php

加一行AddType application/x-httpd-php .php .phtml .php3 .inc

加一行LoadModule php4_module modules/libphp4.so

AddDefaultCharset后改为GB2312

5. 启动时运行:

vi /etc/rc.d/rc.local 加一行/usr/local/apache/bin/apachectl start

MySQL:

1. 下载:

2. 安装:

groupadd mysql

useradd -g mysql mysql

cd /usr/local

gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -

ln -s full-path-to-mysql-VERSION-OS mysql

cd mysql

scripts/mysql_install_db

chown -R root .

chown -R mysql data

chgrp -R mysql .

3. 运行:

./bin/mysqld_safe --user=mysql &

4. 启动时运行:

vi /etc/rc.d/rc.local 加一行cd /usr/local/mysql;./bin/mysqld_safe --user=mysql &

PHP:

1. 下载:

2. 解包:

tar xvfz php-4.3.4.tar.gz

3. 安装:

cd php-4.3.4

./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enabletrack-

vars --with-gd --with-zlib --with-xml --with-xmlrpc

make

make install

libtool --finish /root/php-4.3.4/libs

cp php.ini-dist /usr/local/lib/php.ini

vi /usr/local/lib/php.ini 修改mysql.default_socket =/tmp/mysql.sock

ProFTPD:

1. 下载:

ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.9.tar.gz

2. 解包:

tar xvfz proftpd-1.2.9.tar.gz

3. 安装:

cd proftpd-1.2.9

./configure

make

make install

4. 运行:

/usr/local/sbin/proftpd

5. 启动时运行:

vi /etc/rc.d/rc.local 加一行/usr/local/sbin/proftpd

vsftpd:

1. 下载:

ftp://vsftpd.beasts.org/users/cevans/vsftpd-1.2.0.tar.gz

2. 安装:

tar xvfz

3. 配置:

cp EXAMPLE/INTERNET_SITE/vsftpd.xinetd /etc/xinetd.d/vsftpd

cp EXAMPLE/INTERNET_SITE/vsftpd.conf /etc/

根据需要修改/etc/vsftpd.conf

修改/etc/xinetd.d/vsftpddisable设置为NO

4. 运行:

service xinetd restart

UnrealIRCd:

1. 下载:

2. 解包:

tar xvfz Unreal3.2-beta18.tar.gz.tar

3. 安装:

cd Unreal3.2

./Config

./make

4. 配置:

cp doc/example.conf ./unrealircd.conf

根据需求按照文档设置unrealircd.conf

5. 运行:

./unreal start

6. 启动时运行:

vi /etc/rc.d/rc.local 加一行cd /home/hutuworm/Unreal3.2;./unreal start

pptpd:

1. 下载:

2. 解包:

tar xvfz pptpd-1.1.4-b4.tar.gz

3. 安装:

cd poptop-1.1.4/

./configure

make

make check

make install

4. 配置:

vi /etc/pptpd.conf

speed 115200

option /etc/ppp/options

localip 192.168.1.88-168

remoteip 192.168.2.88-168

vi /etc/ppp/options

lock

name hutuworm.org

auth

require-chap

proxyarp

vi /etc/ppp/chap-secrets

hutuworm hutuworm.org password *

vi /etc/rc.d/rc.local

modprobe ipip

modprobe ip_conntrack

modprobe iptable_nat

modprobe ipt_MASQUERADE

iptables -t nat -A POSTROUTING -d 0.0.0.0/0 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

/usr/local/sbin/pptpd

5.

阅读(2259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~