![]() ![]() It’s an open-source web-solutions kit that provides Apache delivery for a variety of servers and command-line executables, as well as Apache api, MariaDB, PHP, and Perl modules. I don’t understand how to configure a default root password after a clean install, and simply access to my databases like a normal root admin.XAMPP is an acronym that stands for Cross-Platform, Apache, MySQL, PHP, and Perl, with the Ps standing for PHP and Perl, respectively. Looking on the internet led me to hazardous workarounds like starting the daemon with a –skip-grant-tables option, but this is not what I want because I can’t use queries like SET PASSWORD or ALTER TABLE as it’s considered dangerous. ![]() I followed all the steps but still blocking with the configuration of mysql as I’m unable to access it with the mysql-client package, nor phpmyadmin.Īfter starting the service with `sudo service mysql start` (which starts the daemon “mysqld”), I’m blocked with the configuration of `sudo mysql_secure_installation` which fails by a “Access denied for user after asking me a password that I have never configured. I’m having an issue with `mysql` as I can’t manage to log in with the client CLI as root, and even after a fresh and clean install. Here a few screenshots to give you a quick idea.Ĭategories How To Tags Apache, lamp, LAMP on Ubuntu, LAMP on ubuntu 20.04, LAMP on Windows 10 wsl, LAMP Stack Apache PHP MySQL, Linux Tutorial, tutorial, wsl, WSL 2, wsl windows When it asks you to configure the database, then follow the guided wizard. sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl If you want to manage your MySQL created database efficiently then also install the open-source PHPMyAdmin for easy web database management user interface. To check Apache is running perfectly, open your browser and type: Install PhpMyAdmin Secure and start MySQL: sudo usermod -d /var/lib/mysql/ mysql Once the installation is completed, start the Apache and MySQL service using the below commands: sudo service apache2 start The above command will show the packages are going to install for Apache, MySQL, and PHP, accept them and let the system install the same. Now, to install the Lamp server, we can use the below given single command on WSL Linux instead of issuing one by one for each service to get configured on the system. Furthermore, after the latest Windows update, now we can explore the Linux filesystem directly using the Windows explorer, even running of GUI applications on WSL 2 is possible.Īnother thing is WSL uses the Windows localhost or the same IP address which the system has, thus it easy to access the created webserver and web apps using the system browser, without much hassle.Īfter starting the program first time, it will be a good idea first we update its repo and packages, for that run the following two commands: sudo apt update As Windows Subsystem for Linux is tightly integrated into Windows 10 environment, thus the performance which we can get there will be much better than running some Linux VM. The biggest reason to run the LAMP server on WSL 2 rather than using Virtual Machine on VirtualBox or VMware Player is the performance. Why you should start using Apache web server or LAMP on WSL 2 instead of a Virtual machine? Of course, if you are already using XAMPP on Windows 10, then there is a provision to change the default ports of Apache, PHP, and MySQL or MariaDB so that the LAMP on WSL 2 and one on XAMP can run together without interfering in each other’s services. LAMP stack which is also known as a Linux web server stack to run various web apps, CMS such as WordPress and more. Therefore, here we are with a tutorial to learn how to install LAMP stack (Apache, MySQL, and PHP including PhpMyAdmin) on WSL 2. As we know the Windows Subsystem for Linux 2 has its own Linux Kernel which makes it run various kinds of open source programs efficiently.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |