11/11/2023 0 Comments Install xampp on ubuntu server 20.04![]() This window has 7 tabs, through which we will be able to configure the different aspects of this tool.Wine allows us to simulate all versions of Windows. We click on the "Install" button of all of them so that the wizard takes care of downloading and copying everything necessary, and when the process is finished, and everything is ready on our PC, we will see the Wine configuration window. We wait until it finishes, or until we see a window asking for permission to install dependencies. You will see a window indicating that the program is being configured. We must first install Wine which allows us to translate windows applications to linux Sudo /opt/lampp/manager-linux-圆4.run //to access control panel Sudo /opt/lampp/lampp restart //to restart the service Sudo /opt/lampp/lampp/lampp stop //to stop it Sudo /opt/lampp/lampp/lampp start //to start the service Sudo ~/ $ chmod 755 xampp-linux-*nĬlick next next next next until the installation begins home/your-user/ to its location and from the console we give permissions. Wget -r (you can choose your preferred version) To manage MySQL databases, for example, to create new databases we recommend to install phpMyAdmin.Hello everyone for those who are using any linux distro in this case ubuntu 20.04 there are certain installations to be done Save changes and reload the web server sudo service apache2 restart Options Indexes FollowSymLinks MultiViews sudo service apache2 restartĮdit this file /etc/apache2/sites-available/nfĪnd add the following code to the middle of the VirtualHost node: ![]() Save changes and reload the webserver once again. Open the /etc/php/8.2/apache2/php.ini file for editing: sudo gedit /etc/php/8.2/apache2/php.iniįind the following string memory_limit = 128M Increase the memory limit (RAM) that is allowed for PHP.īy default, this value is 128 MB, which is insufficient to work e.g. Run the following command: chown -R your_user: your_group /var/www/htmlĨ. The goal is to give your user complete control over that folder. Change the owner of the web directory.Ī web directory is a folder where your web application, such as Magento 2, is located. Usually, the names of the user and the group are the same. Where your_user - the name of your Ubuntu user (the one you want to edit files with), and your_group - group this user belongs to. sudo gedit /etc/apache2/envvarsįind these strings there: export APACHE_RUN_USER=www-dataĪnd replace them with: export APACHE_RUN_USER= your_user Change the user based on which the webserver will run.įor this edit the following file /etc/apache2/envvars. sudo a2enmod php8.2įollow the link and check if your local web server is working: (alternative If everything is correct, the following page will open:Ħ. Enable the apache mods to work with php8, rewrite, and restart the webserver. Sudo apt install php8.2 libapache2-mod-php8.2 php8.2-curl php8.2-intl php8.2-zip php8.2-soap php8.2-xml php8.2-gd php8.2-mbstring php8.2-bcmath php8.2-common php8.2-xml php8.2-mysqliĥ. sudo apt-get install software-properties-common Install php8.2 and all necessary PHP libraries to work with Apache 2 and modern platforms, like Magento 2. GRANT ALL PRIVILEGES ON *.* TO WITH GRANT OPTION Ĥ. sudo apt install mysql-serverĪfter the MySQL database server was installed, run the following command: mysql -urootĪlso, enter these commands, one by one, to create a new user: CREATE USER ' IDENTIFIED BY ' ' ![]() You do not have to use sudo while in superuser mode.Ģ. * In the examples, the commands that must be executed by the superuser beginning with the word sudo. Update the available package information. Take the following steps to install the web server:ġ. ![]() Run the following command: sudo suĪnd enter the password to your account, if required. Once you are on a proper instance in the terminal enter super user mode (root or sudo user). If you don't want to set up a local webserver, then you need to connect to your server via SSH. You can open it with Ctrl + Alt + T combination. To start, go to the CLI (command-line user interface). Here are instructions for setting up a web server ( LAMP = Linux + Apache + MySql + PHP) on OS Ubuntu 20.04, in connection with: Apache 2 If you want to set up a web server and look for some tips, this article is for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |