![]() Now that you have set up WSL and installed Drupal 9, lets look at accessing your files from WSL. When you give data for the database form, make sure you gave a password for MySQL authentication.Go to and proceed with the Drupal installation.Create a new database for the Drupal installation.To make sure the installation is perfect, its a good idea to restart the system once before installing Drupal.$ sudo chown -R $ sudo chmod -R 755 /var/ Now lets update the Drupal folder permissions for Apache: $ composer create-project drupal/recommended-project drupal-9.4.9 Navigate to the /var/www/html directory and download the latest version of Drupal 9 with Composer. $ FLUSH PRIVILEGES Step 10: Install Drupal 9 Now go to your MySQL and flush the privileges. Make sure, you gave “No” for “Disallow root login remotely?” Provide values as you wish for each question. Next, run the below command to improve the security of your DB. Give password and login to the MySQL server. $ ALTER USER IDENTIFIED WITH mysql_native_password BY '*********' Īfter you altered the password, you have to log in to MySQL by running the following: $ sudo apt install -y mysql-server mysql-client Go to /etc/apache2/nf file, edit as "Allowoverride All" for /var/www/ directory, and restart apache. To activate clean URL’s, use this command: $ sudo a2enmod rewrite ![]() $ sudo service apache2 restart Step 8: Activate clean URL's Go to /etc/php/8.1/apache2/php.ini file and uncomment "extension=pdo_mysql.so" line.Please follow the below commands: $ sudo apt-get install php8.1-mysql Next, you have to enable PDO (PHP Data Objects) support. Now go to (or) on your browser and make sure Apache is installed successfully. If you have wamp or xampp on your Windows machine, make sure you change the port number from Listen 80 to Listen 8080 in this file (/etc/apache2/nf). Next, type composer to make sure you installed it successfully.įollow the below commands to install Apache: $ sudo apt update & sudo apt -y upgrade To make working with Composer easier, run the following command to move Composer into your global path: $ sudo mv composer.phar /usr/local/bin/composer $ sudo php -r "unlink('composer-setup.php') " Use these commands to install composer on Ubuntu: $ sudo php -r "copy('', 'composer-setup.php') " Now run “php -v” to confirm if the installation has been done successfully. Php-xml php8.1-gd libapache2-mod-php8.1 php8.1-mbstring $ sudo apt-get install -y git php8.1 php8.1-curl php8.1-xml Run the below commands to install PHP and the required extensions for Drupal. You can choose your own username and password here. When you initialize it, it will ask you to create a username and a password. Go to the Microsoft store and look for Linux. Let’s take one step at a time Step 1: Install WSLīefore installing WSL, we need to make sure that WSL is enabled in the Windows Features: “Turn windows feature on/off”, as shown in the screenshot below. You don’t need to maintain both Links and Windows build scripts while you leverage Linux workspaces.You don’t need a separate virtual machine or dual booting. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |