Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


install_apache_mysql_php_linux_ubuntu_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
install_apache_mysql_php_linux_ubuntu_server [2020/06/08 04:18] – [Enable PHP Modules for NextCloud installation] wikiadmininstall_apache_mysql_php_linux_ubuntu_server [2020/06/08 16:20] – [Creating Additional Virtual Hosts] wikiadmin
Line 16: Line 16:
 </code> </code>
  
-Here are some additional PHP modules that may be required for your applications. [However see the discussion below regarding additional modules required to run NextCloud.+**Here are some additional PHP modules to install that may be required for your applications**. [However, before you install these modules, see the discussion below regarding additional modules required to run NextCloud.]
  
 <code>sudo apt install php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-xml</code> <code>sudo apt install php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-xml</code>
Line 22: Line 22:
 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. 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 ====+===== 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.  Ensure that you manually enable each of these modules in the php.ini file for purposes of running NextCloud. This involves removing the appropriate #comment marks in php.ini to enable the appropriate modules. There should obviously be other PHP modules to enable for the general operation of PHP as necessary for other websites' applications running from Apache web server on this Ubuntu server. 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.  Ensure that you manually enable each of these modules in the php.ini file for purposes of running NextCloud. This involves removing the appropriate #comment marks in php.ini to enable the appropriate modules. There should obviously be other PHP modules to enable for the general operation of PHP as necessary for other websites' applications running from Apache web server on this Ubuntu server.
Line 54: Line 54:
 </code> </code>
  
-Also (OR INSTEAD) install libapache2-mod-php module to work PHP with Apache2. [Go research this]+Also install libapache2-mod-php module to work PHP with Apache2. 
  
-Enter the following to install it:+Enter the following command to install it:
  
 <code>sudo apt install apache2 libapache2-mod-php7.4</code> <code>sudo apt install apache2 libapache2-mod-php7.4</code>
 +
 +Some help sites also include "php-mysql" module appended to the end of the above command.  I think we can install that later after we install MySQL server.  So keep in mind for later, after MySQL server is installed, the step of entering a command like the following.
 +
 +<code>sudo apt install apache2 php-mysql</code>
 ==== Creating Apache VirtualHost ==== ==== Creating Apache VirtualHost ====
  
Line 145: Line 149:
  
 Repeat the above steps for site www1 by changing the site-name to whatever it will be, such as www2.exmample.com Repeat the above steps for site www1 by changing the site-name to whatever it will be, such as www2.exmample.com
 +
 +===== Install MySQL Database Server =====
 +
 +The apt repositories for Ubuntu 20.04 LTS contain MySQL server version 8.0. 
 +
 +Install mysql-server packages for the MySQL database. Also, install the php-mysql package to use MySQL support using PHP. Use the following command to install it.
 +
 +<code>sudo apt install mysql-server php7.4-mysql</code>
 +
 +The installer will prompt for the root password. This password will work for your MySQL root user. After installing MySQL execute the following command for initial settings of MySQL server. The script will ask more questions for settings than earlier MySQL versions, such as password validation policy etc.
 +
 +Enter this command:
  
  
install_apache_mysql_php_linux_ubuntu_server.txt · Last modified: 2020/06/08 23:20 by wikiadmin