AWS 下 Ubuntu 安装最新XAMPP 实操

来源:互联网 发布:npm 淘宝镜像安装失败 编辑:程序博客网 时间:2024/05/12 00:18

原创. 转载请注明作者和出处。

一.安装前检查更新

> $ sudo apt-get update

二.使用命令行下载文件
首先安装axel这个命令

sudo apt-get install axel

然后使用这个命令下载文件

axel  http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.8/xampp-linux-x64-5.6.8-0-installer.run

就会自动下载文件了

三.安装XAMPP:

su

chmod 755 xampp-linux-x64-5.6.8-0-installer.run

>  ./xampp-linux-x64-5.6.8-0-installer.run

安装成功

安装成功!

四.启动

sudo -s
cd /opt/lampp
./lampp start

启动成功

启动成功!

五.安全设置:

XAMPP默认安装之后是很不安全的,普通用户不用任何密码就可以访问其Web管理页面,修改数据库。 下面是XAMPP安装后的一些软件的默认用户名及密码:MySQL的超级用户是root,无密码;允许通过网络访问MySQL数据库;ProFTPD 用户为daemon,密码为lampp;允许通过网络访问XAMPP管理页面,用户是lampp,无密码。

安全设置,命令:

/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]
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Password protection active. Please use ‘lampp’ as user name!
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that’s not recommended. Do you want me to turn it off? [yes]
XAMPP: Turned off.
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes]
XAMPP: Password:
XAMPP: Password (again):
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [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 is still set to ‘lampp’.
XAMPP: Do you want to change the password? [yes]
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD…
XAMPP: Done.

“Your XAMPP pages are NOT secured by a password.”-为XAMPP页面设置密码;
“MySQL is accessable via network.”-指设置是否允许通过网络访问MySQL数据库,为了网站数据的安全需要将其设为no
MySQL has no root passwort set!!!”指MySQL的超级用户root没有设置密码,设密码;
“The FTP password is still set to 'lampp'.”指FTP 当前密码为lampp,改密码。 

安全配置

安全配置Done!

0 0
原创粉丝点击