All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
关于.NET中MD5加密与ASP中MD5加密值不同的解决办法_[Asp.Net教程]
ASP.NET&Spring.NET&NHibernate最佳实践(二)——第1章前言_[Asp.Net教程]
asp.net验证控件失效原因及解决方法_[Asp.Net教程]
怎样在vb.net中将图片存入SQL,Server,2000并能读出来使用
用定制的PHP应用程序来获取Web服务器的状态信息_[PHP教程]
PHP学习宝典-第八章(二)_[PHP教程]
2003环境下如何手工修复安装.NET1.1_服务器技术_编程技术
Repeater控件实例应用
SQL Server 2005数据库升级技巧_[SQL Server教程]
PHP和AJAX打造高级RSS聚合器_php资料_编程技术
Reading number is top 10 pictures
牛奶和人奶哪个好?
HongMenYan premiere XinLiangGong clairvoyant outfit PK YiFeiLiu2
Sora aoi on twitter3
BingBingFan apple dew point photo gallery5
湖边的风景
The money of more than 100 countries and regions1
谁认识这位校花
The woman fight much more than men
乳娘帕梅拉安德森4
Sanya, hainan Haitian party feast promiscuity
Download software ranking
Professional killers2 for Android
Love the forty days
星际争霸1.08硬盘免安装版
Boxer's Top ten classic battle10
Jinling thirteen stock
matrix2
电脑知识及技巧大合集
Boxer Classic video2
艳兽都市
Eclipse 4.2.2 For Win32
aaa published in(发表于) 2013/12/27 19:51:15 Edit(编辑)
Apche,+,MySQL,+,PHP整合安装脚本_php资料_编程技术

Apche,+,MySQL,+,PHP整合安装脚本_php资料_编程技术

Apche + MySQL + PHP整合安装脚本_php资料_编程技术-你的首页-uuhomepage.com

这个脚本可以无需人工干预的完成L.A.M.P的整合工作。


该脚本适用于整合源码包方式的apache2.0.5x,php4.0.x和已编译好的(Binary版本)的MySQL4.0.2x。


注意,以上三个包最好从各自的官方站点下载,并且下载后最好不要改变文件名!


使用方法:

=====

1、将下载好的3个包和本安装脚本(install_lamp.sh)放置在

/home/Nanu下。放置的位置随意,但注意必须把3个包和本安装脚本放在同一目录!

2、Apache和PHP的./configure部分根据需要换成你的编译参数;

3、执行install_lamp.sh;

4、安装完成后,MySQL的root密码默认保存在/usr/local/mysql/passwd.root中,以备忘记。


脚本代码:

=====



CODE:[Copy to clipboard]#!/bin/bash


# Mysql4.0.x Start

/bin/tar xzvf mysql*4.0.*.tar.gz

/bin/rm -f mysql*4.0.*.tar.gz

/usr/sbin/useradd mysql

/bin/mv mysql*4.0* /usr/local/mysql

/usr/local/mysql/scripts/mysql_install_db --user=mysql

/bin/chown -R root /usr/local/mysql/.

/bin/chown -R mysql /usr/local/mysql/data

/bin/chgrp -R mysql /usr/local/mysql/.

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

/usr/local/mysql/bin/mysqld_safe --user=mysql &

echo "Please Set Your MySQL root Password:"

read password

/usr/local/mysql/bin/mysqladmin -u root password $password

/bin/touch /usr/local/mysql/passwd.root

echo $password >; /usr/local/mysql/passwd.root

/usr/local/mysql/bin/mysqladmin -u root --password=$password shutdown

/bin/cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld

/sbin/chkconfig --add mysqld

/etc/rc.d/init.d/mysqld start

# MySQL4.0.x End


# Apache2.0.x Start

/bin/tar xzvf httpd-2.0.*.tar.gz

cd httpd-2.0.*

./configure --prefix=/usr/local/apache --mandir=/usr/share/man --enable-mods-shared=all --enable-so

make

make install

echo "AddType application/x-httpd-php .php" >;>; /usr/local/apache/conf/httpd.conf

sed -i 's/"DirectoryIndex index.html index.html.var"/"DirectoryIndex index.htm index.html index.php index.html.var"/g' /usr/local/apache/conf/httpd.conf

/usr/local/apache/bin/apachectl -k start

# Apache2.0.x End


# PHP4.0.x Start

/bin/tar xzvf php-*.tar.gz

cd php-*

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --mandir=/usr/share/man --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php/etc

make

make install

/bin/cp php.ini-recommended /etc/php.ini

sed -i 's/"register_globals = Off"/"register_globals = On"/g' /etc/php.ini

/usr/local/apache/bin/apachectl -k restart

# PHP4.0.x End





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.