![]() Once the testing phase is complete then the website / application is transferred to the production server. Additionally, XAMPP Server provides website developers a much needed web development environment for testing their websites and application tools. In fact, it is one of the most popular localized LAMP Servers especially among the PHP website developers. However, the XAMPP server package includes Apache web server, MariaDB database server, PHP (a server side scripting language), and Perl programming language. In addition to above, XAMPP Server is a cross platform package and it is available for Windows, Linux and MacOS. Moreover, it is an open source and free package developed by Apache Friends. In fact, XAMPP Server is developed as a local server for testing of web applications on local system or local host. However, you can also follow this tutorial if you want to install XAMPP Server on Ubuntu 18.04, Debian 11 / Debian 10 or any other similar Linux distributions.Īs we know that XAMPP is an abbreviation for cross-platform (X), Apache (A) server, MariaDB (M), PHP (P) and Perl (P). To manage MySQL databases, for example, to create new databases we recommend to install phpMyAdmin.In this tutorial we will learn how to download and install XAMPP Server on Ubuntu 20.04 LTS. 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 |