3/20/2023 0 Comments Ubuntu install phpmyadmin apache2![]() ![]() This ensures people reach the right site instead of the default one when they type in. Hence, we can install phpmyadmin by just running the command: apt-get install phpmyadmin. PhpMyAdmin is available on our default Ubuntu 18.04 repository. The default file doesn’t come with a ServerName directive so we’ll have to add and define it by adding this line below the last directive: ServerName Now, you can proceed with your PhpMyAdmin installation. We should have our email in ServerAdmin so users can reach you in case Apache experiences any error: ServerAdmin also want the DocumentRoot directive to point to the directory our site files are hosted on: DocumentRoot /var/www/gci/ Now edit the configuration file: sudo nano gci.conf ( gci.conf is used here to match our subdomain name): sudo cp nf gci.conf Since Apache came with a default VirtualHost file, let’s use that as a base. We start this step by going into the configuration files directory: cd /etc/apache2/sites-available/ Chn apache2 bng cách gõ Khong Trng và ri nhn Tab và Enter tip tc. Trong quá trình cài, bn s b hi web server. Setting up the VirtualHost Configuration File sudo apt-get install phpmyadmin php-mbstring php-gettext y. Now let’s create a VirtualHost file so it’ll show up when we type in. I'm running this website on an Ubuntu Server server! Paste the following code in the index.html file: Let’s go into our newly created directory and create one by typing: cd /var/www/gci/ Now that we have a directory created for our site, lets have an HTML file in it. As your non-root sudo user, update your server’s package index: sudo apt update Following that you can install the phpmyadmin package. We have it named gci here but any name will work, as long as we point to it in the virtual hosts configuration file later. Step 1 Installing phpMyAdmin You can use APT to install phpMyAdmin from the default Ubuntu repositories. Read Also: Install Apache, MariaDB, PHP and PhpMyAdmin in Ubuntu 18.04. So let’s start by creating a folder for our new website in /var/www/ by running sudo mkdir /var/www/gci/ A LAMP stack is composed of packages such as Apache, MySQL/MariaDB and PHP installed on a Linux system environment for hosting websites and apps. Today, we’re going to leave the default Apache virtual host configuration pointing to and set up our own at. We can modify its content in /var/We can modify how Apache handles incoming requests and have multiple sites running on the same server by editing its Virtual Hosts file. Creating Your Own Websiteīy default, Apache comes with a basic site (the one that we saw in the previous step) enabled. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |