LAMP小应用
2019-05-15 22:12
435 查看
PhpMyAdmin:
1、解压phpMyAdmin [root@localhost ~]# tar xvf phpMyAdmin-4.0.10.20-all-languages.tar.xz 2、移动到网页主站点 [root@localhost ~]# mv phpMyAdmin-4.0.10.20-all-languages /var/www/html/pma 3、进入目录找到配置文件 [root@localhost pma]# cp config.sample.inc.php config.inc.php 4、修改配置文件 [root@localhost pma]# vim config.inc.php $cfg['blowfish_secret'] = 'qwe123' #随机密码用于加密 5、安装mbstring扩展 [root@localhost pma]# yum -y install php-mbstring 6、浏览器打开网站,输入账号密码登录web数据库 http://192.168.2.26/pma/
实现web管理的PowerDNS:
1、配置好epel源 [epel] name=EPEL baseurl=https://mirrors.aliyun.com/epel/7/x86_64/ gpgcheck=0 enabled=1 2、安装包 [root@localhost html]# yum -y install pdns pdns-backend-mysql 3、准备mariadb中的数据库,表和用户 MariaDB [(none)]> grant all on powerdns.* to 'powerdns'@'localhost' identified by '123456'; 4、创建powerdns数据库中的表,参考下面文档 https://doc.powerdns.com/md/authoritative/backend-generic-mysql/ 5、将写好的创建数据库表导入数据库 [root@localhost ~]# mysql -uroot -p < pdns.sql 6、查看导入的表 MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | powerdns | | ultrax | | wordpress | +--------------------+ 7、配置Power DNS使用mariadb作为后台数据存储 [root@localhost ~]# vim /etc/pdns/pdns.conf 添加 #launch=bind aunch=gmysql gmysql-host=localhost gmysql-port=3306 gmysql-dbname=powerdns gmysql-user=powerdns gmysql-password=123456 8、启动服务 [root@localhost ~]# systemctl start pdns [root@localhost ~]# systemctl enable pdns 9、安装httpd和php相关包 [root@localhost ~]# yum -y install httpd php php-devel php-gd php-mcrypt php-imap phpldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-mbstring phpmcrypt php-mhash gettext [root@localhost ~]# systemctl start httpd [root@localhost ~]# systemctl enable httpd 10、下载poweradmin程序,并解压缩到相应目录 [root@localhost html]# tar xvf poweradmin-2.1.7.tgz [root@localhost html]# mv poweradmin-2.1.7 poweradmin 11、浏览器访问,安装 http://192.168.2.26/poweradmin/install/ 12、安装完成删除 [root@localhost html]# rm -rf /var/www/html/poweradmin/install/
源码编译xcache:
1、解压 [root@localhost ~]# tar xvf xcache-3.2.0.tar.gz 2、编译 [root@localhost xcache-3.2.0]# phpize --clean && phpize [root@localhost xcache-3.2.0]# ./configure --enable-xcache [root@localhost xcache-3.2.0]# make && make install 3、编译完成,会在/root/生成xcache.so模块 Libraries have been installed in: /root/xcache-3.2.0/modules 4、将xcache.so模块copy到php位置 [root@localhost xcache-3.2.0]# cp /root/xcache-3.2.0/modules/xcache.so /usr/lib64/php/modules/ 5、调用xcache.so模块的ini文件 [root@localhost xcache-3.2.0]# cp /root/xcache-3.2.0/xcache.ini /etc/php.d/ 6、测试查看加速效果 [root@localhost xcache-3.2.0]# ab -c 10 -n 100 http://192.168.2.26/wordpress/
相关文章推荐
- LAMP应用架构部署指南IV--MySQL安装及设置
- centos7安装lamp并部署应用phpMyadmin和wordpress和Discuz个人论坛
- 构建LAMP网站应用系统
- LAMP环境搭建以及应用之RPM包安装
- 实现lamp docker数据容器(mysql)与应用容器(apache+php)独立运行
- 基于LAMP架构部署web应用系统
- Web服务(Apache、Nginx、Tomcat、Jetty)与应用(LAMP、CMS-WordPress&Ghost、Jenkins、Gitlab)
- Centos6.9实现基于源码编译安装LAMP(FPM模块方式)的wordpress应用
- centos7基于源码编译安装LAMP的wordpress应用的实现
- LAMP基于FastCGI分离部署应用
- LAMP平台部署及应用(2)――部署phpMyAdmin系统
- RHEL 5服务篇—LAMP平台的部署及应用
- Linux下Web服务器应用之基于LAMP构建phpwind论坛
- lamp环境搭建以及应用(rpm)
- rpm搭建LAMP及应用
- 企业应用---部署LAMP平台 + Discuz论坛【赠安装包】
- LAMP LAMP环境搭建【rpm】+ 实例应用
- 构建LAMP平台及应用系统
- 云平台快速部署与源码编译lamp应用wordpress
- CentOS7基于源码编译安装LAMP的wordpress应用的实现