AWS RHEL7 LAMPP setup and wordpress move

来源:互联网 发布:家用网络硬盘存储器 编辑:程序博客网 时间:2024/06/06 14:24

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

0 0