Phpmyadmin ubuntu 18.04 nginx4/6/2023 Install the MySQL server by using the Ubuntu package manager: sudo apt-get update ├─2369 nginx: master process /usr/sbin/nginx -g daemon on master_process on Īccess the default Nginx landing page to confirm that the software is running properly through your IP address: You should see the default Nginx landing page: Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Fri 16:08:19 UTC 3 days ago rvice - A high performance web server and a reverse proxy server.Step 3 – Checking your Web ServerĬheck with the systemd init system to make sure the service is running by typing: sudo systemctl status nginx # Output If you can login or ssh successfully then everything is working fine, you can proceed further otherwise follow the above commands once again slowly. Now do not close your terminal and try to login or ssh to your server. Nginx HTTP (v6) ALLOW Anywhere (v6) ** Make sure you have OpenSSh allow in the output.If not then, run command sudo ufw allow OpenSSH and check sudo ufw status for OpenSSH to allow in action. Run the sudo ufw status command to see the rules that are set. Respond to the prompt with y and hit ENTER. We already set up a firewall rule that allows SSH connections, so it should be fine to continue. You will receive a warning that says the command may disrupt existing SSH connections. To enable UFW, use this command: sudo ufw enable Let's enable the most restrictive profile that will still allow the traffic you've configured, permitting traffic on port 80: sudo ufw allow 'Nginx Full' Enabling UFW Sudo apt install ufw Allowing SSH Connections sudo ufw allow OpenSSH Install Nginx: sudo apt-get install nginx Step 2 – Adjusting the Firewall Install firewall sudo apt-get update Update your local package index: sudo apt-get update We will install the packages in the following orderīecause Nginx is available in Ubuntu's default repositories, you can install it using the apt packaging system. LEMP stack contains Linux, Nginx, MySQL, and PHP. We will install PHPMyAdmin on LEMP stack. To have access to all the commands required, I am writing this post. Location ~* ^.+.Installing PHPMyAdmin sometimes become painful. # Images and static content is treated differently Here I am running phpMyAdmin on port number 81.Īccess_log /var/log/nginx/phpmyadmin_access.log Įrror_log /var/log/nginx/phpmyadmin_error.log Create phpMyAdmin Nginx configuration file and And paste below contents to the nf file: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name ![]() Enable PHP-FPM service on Port netstat -tuplnĪctive Internet connections (only servers) VqNjq4CPFh4rJUctDwwc80zqY01IpMv8c+yDLc/P8aw=Įdit the file / var/sudo vim /var/find the line and Enter the secret passphrase: $cfg = ‘ your-key‘ /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */Īlso, scroll down to the same file end and add below line. ![]() Sudo cp /var//var/Create tmp directory in phpmyadmin folder sudo mkdir -p /var/www/html/phpmyadmin/tmp Now move phpmyadmin folder under the /var/www/html/. Mv phpMyAdmin-5.2.0-all-languages phpmyadmin Now extract downloaded Archive with unzip command below You can check the release of phpMyAdmin from the downloads page. ĭownload latest version of phpMyAdmin with wget command. Sudo apt install mariadb-server # MariaDB Server Install MySql/MariaDB Database Server (Optional) sudo apt install mysql-server # MySql Server ![]() Sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl php7.4-json php7.4-fpm Sudo apt-get install software-properties-common Install PHP on Ubuntu 22.04 LTS Jammy Jellyfish.īefore moving forward we need to first install PHP and its module on our Ubuntu system, because PhpMyAdmin is written in PHP.Ĭlick here to get all PHP 7.0, 7.1, 7.2, 7.3, 7.4, 8.0 & 8.1 commands with all module or extensions. How to Install LAMP Apache, MySQL, PHP in Ubuntu 22.04
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |