您的位置:首页 > 运维架构 > Linux

AWS RHEL7 LAMPP setup and wordpress move

2016-05-10 13:43 405 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  aws lampp linux wordpress mysql