Sunteți pe pagina 1din 2

XAMPP Instullation

1- Download the complete package from


https://www.apachefriends.org/download.html

2- [root@localhost ~]# cd Downloads/


[root@localhost Downloads]# ls
xampp-linux-x64-7.1.1-0-installer.run
3- Once the file is moved, set executable permission for installer script by
using the following command.

[root@localhost Downloads]# chmod +x xampp-linux-x64-7.1.1-0-installer.run

4- Now is the time to run the script file to install XAMPP. The installation will
start

[root@localhost Downloads]# ./xampp-linux-x64-7.1.1-0-installer.run

>> complete installation wizard

5- To check the current status of XAMPP services


[root@localhost Downloads]#/opt/lampp/xampp status
Version: XAMPP for Linux 5.6.31-0
Apache is running.
MySQL is notrunning.
ProFTPD is notrunning.

6- to start all lampp services


[root@localhost Downloads]#/opt/lampp/lampp start

Starting XAMPP for Linux 5.6.31-0...


XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...fail.
Contents of "/opt/lampp/var/proftpd/start.err":
ecc-web01 proftpd[41224]: warning: unable to determine IP address of 'ecc-web01'
ecc-web01 proftpd[41224]: error: no valid servers configured
ecc-web01 proftpd[41224]: Fatal: error processing configuration file
'/opt/lampp/etc/proftpd.conf'

7- to start proftpd you must edit /etc/hosts and add "server ip and hostname"
#vim /etc/hosts
10.10.10.10 "server-hostname"

8- start lampp again


[root@localhost Downloads]#/opt/lampp/lampp start
Starting XAMPP for Linux 5.6.31-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...ok.

9- to secure mysql
#/opt/lampp/bin/mysql_secure_installation

Enter current password for root (enter for none):


>>>press Enter

Set root password? [Y/n] Y


New password:
Re-enter new password:
Password updated successfully!

Remove anonymous users? [Y/n] n

Disallow root login remotely? [Y/n] Y

Remove test database and access to it? [Y/n] Y

Reload privilege tables now? [Y/n] Y

Cleaning up...

All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.

#ftpasswd --passwd --name=user_name --home=/default/user/folder --shell=/bin/bash


--uid=500 --gid=500

#ftpasswd --delete-user --passwd --name=user_name

\\\\\Refrences :

https://www.linuxhelp.com/how-to-install-xampp-on-centos-7/

https://digitz.org/blog/how-to-setup-xampp-lamp-in-centos-7/

S-ar putea să vă placă și