Centos5.4 搭建LAMP环境
来源:互联网 发布:the python challenge 编辑:程序博客网 时间:2024/05/18 02:43
1、 安装纯净系统Centos5.4,不安装任何组件;
2、 更新系统yum update –y
3、 安装VSFTP软件 yum install –y
4、 安装MYSQL yum install mysql-server –y
5、 安装Apache2 yum install httpd –y
6、 安装php支持 yum install php –y
7、 安装php模块 yum install php-mysql php-gd php-imap php-odbc php-pear php-xml php-xmlrpc php-mcrypt php-mbstring –y
8、 安装ZendOptimizer.3.3.3
tar xzvf ZendOptimizer-3.3.3-linux.tar.gz
cd ZendOptimizer-3.3.3-linux
./install.sh
9、 配置VSFTP、MYSQL、Apache2自动启动
chkconfig vsftpd on
chkconfig mysqld on
chkconfig httpd on
10、 启动VSFTP、MYSQL、Apache2
service vsftpd start
service mysqld start
service httpd start
11、 设置MYSQL数据库密码;
Mysqladmin –u root password “密码”
访问mysql数据库:mysql –uroot –p
12、配置PHP
配置php使用内存最小值、上传文件大小等
vi /etc/php.ini
memory_limit=128M
post_max_size=8M
upload_max_filesize=2M
13、配置VSFTP软件
创建没有权限登录系统的FTP帐号
adduser –d /home/wordpress –g ftp –s /sbin/nologin zhcxl
passwd zhcxl
设置/home/wordpress目录的权限给zhcxl用户
chown zhcxl /home/wordpress
取消匿名用户的登录权限
vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
把所有FTP用户都限制在家目录
vi /etc/vsftpd/vsftpd.conf
添加一行chroot_local_user=YES
14、配置Apache2
更改网站端口、路径和默认索引页;
vi /etc/httpd/conf/httpd.conf
Listen 8080
DocumentRoot “/home/wordpress”
DirectoryIndex index.php index.html index.html.var
- Centos5.4 搭建LAMP环境
- Centos5.4 搭建LAMP环境
- CentOs5.4下LAMP环境搭建-问题集锦
- CentOs5.4下LAMP环境搭建-问题集锦
- CENTOS5.6 CENTOS6.2LAMP环境搭建测试成功
- CentOS5.6 快速搭建lamp
- Centos5下LAMP环境安装
- 安装LAMP环境,centos5.5
- CentOS5.5 下搭建 PHP 环境(最佳的LAMP环境)
- CentOS5.5 下搭建 PHP 环境(最佳的LAMP环境)
- CentOS5.5 下搭建 PHP 环境(最佳的LAMP环境)
- CentOS5.5 下搭建 PHP 环境(最佳的LAMP环境)
- CentOS6.4 搭建LAMP环境
- LAMP环境搭建4-整合
- Centos5.1 搭建Lamp修正版
- centos5.6搭建python环境
- CentOS6.4源码搭建LAMP环境
- LAMP环境搭建2-Apache2.4
- powerlink介绍
- 电子工程师基础知识
- QuickContactBadge的用法
- httpclient
- 第六章 语句
- Centos5.4 搭建LAMP环境
- Android 属性系统
- 修改 Android 系统默认语言版本
- Delphi传中文参数给Jsp
- 实现axis2两种不同方式的客户端
- CTreeCtrl(图片和状态图片、动态提示、选中节点颜色、查询)
- 带bar的横向图片循环轮播(可修改轮播速度)
- 七个受用一生的心理寓言
- Windows 下java调用C++ dll动态链接库