Aug 31, 2023

Ubuntu Server 22.0 (Basic & Setup)

 When starting installation Ubuntu Server, there are many item should be considered.

-  Check ifconfig and "apt install net-tools"

_______________________________________________

Login as root

passwd root

______________________________________________

ssh root


-  Install SSH, but you don't need Install SHH because in Ubuntu 22.0 was installed automatically.  "apt install openssh-server"
        - To check status SSH "systemctl status ssh"
        - ufw allow ssh
        - type "ssh-keygen"

     
            - type "service ssh restart"
            test ssh for root "ssh root@localhost"
- Install  PHP, before you try to install PHP, you need know what is version of PHP do you need !!!!
            - apt search php | grep php
            - edit file sshd_config at location folder /etc/ssh/sshd_config using Nano or Vim.
                        - PermitRootLogin yes
                        - PubkeyAuthentication yes (this optional)
            - service ssh restart
            - service sshd restart

- Install Apache "apt install apache2"