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/07 20:04] – [Creating Apache VirtualHost] wikiadmininstall_apache_mysql_php_linux_ubuntu_server [2020/06/08 03:54] – [Installing PHP] 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 interpreterson 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 19: Line 19:
  
 <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>
 +
 +**Enable Modules for NextCloud installation**
 +
 +If you plan to install NextCloud server to run on Apache web server, then you should install the following PHP modules that are either recommended or required as prerequisites for the proper functioning NextCloud.  Ensure that you manually enable each of these modules in the php.ini file for purposes of running NextCloud.  There will obviously be other modules to enable for general operation of PHP and other websites' applications.
 +
 +<code>sudo apt install php-imagick php7.4-common php7.4-mysql php7.4-fpm php7.4-gd php7.4-json php7.4-curl  php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl</code>
 +
 +Note: If you did not begin with this guide and Apache is already installed, then you should reload Apache2 service to use these PHP modules:
 +
 +<code>sudo systemctl reload apache2</code> 
  
 Next we will install Apache2 web server and virtual hosts. Next we will install Apache2 web server and virtual hosts.
Line 28: Line 38:
 <code> <code>
 sudo apt-get update sudo apt-get update
 +
 sudo apt-get install apache2 sudo apt-get install apache2
 </code> </code>
  
 +Also (OR INSTEAD) install libapache2-mod-php module to work PHP with Apache2. [Go research this]
 +
 +Enter the following to install it:
 +
 +<code>sudo apt install apache2 libapache2-mod-php7.4</code>
 ==== Creating Apache VirtualHost ==== ==== Creating Apache VirtualHost ====
  
install_apache_mysql_php_linux_ubuntu_server.txt · Last modified: 2020/06/08 23:20 by wikiadmin