![]() ![]() Run the following commands SEPARATELY with your own values inserted into the spots that say username and password to add your own user account. ![]() Since you can't login with your root user account, we need to create a new account. You may notice you cannot login with your root user. Primero, supondremos que está usando un usuario no root con privilegios sudo, como se describe en los pasos 1 a 4 de la configuración inicial del servidor de Ubuntu 16.04. You can visit your server's IP in a web browser now and add /phpmyadmin to see phpmyadmin. Now you can run sudo service nginx reload to "gracefully" restart Nginx. Index index.html index.htm index.php įastcgi_pass unix:/run/php/ Sudo bash -c 'cat > /etc/nginx/sites-enabled/default <<EOF I have to show how to install Laravel on your ubuntu 16.04 with mysql and phpmyadmin for database configuration. Note: the command that starts with sudo bash -c is a whole multi line command until it sayd EOF' at the end. Run the following commands to delete your existing Nginx config and then replace it with a new one. sudo ln -s /usr/share/phpmyadmin /var/www/html Nginx configīefore you'll be able to visit this in a web browser, we need to configure the web server Nginx to route that to phpmyadmin. Run the command below to create a symbolic link of the directories. Now, we need to link the directory that phpmyadmin installs to so we can use it in nginx. Click yes and proceed to enter your mysql root password. Next, it'll ask to configure the database automatically. (Use the tab and enter keys to navigate this menu) When it pops up and asks for the webserver, don't select anything. Now that we have nginx, the web server installed and mysql installed, we can proceed with the installation of phpmyadmin. sudo apt install php-fpm -y Installing phpmyadmin Now you can run the command below to install the php plugins for nginx and mysql. Then, after you enter that command, type quit to exit. ![]() ALTER USER IDENTIFIED BY 'Newpassword123' After the installation is completed, start the Nginx service and enable it to launch every time at system boot. Replace newpassword with your new root password. Update all repositories on the Ubuntu system and install Nginx packages using the apt command below. Use the syntax below to set the password for your root user. Now you can run the following command to get logged into the database to the root user without using a password. The command to download mysql-server is below. This is the backend database we are going to use for phpmyadmin to run off of. Now that Nginx is running, you can proceed to install MySQL. (You can find that by running the command: ip a Installing MySQL You can make sure Nginx is running by going to the IP address of your Ubuntu server. Sudo apt install nginx -y Test out the Nginx installation You can do this in the following two commands: sudo apt update Installing Nginxīefore you do anything, update your packages and then install Nginx. This guide is assuming you have a fresh installation of Ubuntu 22.04. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |