AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Apache2 php mariadb phpmyadmin ubuntu3/22/2023 PhpMyAdmin is a web interface through which you can manage your MySQL databases. The closed “Green Lock” in front of the URL in the browser shows that the connection is encrypted. To get rid of the SSL warning, replace the self-signed SSL certificate /etc/ssl/certs/ssl-cert-snakeoil.pem with an officially signed SSL certificate from an SSL Authority. After accepting the warning, you will see the apache default page. You will receive an SSL warning as the SSL certificate of the server is a “self-signed” SSL certificate, this means that the browser does not trust this certificate by default and you have to accept the security warning first. Now test the SSL connection by opening in a web browser. Then restart apache to enable the new configuration: Which enables the ssl module and adds a symlink in the /etc/apache2/sites-enabled folder to the file /etc/apache2/sites-available/nf to include it into the active apache configuration. Execute the following commands on your server to enable support. SSL/ TLS is a security layer to encrypt the connection between the web browser and your server. Rm -f /var/www/html/info.php Enable the SSL website in apache Run the following command to delete the file. Please don’t forget to delete the info.php file when you don’t need it anymore as it provides sensitive details of your server. You should now find lots of new modules there: Now reload in your browser and scroll down to the modules section again. It is strongly recommended to have an Opcache installed to speed up your PHP page. Install the APCu PHP cache to speed up PHPĪPCu is a free PHP opcode cacher for caching and optimizing PHP intermediate code. PHP 7 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.0-mysql php7.0-curl php7.0-gd php7.0-intl php-pear php-imagick php7.0-imap php7.0-mcrypt php-memcache php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-mbstring php-gettext You can search for available PHP modules like this: 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.0-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 PHP5. ):Īs you see, PHP 7.0 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. 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): MariaDB is compatible with MySQL and provides interesting new features and speed improvements when compared to MySQL. MariaDB is a MySQL fork maintained by the original MySQL developer Monty Widenius. We will install MariaDB instead of MySQL. I’m running all the steps in this tutorial with root privileges, so make sure you’re logged in as root: I recommend to use a minimal Ubuntu server setup as basis for the tutorial, that can be a virtual- or root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch. These settings might differ for you, so you have to replace them where appropriate. In this tutorial, I will use the hostname with the IP address 192.168.1.100. A LAMP setup is the perfect basis for CMS systems like Joomla, WordPress or Drupal. Additionally, I will install PHPMyAdmin to make MySQL administration easier. This tutorial shows how you can install an Apache 2 web server on an Ubuntu 16.04 (Xenial Xerus) server with PHP 7 (mod_php) and MySQL support. LAMP is short for Linux, Apache, MySQL, PHP.
0 Comments
Read More
Leave a Reply. |