in Linux, PHP

AWS RHEL7 LAMPP setup and wordpress move

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

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 /, the root password to mysql root password set earlier.

5, import the mysql DB through phpmyadmin.
First export the DB from, then import through phpmyadmin, can refer to this link for detail,

6, download 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

remember to change username/password in the wp-config.php, detail refer to

7, test the result with success,


Write a Comment