Web Server Ubuntu 22.04 + LAMPP + WordPress important procedure

1. Set root account password.

sudo passwd root

2. Enable root account.

sudo nano /etc/ssh/sshd_config

Edit lines:

#PermitRootLogin prohibit-password
PermitRootLogin yes

Restart SSHD service

service sshd restart

3. Logout and login as root

4. Download XAMPP.

5. Set permission and install XAMPP. Follow on-screen instructions.

chmod 755 xampp-linux-*-installer.run
./xampp-linux-*-installer.run

6. Enable phpMyAdmin access.

Edit httpd-xampp.conf file at "/opt/lampp/phpmyadmin"

nano /opt/lampp/etc/extra/httpd-xampp.conf

Add line:

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Require all granted
    Allow from all
</Directory>

7. Enter phpMyAdmin, in SQL tab:

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('your_root_password');

8. Enable phpMyAdmin password login:

nano /opt/lampp/phpmyadmin/config.inc.php

Edit:

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

9. Create wordpress DB.

10. LAMPP autostart

nano /etc/systemd/system/xampp.service

Type:

[Unit]
Description=XAMPP

[Service]
ExecStart=/opt/lampp/lampp start
ExecStop=/opt/lampp/lampp stop
Type=forking

[Install]
WantedBy=multi-user.target
systemctl enable xampp.service
systemctl status xampp.service

Author

Leave a Reply

Your email address will not be published. Required fields are marked *