一、安装Apache

# tar xzvf httpd-2.2.15.tar.gz

# cd httpd-2.2.15

# ./configure --prefix=/home/user/webserver/apache2 --enable-so --enable-rewrite=share --enable-proxy=share --enable-proxy-ajp=share --enable-dav=share --enable-dav-fs

# make

#make install


安装MySQL

# tar xzvf mysql-5.0.22.tar.gz

# cd MysqL-5.0.22

# mkdir /home/user/webserver/MysqL

# ./configure --prefix=/home/user/webserver/MysqL --with-named-curses-libs=/usr/lib64/libncurses.so.5

#make

#make install

目录权限
编译安装完成后执行后续操作:
# useradd MysqL //添加 MysqL 用户
# cd /home/user/webserver/MysqL
# bin/MysqL_install_db --user=MysqL
# chown -R root:MysqL . //设置权限,注意后面有一个 "."
# chown -R MysqL /var/lib/MysqL //设置 MysqL 目录权限
# chgrp -R MysqL . //注意后面有一个 "."
# cp share/MysqL/my-huge.cnf /etc/my.cnf
# cp share/MysqL/MysqL.server /etc/rc.d/init.d/MysqLd //开机自动启动 MysqL。
# chmod 755 /etc/rc.d/init.d/MysqLd
# chkconfig --add MysqLd
# /etc/rc.d/init.d/MysqLd start //启动 MysqL
# bin/MysqLadmin -u root password "password_for_root"
# service MysqLd stop //关闭 MysqL

安装说明

安装PHP
# tar zxvf php-5.2.13.tar.gz

# cd PHP-5.2.13

# CFLAGS="-O3 -fPIC" ./configure --prefix=/home/user/webserver/PHP --with-apxs2=/home/user/webserver/apache2/bin/apxs --with-zlib-dir=/usr/local/lib --with-config-file-path=/home/user/webserver/PHP/lib --with-MysqL=/home/user/webserver/MysqL

#编辑 httpd.conf
line 55 LoadModule PHP5_module /home/user/webserver/apache2/modules/libPHP5.so
line 170 <IfModule dir_module> DirectoryIndex index.PHP index.html index.htm </IfModule>
line 316 AddType application/x-httpd-PHP .PHP AddType application/x-httpd-PHP-source .PHPs
line 424 PHPIniDir "/etc/"
增加 PHP.ini


安装 Memcached
# tar zxvf memcached-1.2.6.tar.gz
# cd memcached-1.2.6
# ./configure --prefix=/home/user/webserver/memcached
# make
# make install

Memcache扩展安装:
# tar zxvf memcache-2.2.4.tgz
# cd memcache-2.2.4
# /home/user/webserver/PHP/bin/PHPize
# ./configure --enable-memcache --with-PHP-config=/home/user/webserver/PHP/bin/PHP-config --with-zlib-dir
# make
# make install

配置
####### /home/user/webserver/PHP/lib/PHP/extensions/no-debug-non-zts-20060613/memcache.so #######
# ls -l /usr/local/PHP/lib/PHP/extensions/no-debug-non-zts-20060613/memcache.so
# vim /usr/local/PHP/lib/PHP.ini
新增配置内容: extension_dir = "/usr/local/PHP/lib/PHP/extensions/no-debug-non-zts-20060613/" extension = memcache.so 检查安装结果 # /usr/local/PHP/bin/PHP -m
# /usr/local/apache2/bin/apachectl restart


二、安装附件

{安装Linux cent os5.3时出现configure Failed for srclib/apr

linux 2009-10-22 15:21:15 阅读99 评论0 字号:大中小 订阅
在linux cent OS5.3安装apache 运用命令httpd-2.2.11]# ./configure --sysconfdir=/etc --enable-ssl --enable-modules 时出现了

........................

checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/httpd-2.2.11/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure Failed for srclib/apr

查看了一下原来是错误开始于srclib/apr文件,检查gcc编译器时提示没发现并且在系统环境变量$PATH中没有合适的c编译器,以是使用yum -y install gcc来安装gcc编译器,就可继续安装了.}
CentOS安装TortoiseSVN
yum install -y subversion

安装gcc的也要yum install gcc

yum install ncurses

{MysqL Segmentation fault
已有 76 次阅读 2011-02-28 11:17 标签: color style
刚安装好的MysqL去了解居然出现Segmentation fault然后直接退出

# MysqL -u root -p
Enter password:
Welcome to the MysqL monitor. Commands end with ; or \g.
Your MysqL connection id is 3
Server version: 5.1.47-log Source distribution

copyright (c) 2000,2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Segmentation fault

是少了ncurses-devel的RPM包,yum install ncurses-devel
然后重新编译MysqL}


解决 安装 MysqL exec: g++: not found 报错
解决办法:

yum install -y gcc-c++

{bin/MysqL_install_db --user=MysqL
Installing all prepared tables
Fill help tables

To start MysqLd at boot time you have to copy support-files/MysqL.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MysqL root USER !
To do so,start the server,then issue the following commands:
/home/user/webserver/MysqL/bin/MysqLadmin -u root password 'new-password'
/home/user/webserver/MysqL/bin/MysqLadmin -u root -h CentOS5.LT password 'new-password'
See the manual for more instructions.

You can start the MysqL daemon with:
cd /home/user/webserver/MysqL ; /home/user/webserver/MysqL/bin/MysqLd_safe &

You can test the MysqL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /home/user/webserver/MysqL/bin/MysqLbug script!

The latest information about MysqL is available on the web at
http://www.mysql.com
Support MysqL by buying support/licenses at http://shop.mysql.com
}

libxml2

yum install autoconf

# cd /usr/src
# wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
# tar -zvxf m4-1.4.9.tar.gz # cd m4-1.4.9/
# ./configure && make && make install
# cd ../
# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# tar -zvxf autoconf-2.62.tar.gz
# cd autoconf-2.62/
# ./configure && make && make install

{MysqL安装:/bin/rm: cannot remove `libtoolt': No such file or directory2011年04月28日 星期四 14:41编译MysqL的过程中提示:
/bin/rm: cannot remove `libtoolt': No such file or directory
解决:
1、确认libtool是否已经安装,如果没有安装的话,则先安装libtool
# yum -y install libtool
2、分别执行以下三条命令:
# autoreconf --force --install
# libtoolize --automake --force
# automake --force --add-missing
再重新编译安装,问题解决!}


zlib
CFLAGS="-O3 -fPIC" ./configure

{安装 libevent
# tar zxvf libevent-1.4.9-stable.tar.gz
# cd libevent-1.4.9-stable
# ./configure --prefix=/usr
# make
# make install}

三、安装问题
./MysqL_install_db
Installing all prepared tables
Fill help tables

To start MysqLd at boot time you have to copy support-files/MysqL.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MysqL root USER !
To do so,then issue the following commands:
/home/user/webserver/MysqL/bin/MysqLadmin -u root password 'new-password'
/home/user/webserver/MysqL/bin/MysqLadmin -u root -h CentOS5.LT password 'new-password'
See the manual for more instructions.

NOTE: If you are upgrading from a MysqL <= 3.22.10 you should run
the /home/user/webserver/MysqL/bin/MysqL_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MysqL daemon with:
cd /home/user/webserver/MysqL ; /home/user/webserver/MysqL/bin/MysqLd_safe &

You can test the MysqL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /home/user/webserver/MysqL/bin/MysqLbug script!

The latest information about MysqL is available on the web at
http://www.mysql.com
Support MysqL by buying support/licenses at http://shop.mysql.com


./MysqL_install_db --user=MysqL --basedir=/home/user/webserver/MysqL --datadir=/home/user/webserver/MysqL/var
Installing all prepared tables
Fill help tables

To start MysqLd at boot time you have to copy support-files/MysqL.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MysqL root USER !
To do so,then issue the following commands:
/home/user/webserver/MysqL/bin/MysqLadmin -u root password 'new-password'
/home/user/webserver/MysqL/bin/MysqLadmin -u root -h CentOS5.LT password 'new-password'
See the manual for more instructions.

NOTE: If you are upgrading from a MysqL <= 3.22.10 you should run
the /home/user/webserver/MysqL/bin/MysqL_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MysqL daemon with:
cd /home/user/webserver/MysqL ; /home/user/webserver/MysqL/bin/MysqLd_safe &

You can test the MysqL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /home/user/webserver/MysqL/bin/MysqLbug script!

The latest information about MysqL is available on the web at
http://www.mysql.com
Support MysqL by buying support/licenses at http://shop.mysql.com

{bin/MysqL_install_db --user=MysqL
Installing all prepared tables
Fill help tables

To start MysqLd at boot time you have to copy support-files/MysqL.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MysqL root USER !
To do so,then issue the following commands:
/home/user/webserver/MysqL/bin/MysqLadmin -u root password 'new-password'
/home/user/webserver/MysqL/bin/MysqLadmin -u root -h CentOS5.LT password 'new-password'
See the manual for more instructions.

You can start the MysqL daemon with:
cd /home/user/webserver/MysqL ; /home/user/webserver/MysqL/bin/MysqLd_safe &

You can test the MysqL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /home/user/webserver/MysqL/bin/MysqLbug script!

The latest information about MysqL is available on the web at
http://www.mysql.com
Support MysqL by buying support/licenses at http://shop.mysql.com
}

{ bin/MysqL -uroot -p
Enter password:
Welcome to the MysqL monitor. Commands end with ; or \g.
Your MysqL connection id is 6 to server version: 5.0.22-log

Segmentation fault }

CentOS 安装 Apache PHP MYSQL Memcached Memcache 环境配置的更多相关文章

  1. 从iOS应用程序发送帖子到PHP脚本不工作…简单的解决方案就像

    我之前已经做了好几次了但是由于某些原因我无法通过这个帖子…我尝试了设置为_POST且没有的变量的PHP脚本……当它们未设置为发布时它工作精细.这是我的iOS代码:这里是PHP的一大块,POST变量不在正确的位置?我想这对于更有经验的开发人员来说是一个相当简单的答案,感谢您的帮助!解决方法$_POST是一个数组,而不是一个函数.您需要使用方括号来访问数组索引:

  2. swift学习2 元组 tuples

    swift中出现了一种新的数据结构,非常牛掰的元组tuples如果懂PHP的猿,会发现这个元组和PHP的数组非常类似,同样是可以默认不指定key,也可以指定key目前的学习疑问是,如何进行元组的遍历?

  3. 尝试使用swift mailer,gmail smtp,php发送邮件

    这里是我的代码:在运行时出现此错误…

  4. Android – 将SQLite与MySQL同步的最佳方式

    参见英文答案>Synchronizingclient-serverdatabases5个我正在开发一个包含网络应用和移动应用程序的项目,该应用程序记录每日用户的数据.用户可以删除,更新他们的数据,他们可以使用许多设备插入数据.我打算这样开发:用户输入他们的数据然后插入sqlite.服务将定期启动(每5小时或每小时)以使用时间戳与MysqL同步.我确实在互联网上使用服务和时间戳搜索了一个样本,但我一

  5. android – 如何将唯一的GCM注册标识存储到MySQL中

    我正在设置GoogleCloudMessaging机制的服务器端,使用MySQL存储移动应用提供的注册ID.Google可以发出最多4k个注册码,我被迫将其存储在TEXT字段中.所有的好,到目前为止,问题是我必须处理这样的情况:>用户登录到应用程序>该应用从google请求注册ID>应用程序将新的注册ID发送到应用服务器>服务器存储该注册ID并将其链接到当前登录的用户>该用户注销并且新用户登录>应

  6. PHP使用JpGraph绘制折线图操作示例【附源码下载】

    这篇文章主要介绍了PHP使用JpGraph绘制折线图操作,结合实例形式分析了php使用JpGraph的相关操作技巧与注意事项,并附带源码供读者下载参考,需要的朋友可以参考下

  7. jQuery的Cookie封装,与PHP交互的简单实现

    下面小编就为大家带来一篇jQuery的Cookie封装,与PHP交互的简单实现。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧

  8. PHP+jquery+CSS制作头像登录窗(仿QQ登陆)

    本篇文章介绍了PHP结合jQ和CSS制作头像登录窗(仿QQ登陆),实现了类似QQ的登陆界面,很有参考价值,有需要的朋友可以了解一下。

  9. 如何在PHP环境中使用ProtoBuf数据格式

    这篇文章主要介绍了如何在PHP环境中使用ProtoBuf数据格式,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下

  10. PHP rsa加密解密算法原理解析

    这篇文章主要介绍了PHP rsa加密解密算法原理解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下

随机推荐

  1. 在airgapped(离线)CentOS 6系统上安装yum软件包

    我有一个CentOS6系统,出于安全考虑,它已经被空气泄漏.它可能从未连接到互联网,如果有,它很长时间没有更新.我想将所有.rpm软件包放在一个驱动器上,这样它们就可以脱机安装而无需查询互联网.但是,我在测试VM上遇到的问题是,即使指定了本地路径,yum仍然会挂起并尝试从在线存储库进行更新.另外,有没有办法使用yum-utils/yumdownloader轻松获取该包的所有依赖项和所有依赖项?目前

  2. centos – 命名在日志旋转后停止记录到rsyslog

    CentOS6.2,绑定9.7.3,rsyslog4.6.2我最近设置了一个服务器,我注意到在日志轮换后,named已停止记录到/var/log/messages.我认为这很奇怪,因为所有日志记录都是通过rsyslog进行的,并且named不会直接写入日志文件.这更奇怪,因为我在更新区域文件后命名了HUPed,但它仍然没有记录.在我停止并重新启动命名后,记录恢复.这里发生了什么?

  3. centos – 显示错误的磁盘大小

    对于其中一个磁盘,Df-h在我的服务器上显示错误的空白区域:Cpanel表明它只有34GB免费,但还有更多.几分钟前,我删除了超过80GB的日志文件.所以,我确信它完全错了.fdisk-l/dev/sda2也显示错误:如果没有格式化,我该怎么做才能解决这个问题?并且打开文件描述符就是它需要使用才能做到这一点.所以…使用“lsof”并查找已删除的文件.重新启动写入日志文件的服务,你很可能会看到空间可用.

  4. 如何在centos 6.9上安装docker-ce 17?

    我目前正在尝试在centOS6.9服务器上安装docker-ce17,但是,当运行yuminstalldocker-ce时,我收到以下错误:如果我用跳过的标志运行它我仍然得到相同的消息,有没有人知道这方面的方法?

  5. centos – 闲置工作站的异常负载平均值

    我有一个新的工作站,具有不寻常的高负载平均值.机器规格是:>至强cpu>256GB的RAM>4x512GBSSD连接到LSI2108RAID控制器我从livecd安装了CentOS6.564位,配置了分区,网络,用户/组,并安装了一些软件,如开发工具和MATLAB.在启动几分钟后,工作站负载平均值的值介于0.5到0.9之间.但它没有做任何事情.因此我无法理解为什么负载平均值如此之高.你能帮我诊断一下这个问题吗?

  6. centos – Cryptsetup luks – 检查内核是否支持aes-xts-plain64密码

    我在CentOS5上使用cryptsetupluks加密加密了一堆硬盘.一切都很好,直到我将系统升级到CentOS6.现在我再也无法安装磁盘了.使用我的关键短语装载:我收到此错误:在/var/log/messages中:有关如何装载的任何想法?找到解决方案问题是驱动器使用大约512个字符长的交互式关键短语加密.出于某种原因,CentOS6中的新内核模块在由旧版本创建时无法正确读取512个字符的加密密钥.似乎只会影响内核或cryptsetup的不同版本,因为在同一系统上创建和打开时,512字符的密钥将起作用

  7. centos – 大量ssh登录尝试

    22个我今天登录CentOS盒找到以下内容这是过去3天内的11次登录尝试.WTF?请注意,这是我从我的提供商处获得的全新IP,该盒子是全新的.我还没有发布任何关于此框的内容.为什么我会进行如此大量的登录尝试?是某种IP/端口扫描?基本上有4名匪徒,其中2名来自中国,1名来自香港,1名来自Verizon.这只发生在SSH上.HTTP上没有问题.我应该将罪魁祸首子网路由吗?你们有什么建议?

  8. centos – kswap使用100%的CPU,即使有100GB的RAM也可用

    >Linux内核是否应该足够智能,只需从内存中清除旧缓存页而不是启动kswap?

  9. centos – Azure将VM从A2 / 3调整为DS2 v2

    我正在尝试调整前一段时间创建的几个AzureVM,从基本的A3和标准A3到标准的DS2v2.我似乎没有能力调整到这个大小的VM.必须从头开始重建服务器会有点痛苦.如果它有所不同我在VM中运行CentOS,每个都有一个带有应用程序和操作系统的磁盘.任何人都可以告诉我是否可以在不删除磁盘的情况下删除VM,创建新VM然后将磁盘附加到新VM?

  10. centos – 广泛使用RAM时服务器计算速度减慢

    我在非常具体的情况下遇到服务器速度下降的问题.事实是:>1)我使用计算应用WRF>2)我使用双XeonE5-2620v3和128GBRAM(NUMA架构–可能与问题有关!

返回
顶部