install_apache_mysql_php_linux_ubuntu_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
install_apache_mysql_php_linux_ubuntu_server [2020/06/07 20:04] – [Installing Apache2 web server, MySql database server, and PHP language interpreters on Ubuntu Server] wikiadmin | install_apache_mysql_php_linux_ubuntu_server [2020/06/08 04:37] – [Installing Apache2 (version 2.4)] wikiadmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installing Apache2 web server, MySQL database server, and PHP language interpreters on Ubuntu Server ====== | + | ====== Installing Apache2 web server, MySQL database server, and PHP language interpreters, on Ubuntu Server ====== |
You can install these with LAMP or XAMPP or install each separately using apt-get installer. | You can install these with LAMP or XAMPP or install each separately using apt-get installer. | ||
Line 16: | Line 16: | ||
</ | </ | ||
- | Install | + | **Here are some additional PHP modules |
< | < | ||
- | Next we will install Apache2 web server and virtual hosts. | + | If you are planning to install NextCloud on your Ubuntu Server, then the above generally required modules are included in the expanded list of PHP modules that are recommended or required to run NextCloud from Apache and using PHP. |
+ | |||
+ | ===== Install the PHP Modules that are Prerequisites for NextCloud installation ===== | ||
+ | |||
+ | If you plan to install NextCloud to run on a virtual host from Apache web server, then you should install the following PHP modules that are either recommended or required as prerequisites for the proper functioning of NextCloud. | ||
+ | |||
+ | < | ||
+ | |||
+ | After the installation of these PHP modules, you may see a notice like the following: | ||
+ | |||
+ | Notice: Not enabling PHP 7.4 FPM by default. | ||
+ | Notice: To enable PHP 7.4 FPM in Apache2 do: | ||
+ | Notice: a2enmod procy fcgi set enfiv | ||
+ | Notice: a2enconf php7.4*fpm | ||
+ | Notice: You are seeing this message because you have apache2 package installed. | ||
+ | |||
+ | The apache2 package that is installed and the notice is referring to is the package that was just installed with the installation of PHP 7.4. | ||
+ | |||
+ | Note that if Apache server was already installed before you found this guide, then you should **reload Apache2 servic**e to use these newly installed PHP modules: | ||
+ | |||
+ | < | ||
+ | |||
+ | Next we will install Apache2 web server and configure Virtual Hosts. | ||
===== Installing Apache2 and Creating Apache VirtualHost ===== | ===== Installing Apache2 and Creating Apache VirtualHost ===== | ||
Line 28: | Line 50: | ||
< | < | ||
sudo apt-get update | sudo apt-get update | ||
+ | |||
sudo apt-get install apache2 | sudo apt-get install apache2 | ||
</ | </ | ||
+ | Also install libapache2-mod-php module to work PHP with Apache2. | ||
+ | |||
+ | Enter the following command to install it: | ||
+ | |||
+ | < | ||
+ | |||
+ | Some help sites also include " | ||
+ | |||
+ | < | ||
==== Creating Apache VirtualHost ==== | ==== Creating Apache VirtualHost ==== | ||
install_apache_mysql_php_linux_ubuntu_server.txt · Last modified: 2020/06/08 23:20 by wikiadmin