in Linux

AWS Ubuntu Lampp + wordpress install

Started a new AWS Ubuntu Server 14.04 LTS (HVM), installed Lampp and WordPress by install command, this time is much easier because I have done it on AWS RHEL7.

1, install Lampp, the installed directory is /opt/lampp
sudo chmod 755 xampp-linux-x64-5.6.21-0-installer.run
sudo ./xampp-linux-x64-5.6.21-0-installer.run

2, start the Lampp
ubuntu@ip-172-31-23-55:~$ sudo /opt/lampp/lampp status
Version: XAMPP for Linux 5.6.21-0
Apache is running.
MySQL is running.
ProFTPD is running.

3, set the security group for the inbound and outbound network traffic, allow HTTP(80) and HTTPS(443)

4, test the lampp is running properly by the web browser with successful result,
http://52.77.215.251/

5, install the wordpress, the installation file is “bitnami-wordpress-4.5.2-0-module-linux-x64-installer.run”
The installation folder as: /opt/lampp/apps/wordpress/
sudo chmod 755 bitnami-wordpress-4.5.2-0-module-linux-x64-installer.run
sudo ./xampp-linux-x64-5.6.21-0-installer.run

The screen interactive is as below,

ubuntu@ip-172-31-23-55:~$ sudo ./bitnami-wordpress-4.5.2-0-module-linux-x64-installer.run
Language Selection
Please select the installation language
[1] English – English
[2] Spanish – Espanol
[3] Brazilian Portuguese – Portugues Brasileiro
[4] Simplified Chinese – ?蔨いゅ
[5] Korean – ???
[6] Hebrew – ?????
[7] German – Deutsch
[8] Romanian – Roman?
[9] Russian – ???????
Please choose an option [1] : 1
—————————————————————————-
Welcome to the Bitnami WordPress Module Setup Wizard.
—————————————————————————-
Installation folder
Please choose a folder that contains an installation of Bitnami or XAMPP.
Select a folder [/opt/lampp]: y
Note: This module requires a pre-existing installation of Bitnami or a
Bitnami-compatible stack like XAMPP. Please select the previous platform
installation. For example: /opt/bitnami or /opt/lampp
Warning: That folder does not seem to contain a valid installation of Bitnami,
the properties.ini file is missing. Please specify a valid Bitnami directory or
download the Bitnami platform from bitnami.com.
Press [Enter] to continue:
—————————————————————————-
Installation folder
Please choose a folder that contains an installation of Bitnami or XAMPP.
Select a folder [/home/ubuntu/y]: /opt/lampp
Note: This module requires a pre-existing installation of Bitnami or a
Bitnami-compatible stack like XAMPP. Please select the previous platform
installation. For example: /opt/bitnami or /opt/lampp
—————————————————————————-
Create Admin account
Login [user]: (deleted the content here)
Your real name [User Name]: XIONG HUILIN
Email Address [user@example.com]: (deleted the content here)
Enter the application password :
Retype password :
—————————————————————————-
WordPress
Please configure WordPress installation
Blog name [admin’s Blog!]: Scruffybear’s Blog
Do you want to configure mail support? [y/N]: y
—————————————————————————-
Configure SMTP Settings
This is required so your application can send notifications via email.
Default email provider:
[1] GMail
[2] Custom
Please choose an option [1] : 1
—————————————————————————-
Configure SMTP Settings
This data is stored in the application configuration files and may be visible to
others. For this reason, it is recommended that you do not use your personal
account credentials.
GMail address []: (deleted the content here)
GMail password :
Re-enter :
—————————————————————————-
Installation type
Please select the use of this Stack
[1] Development Settings: Enables changes to file permissions and configuration settings that make it easy to install plugins, themes and updates for certain applications, but that are not optimal from a security standpoint. Recommended if you are using this stack for development purposes or within your company.
[2] Production settings: File permissions and configuration settings will be set with security and performance in mind. Installing certain plugins, themes and updates may require manual changes or installing additional services like FTP. Recommended if this stack will be deployed on a public server.
Please choose an option [2] : 1
—————————————————————————-
Setup is now ready to begin installing Bitnami WordPress Module on your
computer.
Do you want to continue? [Y/n]: y
—————————————————————————-
Please wait while Setup installs Bitnami WordPress Module on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
—————————————————————————-
Setup has finished installing Bitnami WordPress Module on your computer.
Launch Bitnami WordPress Module [Y/n]: Y

6, setup the lampp security
The interactive screen is as below,
ubuntu@ip-172-31-23-55:/opt/lampp$ sudo /opt/lampp/lampp security
XAMPP: Quick security check…
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
/opt/lampp/share/xampp/checkapache: line 41: /opt/lampp/htdocs/xampp/.htaccess: No such file or directory
cp: cannot stat ˉ/opt/lampp/htdocs/xampp/.htaccessˇ: No such file or directory
cp: cannot stat ˉ/opt/lampp/htdocs/xampp/.htaccessˇ: No such file or directory
chmod: cannot access ˉ/opt/lampp/htdocs/xampp/.htaccessˇ: No such file or directory
chmod: cannot access ˉ/opt/lampp/htdocs/webalizer/.htaccessˇ: No such file or directory
chmod: cannot access ˉ/opt/lampp/phpmyadmin/.htaccessˇ: No such file or directory
XAMPP: Password protection active. Please use ‘xampp’ as user name!
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that’s not recommended. Do you want me to turn it off? [yes] n
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin’s pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the password somewhere down to make sure you won’t forget it!!!
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin’s authentication method.
XAMPP: The FTP password for user ‘daemon’ is still set to ‘xampp’.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD…ok.
XAMPP: Done.

7, change the phpmyadmin access from local to external
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
# Require local
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

8, import the mysql DB
access the phpmyadmin webpage and import the wordpress mysql DB, which I have done the same thing before, can reference to this link

Test the result by access the wordpress,

http://52.77.215.251/wordpress/

Reference link:
1, https://www.apachefriends.org/faq_linux.html
2, https://bitnami.com/stack/xampp#wordpress
3, AWS RHEL7 LAMPP setup and wordpress move
4, Bitnami for XAMPP

Write a Comment

Comment

sixteen − two =