9/22/2023 0 Comments Apache php mysqlWampServer Official Site Selection of WampServer 2.1 a Let’s open the official web page WampServer. I love WampServer, it makes my and lot of other developer’s life so easy for the installation of PHP and other necessary applications professionally on their computers. Let’s start from scratch to build PHP environment on windows 7 by using WampServer 2.1a. We will end up to the following applications at the tail of this tutorial, I will install wamp server on windows 7 environment which will ultimately leads to the configurations and installation of Apache, PHP, MySql and phpMyAdmin. Sudo unzip 4.1.php7.2.PHP is a powerful web scripting language and it is very essential to install php at your computer for testing your php scripts and learning the tutorials of php listed under php school by TutorialChip. Once Apache, PHP and MySQL have been provisioned in Ubuntu 18.0.4, you could just go to download source code of ZenTaoand unzip it to your webroot sudo wget Since the apache default vhost is /var/www/html on Ubuntu 18.04, so just unzip it there PHP 7.2 has now MySQL / MariaDB support as shown in phpinfo() above. Pick the ones you need and install them like this:Īpt-get -y install php7.2-mysql php7.2-curl php7.2-gd php7.2-intl php-pear php-imagick php7.2-imap php-memcache php7.2-pspell php7.2-recode php7.2-sqlite3 php7.2-tidy php7.2-xmlrpc php7.2-xsl php7.2-mbstring php-gettext You can search for available PHP modules like this: apt-cache search php7.2Īs not all PHP packages have the version number 7.2 in their name. It's a good idea to install some other PHP modules as well as you might need them for your applications. To get MySQL support in PHP, we can install the php7.2-mysql package. MySQL is not listed there which means we don't have MySQL / MariaDB support in PHP yet. If you scroll further down, you will see all modules that are already enabled in PHP. ):Īs you see, PHP 7.2 is working, and it's working through the Apache 2.0 Handler, as shown in the Server API line. Then change the owner of the info.php file to the Now we call that file in a browser (e.g. The file will display lots of useful details about our PHP installation, such as the installed PHP version. ![]() The document root of the default web site is /var/in that directory and call it in a browser. Test PHP and get details about your PHP installation We can install PHP 7.2 and the Apache PHP module as follows:Īpt-get -y install php7.2 libapache2-mod-php7.2 The document root of the apache default vhost is /var/The configuration system is fully documented in /usr/share/doc/apache2/. Now direct your browser to, and you should see the Apache2 default page (It works!): ![]() To leave the MySQL/MariaDB shell, enter the command "quit" and press enter.Īpache 2 is available as an Ubuntu package, therefore we can install it like this: The result should be similar to the screenshot below: Test the login to MariaDB with the "mysql command"Īnd enter the MariaDB root password that you've set above. Reload privilege tables now? <- y 1.2 Test the MySQL/MariaDB root login Re-enter new password: <- Repeat the passwordĭisallow root login remotely? <- y ![]() New password: <- Enter the new MariaDB root password here Run the following command to install MariaDB-server and client:Īpt-get -y install mariadb-server mariadb-clientĮnter current password for root (enter for none): <- press enter Installing MySQL or MariaDB Database ( The following example will be an installation of MariaDB 10 ) 1.1 Install MariaDB 10 I'm running all the steps in this tutorial with root privileges, so logged in as root: sudo -s 1. How to install Apache, PHP 7.2, and MySQL on Ubuntu 18.04 (LTS) How to install Apache, PHP 7.2, and MySQL on Ubuntu 18.04 (LTS) 21:23:05 Troy Original 13710 Summary : This tutorial explains how to provision a basic web service package, e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |