AWS RHEL7 LAMPP setup and wordpress move

7 篇文章 0 订阅
5 篇文章 0 订阅

Setup the lampp on the AWS RHEL7, and tried to move the blog xionghuilin.com to AWS, procedure as below,
1, install lampp on AWS RHEL7
chmod 755 xampp-linux-*-installer.run
sudo ./xampp-linux-*-installer.run

Start the lampp:
/opt/lampp/lampp start

2, setup security:
/opt/lampp/lampp security
this operation will setup username / password to protect the phpmyadmin.

3, setup the Mysql root password.
mysqladmin --user=root password "newpassword"

4, access the phpMyAdmin from the outside
in file /opt/lampp/etc/extra/httpd-xampp.conf
and line:
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
remove phpmyadmin, restart the lampp, after this operation, you can access from external network by input the username / password set earlier (command /opt/lampp/lampp security).

Remember to change / phpmyadmin / config.inc.php, the root password to mysql root password set earlier.

5, import the mysql DB through phpmyadmin.
First export the DB from xionghuilin.com, then import through phpmyadmin, can refer to this link for detail,
http://xionghuilin.com/?p=36

6, download xionghuilin.com PHP source code and upload to AWS RHEL7, and configure the httpd-xampp.conf file.
emacs /opt/lampp/etc/extra/httpd-xampp.conf
added the directory description,
<directory "here add your intended upload location">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</directory>

remember to change username/password in the wp-config.php, detail refer to http://xionghuilin.com/?p=36

7, test the result with success,
http://54.169.139.195/Blog-XiongHuilin/

reference:

https://www.apachefriends.org/faq_linux.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值