- Linux uninstall package / software using the CLI
- Linux uninstall package / software
- Ubuntu/Debian Linux uninstall software
- RHEL/CentOS/Oracle Linux
- Fedora Linux
- Arch Linux
- OpenSUSE or SUSE Linux removing package command
- Alpine Linux
- Conclusion
- Uninstall Php Linux Bank
- How to completely remove PHP from Linux?
- Uninstall php 7 in ubuntu 18.04 — Stack Overflow
- How to completely remove PHP? — Ask Ubuntu
- linux — How to uninstall an older PHP version from …
- mysql — Complete uninstall and re-install of PHP on …
- linux — Uninstall php/apache packages which were …
- [SOLVED] How to uninstall PHP? — LinuxQuestions.org
- Completely uninstall PHP and MySQL at ubuntu sumit …
- Uninstall or Remove phpmyadmin, apache2, PHP, …
- Complete uninstall and re-install of PHP on Centos 7
- Uninstall the PHP agent New Relic Documentation
- How do I uninstall/purge php 7.x completely? …
- How to Uninstall phpMyAdmin in Ubuntu Server
- How can I uninstall PHP 5.4 and 5.5? — Ask Different
- sudo yum remove php linux in aws — Unix & Linux …
- How to install PHP and Apache on Linux (Ubuntu, …
- How To Switch Between Multiple PHP Versions In …
- How to Install PHP 7.4 and 8 on Ubuntu › Verified 9 days ago How to Remove PHP from CentOS Toolbox Tech › Verified 3 days ago PHP: Debian GNU/Linux installation notes — Manual /bin/php7-latest/. STEP 2: # download the latest PHP tarball, decompress it, then cd to the new directory. STEP 3: Источник Installation on LinuxпѓЃ In case you prefer installing from the source tarball, you can setup Nextcloud from scratch using a classic LAMP stack (Linux, Apache, MySQL/MariaDB, PHP). This document provides a complete walk-through for installing Nextcloud on Ubuntu 18.04 LTS Server with Apache and MariaDB, using the Nextcloud .tar archive. This method is recommended to install Nextcloud. Admins of SELinux-enabled distributions such as CentOS, Fedora, and Red Hat Enterprise Linux may need to set new rules to enable installing Nextcloud. See SELinux configuration tips for a suggested configuration. If you prefer a more automated installation of Nextcloud and there are no packages for your Linux distribution, you have the option to install the community Snap Package. This includes a full production-ready stack, will maintain your HTTPS certificates for you, and will automatically update as needed to stay secure. You can also use the Nextcloud VM scripts to install directly on a clean Ubuntu Server. It will setup everything for you and include scripts for automated installation of apps like; Collabora, OnlyOffice, Talk and so on. Please note that those two options are not officially supported by Nextcloud GmbH. This installation guide is giving a general overview of required dependencies and their configuration. For a distribution specific setup guide have a look at the Example installation on Ubuntu 20.04 LTS and Example installation on CentOS 8 . Prerequisites for manual installationпѓЃ The Nextcloud .tar archive contains all of the required PHP modules. This section lists all required and optional PHP modules. Consult the PHP manual for more information on modules. Your Linux distribution should have packages for all required modules. You can check the presence of a module by typing php -m | grep -i . If you get a result, the module is present. PHP module ctype PHP module curl PHP module filter (only on Mageia and FreeBSD) PHP module hash (only on FreeBSD) PHP module iconv PHP module JSON PHP module libxml (Linux package libxml2 must be >=2.7.0) PHP module mbstring PHP module openssl PHP module posix PHP module session PHP module SimpleXML PHP module XMLReader PHP module XMLWriter PHP module zlib Database connectors (pick the one for your database:) PHP module pdo_sqlite (>= 3, usually not recommended for performance reasons) PHP module pdo_mysql (MySQL/MariaDB) PHP module pdo_pgsql (PostgreSQL) PHP module fileinfo (highly recommended, enhances file analysis performance) PHP module bz2 (recommended, required for extraction of apps) PHP module intl (increases language translation performance and fixes sorting of non-ASCII characters) Required for specific apps: PHP module ldap (for LDAP integration) PHP module smbclient (SMB/CIFS integration, see SMB/CIFS ) PHP module ftp (for FTP storage / external user authentication) PHP module imap (for external user authentication) PHP module bcmath (for passwordless login) PHP module gmp (for passwordless login) Recommended for specific apps (optional): PHP module gmp (for SFTP storage) PHP module exif (for image rotation in pictures app) For enhanced server performance (optional) select one of the following memcaches: PHP module apcu (>= 4.0.6) PHP module memcached PHP module redis (>= 2.2.6, required for Transactional File Locking) See Memory caching to learn how to select and configure a memcache. For preview generation (optional): PHP module imagick avconv or ffmpeg OpenOffice or LibreOffice For command line processing (optional): PHP module pcntl (enables command interruption by pressing ctrl-c ) For command line updater (optional): PHP module phar (upgrades Nextcloud by running sudo -u www-data php /var/www/nextcloud/updater/updater.phar ) You don’t need the WebDAV module for your Web server (i.e. Apache’s mod_webdav ), as Nextcloud has a built-in WebDAV server of its own, SabreDAV. If mod_webdav is enabled you must disable it for Nextcloud. (See Apache Web server configuration for an example configuration.) Apache Web server configurationпѓЃ Configuring Apache requires the creation of a single configuration file. On Debian, Ubuntu, and their derivatives, this file will be /etc/apache2/sites-available/nextcloud.conf . On Fedora, CentOS, RHEL, and similar systems, the configuration file will be /etc/httpd/conf.d/nextcloud.conf . You can choose to install Nextcloud in a directory on an existing webserver, for example https://www.example.com/nextcloud/ , or in a virtual host if you want Nextcloud to be accessible from its own subdomain such as https://cloud.example.com/ . To use the directory-based installation, put the following in your nextcloud.conf replacing the Directory and Alias filepaths with the filepaths appropriate for your system: To use the virtual host installation, put the following in your nextcloud.conf replacing ServerName, as well as the DocumentRoot and Directory filepaths with values appropriate for your system: On Debian, Ubuntu, and their derivatives, you should run the following command to enable the configuration: Additional Apache configurationsпѓЃ For Nextcloud to work correctly, we need the module mod_rewrite . Enable it by running: Additional recommended modules are mod_headers , mod_env , mod_dir and mod_mime : If you’re running mod_fcgi instead of the standard mod_php also enable: You must disable any server-configured authentication for Nextcloud, as it uses Basic authentication internally for DAV services. If you have turned on authentication on a parent folder (via e.g. an AuthType Basic directive), you can turn off the authentication specifically for the Nextcloud entry. Following the above example configuration file, add the following line in the section: When using SSL, take special note of the ServerName. You should specify one in the server configuration, as well as in the CommonName field of the certificate. If you want your Nextcloud to be reachable via the internet, then set both of these to the domain you want to reach your Nextcloud server. Now restart Apache: If you’re running Nextcloud in a subdirectory and want to use CalDAV or CardDAV clients make sure you have configured the correct Service discovery URLs. Pretty URLsпѓЃ Pretty URLs remove the index.php -part in all Nextcloud URLs, for example in sharing links like https://example.org/nextcloud/index.php/s/Sv1b7krAUqmF8QQ , making URLs shorter and thus prettier. mod_env and mod_rewrite must be installed on your webserver and the .htaccess must be writable by the HTTP user. Then you can set in the config.php two variables: if your setup is available on https://example.org/nextcloud or: if it isn’t installed in a subfolder. Finally run this occ-command to update your .htaccess file: After each update, these changes are automatically applied to the .htaccess -file. Enabling SSLпѓЃ You can use Nextcloud over plain HTTP, but we strongly encourage you to use SSL/TLS to encrypt all of your server traffic, and to protect user’s logins and data in transit. Apache installed under Ubuntu comes already set-up with a simple self-signed certificate. All you have to do is to enable the ssl module and the default site. Open a terminal and run: Self-signed certificates have their drawbacks — especially when you plan to make your Nextcloud server publicly accessible. You might want to consider getting a certificate signed by a commercial signing authority. Check with your domain name registrar or hosting service for good deals on commercial certificates. Installation wizardпѓЃ After restarting Apache you must complete your installation by running either the graphical Installation Wizard, or on the command line with the occ command. To enable this, change the ownership on your Nextcloud directories to your HTTP user: Admins of SELinux-enabled distributions may need to write new SELinux rules to complete their Nextcloud installation; see SELinux configuration tips . To use the graphical Installation Wizard see Installation wizard . SELinux configuration tipsпѓЃ See SELinux configuration for a suggested configuration for SELinux-enabled distributions such as Fedora and CentOS. php.ini configuration notesпѓЃ Keep in mind that changes to php.ini may have to be configured on more than one ini file. This can be the case, for example, for the date.timezone setting. php.ini — used by the Web server: php.ini — used by the php-cli and so by Nextcloud CRON jobs: Path names have to be set in respect of the installed PHP (>= 7.3 or 7.4) as applicable. php-fpm configuration notesпѓЃ System environment variables When you are using php-fpm , system environment variables like PATH, TMP or others are not automatically populated in the same way as when using php-cli . A PHP call like getenv(‘PATH’); can therefore return an empty result. So you may need to manually configure environment variables in the appropropriate php-fpm ini/config file. Here are some example root paths for these ini/config files: In both examples, the ini/config file is called www.conf , and depending on the distro version or customizations you have made, it may be in a subdirectory such as pool.d . Usually, you will find some or all of the environment variables already in the file, but commented out like this: Uncomment the appropriate existing entries. Then run printenv PATH to confirm your paths, for example: If any of your system environment variables are not present in the file then you must add them. Alternatively it is possible to use the environment variables of your system by modifying: and uncommenting the line: When you are using shared hosting or a control panel to manage your Nextcloud VM or server, the configuration files are almost certain to be located somewhere else, for security and flexibility reasons, so check your documentation for the correct locations. Please keep in mind that it is possible to create different settings for php-cli and php-fpm , and for different domains and Web sites. The best way to check your settings is with PHP version and information . Maximum upload size If you want to increase the maximum upload size, you will also have to modify your php-fpm configuration and increase the upload_max_filesize and post_max_size values. You will need to restart php-fpm and your HTTP server in order for these changes to be applied. .htaccess notes for Apache Nextcloud comes with its own nextcloud/.htaccess file. Because php-fpm can’t read PHP settings in .htaccess these settings and permissions must be set in the nextcloud/.user.ini file. Other Web serversпѓЃ Installing on Windows (virtual machine)пѓЃ If you are using Windows, the easiest way to get Nextcloud up and running is using a virtual machine (VM). There are two options: Enterprise/SME appliance Nextcloud GmbH maintains a free appliance built on the Univention Corporate Server (UCS) with easy graphical setup and web-based administration. It includes user management via LDAP, can replace an existing Active Directory setup and has optional ONLYOFFICE and Collabora Online integration, with many more applications available for easy and quick install. It can be installed on hardware or run in a virtual machine using VirtualBox, VMWare (ESX) and KVM images. Download the the Appliance here: Home User/SME appliance The Nextcloud VM is maintained by T&M Hansson IT and several different versions are offered. Collabora, OnlyOffice, Full Text Search and other apps can easily be installed with the included scripts which you can choose to run during the first setup, or download them later and run it afterwards. You can find all the currently available automated app installations on GitHub. The VM comes in different sizes and versions. You can find all the available versions here. For complete instructions and downloads see: You can install the VM on several different operating systems as long as you can mount OVA, VMDK, or VHD/VHDX VM in your hypervisor. If you are using KVM then you need to install the VM from the scripts on GitHub. You can follow the instructions in the README. Installing via Snap packagesпѓЃ A snap is a zip file containing an application together with its dependencies, and a description of how it should safely be run on your system, especially the different ways it should talk to other software. Most importantly snaps are designed to be secure, sandboxed, containerized applications isolated from the underlying system and from other applications. To install the Nextcloud Snap Package, run the following command in a terminal: The snapd technology is the core that powers snaps, and it offers a new way to package, distribute, update and run OS components and applications on a Linux system. See more about snaps on snapcraft.io. Installation via web installer on a VPS or web spaceпѓЃ When you don’t have access to the command line, for example at a web hosting or VMPS, an easy option is to use our web installer. This script can be found on our server installation page here. The script checks the dependencies, downloads Nextcloud from the official server, unpacks it with the right permissions and the right user account. Finally, you will be redirected to the Nextcloud installer. Here a quick how-to: Get the file from the installation page Upload setup-nextcloud.php to your web space Point your web browser to setup-nextcloud.php on your webspace Follow the instructions and configure Nextcloud Login to your newly created Nextcloud instance! that the installer uses the same Nextcloud version as available for the built in updater in Nextcloud. After a major release it can take up to a month before it becomes available through the web installer and the updater. This is done to spread the deployment of new major releases out over time. Installation on TrueNASпѓЃ Installation via install scriptпѓЃ One of the easiest ways of installing is to use the Nextcloud VM scripts. It’s basically just two steps: Run the script with: A guided setup will follow and the only thing you have to do it to follow the on screen instructions, when given to you. Источник
- How to Remove PHP from CentOS Toolbox Tech
- PHP: Debian GNU/Linux installation notes — Manual
- Installation on LinuxпѓЃ
- Prerequisites for manual installationпѓЃ
- Apache Web server configurationпѓЃ
- Additional Apache configurationsпѓЃ
- Pretty URLsпѓЃ
- Enabling SSLпѓЃ
- Installation wizardпѓЃ
- SELinux configuration tipsпѓЃ
- php.ini configuration notesпѓЃ
- php-fpm configuration notesпѓЃ
- Other Web serversпѓЃ
- Installing on Windows (virtual machine)пѓЃ
- Installing via Snap packagesпѓЃ
- Installation via web installer on a VPS or web spaceпѓЃ
- Installation on TrueNASпѓЃ
- Installation via install scriptпѓЃ
Linux uninstall package / software using the CLI
Linux uninstall package / software
- First, you need to find a list of all installed packages on Linux.
- To uninstall an application, you need to use Linux distro-specific command. For example, use the apt command on Debian or Ubuntu Linux. RHEL/CentOS/Fedora Linux users need to run either the dnf or yum command and so on.
- Finally, we can use various commands for verification of the uninstallation of a program on Linux.
Let us see all commands in action to uninstall a program on Linux.
Ubuntu/Debian Linux uninstall software
The syntax is as follows to list all installed packages on Debian or Ubuntu Linux using the apt command:
apt list —installed
How to find out exact package names in Debian/Ubuntu/Mint Linux
Use the ‘ dpkg —list ‘ command to get a list of all installed packages on an Ubuntu or Debian/Mint Linux
grep command in action to filter out package names quickly that you want to uninstall
RHEL/CentOS/Oracle Linux
We need to use the yum command for CentOS/RHEL v6.x/7.x. First get a list, run:
sudo yum list installed
sudo yum list installed | grep package
sudo yum list installed | grep zip
yum command in action
Fedora Linux
Again, we need to the dnf command as follows:
## List all installed packages ##
sudo dnf list installed
## Filter out the package named httpd ##
sudo dnf list installed | grep httpd
## Delete the httpd ##
sudo dnf remove httpd
Arch Linux
We use the pacman command on Arch Linux to uninstall software. Pass the Q to list all installed packages on Arch Linux:
sudo pacman Q
sudo pacman Q | more
sudo pacman Q | grep sl
To delete/remove the sl package in Arch, run:
sudo pacman -R sl
pacman command in action to list and uninstall package on an Arch Linux
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
OpenSUSE or SUSE Linux removing package command
We are going to use the zypper command. To list all installed packages in SUSE/OpenSUSE, run:
sudo zypper packages —installed-only
sudo zypper packages —installed-only | grep -i package
sudo zypper packages —installed-only | grep -i zip
I am going to remove the zip package, enter:
sudo zypper remove package
sudo zypper remove zip
Alpine Linux
Use the apk command to list installed packages only:
sudo apk list
sudo apk list -I
sudo apk list -I ‘package’
sudo apk list -I ‘zip’
To uninstall the zip Linux uninstall software pass the del as follows:
sudo apk del pkg
sudo apk del zip
apk command in action
Conclusion
You learned how to uninstall package on popular Linux distros. I would strongly recommend reading the man pages:
man yum
man dnf
man apt
man zypper
man pacman
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Источник
Uninstall Php Linux Bank
How to completely remove PHP from Linux?
› Verified 7 days ago
Uninstall php 7 in ubuntu 18.04 — Stack Overflow
› Verified 6 days ago
How to completely remove PHP? — Ask Ubuntu
› Verified 6 days ago
linux — How to uninstall an older PHP version from …
› Verified 5 days ago
mysql — Complete uninstall and re-install of PHP on …
› Verified 7 days ago
linux — Uninstall php/apache packages which were …
› Verified 3 days ago
[SOLVED] How to uninstall PHP? — LinuxQuestions.org
› Verified 2 days ago
Completely uninstall PHP and MySQL at ubuntu sumit …
› Verified 1 days ago
Uninstall or Remove phpmyadmin, apache2, PHP, …
› Verified 4 days ago
Complete uninstall and re-install of PHP on Centos 7
› Verified Just Now
Uninstall the PHP agent New Relic Documentation
› Verified 3 days ago
How do I uninstall/purge php 7.x completely? …
› Verified 3 days ago
How to Uninstall phpMyAdmin in Ubuntu Server
› Verified 8 days ago
How can I uninstall PHP 5.4 and 5.5? — Ask Different
› Verified 4 days ago
sudo yum remove php linux in aws — Unix & Linux …
› Verified Just Now
How to install PHP and Apache on Linux (Ubuntu, …
› Verified 3 days ago
How To Switch Between Multiple PHP Versions In …
› Verified 6 days ago
How to Install PHP 7.4 and 8 on Ubuntu
› Verified 9 days ago
How to Remove PHP from CentOS Toolbox Tech
› Verified 3 days ago
PHP: Debian GNU/Linux installation notes — Manual
/bin/php7-latest/. STEP 2: # download the latest PHP tarball, decompress it, then cd to the new directory. STEP 3:
Источник
Installation on LinuxпѓЃ
In case you prefer installing from the source tarball, you can setup Nextcloud from scratch using a classic LAMP stack (Linux, Apache, MySQL/MariaDB, PHP). This document provides a complete walk-through for installing Nextcloud on Ubuntu 18.04 LTS Server with Apache and MariaDB, using the Nextcloud .tar archive. This method is recommended to install Nextcloud.
Admins of SELinux-enabled distributions such as CentOS, Fedora, and Red Hat Enterprise Linux may need to set new rules to enable installing Nextcloud. See SELinux configuration tips for a suggested configuration.
If you prefer a more automated installation of Nextcloud and there are no packages for your Linux distribution, you have the option to install the community Snap Package. This includes a full production-ready stack, will maintain your HTTPS certificates for you, and will automatically update as needed to stay secure. You can also use the Nextcloud VM scripts to install directly on a clean Ubuntu Server. It will setup everything for you and include scripts for automated installation of apps like; Collabora, OnlyOffice, Talk and so on. Please note that those two options are not officially supported by Nextcloud GmbH.
This installation guide is giving a general overview of required dependencies and their configuration. For a distribution specific setup guide have a look at the Example installation on Ubuntu 20.04 LTS and Example installation on CentOS 8 .
Prerequisites for manual installationпѓЃ
The Nextcloud .tar archive contains all of the required PHP modules. This section lists all required and optional PHP modules. Consult the PHP manual for more information on modules. Your Linux distribution should have packages for all required modules. You can check the presence of a module by typing php -m | grep -i . If you get a result, the module is present.
PHP module ctype
PHP module curl
PHP module filter (only on Mageia and FreeBSD)
PHP module hash (only on FreeBSD)
PHP module iconv
PHP module JSON
PHP module libxml (Linux package libxml2 must be >=2.7.0)
PHP module mbstring
PHP module openssl
PHP module posix
PHP module session
PHP module SimpleXML
PHP module XMLReader
PHP module XMLWriter
PHP module zlib
Database connectors (pick the one for your database:)
PHP module pdo_sqlite (>= 3, usually not recommended for performance reasons)
PHP module pdo_mysql (MySQL/MariaDB)
PHP module pdo_pgsql (PostgreSQL)
PHP module fileinfo (highly recommended, enhances file analysis performance)
PHP module bz2 (recommended, required for extraction of apps)
PHP module intl (increases language translation performance and fixes sorting of non-ASCII characters)
Required for specific apps:
PHP module ldap (for LDAP integration)
PHP module smbclient (SMB/CIFS integration, see SMB/CIFS )
PHP module ftp (for FTP storage / external user authentication)
PHP module imap (for external user authentication)
PHP module bcmath (for passwordless login)
PHP module gmp (for passwordless login)
Recommended for specific apps (optional):
PHP module gmp (for SFTP storage)
PHP module exif (for image rotation in pictures app)
For enhanced server performance (optional) select one of the following memcaches:
PHP module apcu (>= 4.0.6)
PHP module memcached
PHP module redis (>= 2.2.6, required for Transactional File Locking)
See Memory caching to learn how to select and configure a memcache.
For preview generation (optional):
PHP module imagick
avconv or ffmpeg
OpenOffice or LibreOffice
For command line processing (optional):
PHP module pcntl (enables command interruption by pressing ctrl-c )
For command line updater (optional):
PHP module phar (upgrades Nextcloud by running sudo -u www-data php /var/www/nextcloud/updater/updater.phar )
You don’t need the WebDAV module for your Web server (i.e. Apache’s mod_webdav ), as Nextcloud has a built-in WebDAV server of its own, SabreDAV. If mod_webdav is enabled you must disable it for Nextcloud. (See Apache Web server configuration for an example configuration.)
Apache Web server configurationпѓЃ
Configuring Apache requires the creation of a single configuration file. On Debian, Ubuntu, and their derivatives, this file will be /etc/apache2/sites-available/nextcloud.conf . On Fedora, CentOS, RHEL, and similar systems, the configuration file will be /etc/httpd/conf.d/nextcloud.conf .
You can choose to install Nextcloud in a directory on an existing webserver, for example https://www.example.com/nextcloud/ , or in a virtual host if you want Nextcloud to be accessible from its own subdomain such as https://cloud.example.com/ .
To use the directory-based installation, put the following in your nextcloud.conf replacing the Directory and Alias filepaths with the filepaths appropriate for your system:
To use the virtual host installation, put the following in your nextcloud.conf replacing ServerName, as well as the DocumentRoot and Directory filepaths with values appropriate for your system:
On Debian, Ubuntu, and their derivatives, you should run the following command to enable the configuration:
Additional Apache configurationsпѓЃ
For Nextcloud to work correctly, we need the module mod_rewrite . Enable it by running:
Additional recommended modules are mod_headers , mod_env , mod_dir and mod_mime :
If you’re running mod_fcgi instead of the standard mod_php also enable:
You must disable any server-configured authentication for Nextcloud, as it uses Basic authentication internally for DAV services. If you have turned on authentication on a parent folder (via e.g. an AuthType Basic directive), you can turn off the authentication specifically for the Nextcloud entry. Following the above example configuration file, add the following line in the section:
When using SSL, take special note of the ServerName. You should specify one in the server configuration, as well as in the CommonName field of the certificate. If you want your Nextcloud to be reachable via the internet, then set both of these to the domain you want to reach your Nextcloud server.
Now restart Apache:
If you’re running Nextcloud in a subdirectory and want to use CalDAV or CardDAV clients make sure you have configured the correct Service discovery URLs.
Pretty URLsпѓЃ
Pretty URLs remove the index.php -part in all Nextcloud URLs, for example in sharing links like https://example.org/nextcloud/index.php/s/Sv1b7krAUqmF8QQ , making URLs shorter and thus prettier.
mod_env and mod_rewrite must be installed on your webserver and the .htaccess must be writable by the HTTP user. Then you can set in the config.php two variables:
if your setup is available on https://example.org/nextcloud or:
if it isn’t installed in a subfolder. Finally run this occ-command to update your .htaccess file:
After each update, these changes are automatically applied to the .htaccess -file.
Enabling SSLпѓЃ
You can use Nextcloud over plain HTTP, but we strongly encourage you to use SSL/TLS to encrypt all of your server traffic, and to protect user’s logins and data in transit.
Apache installed under Ubuntu comes already set-up with a simple self-signed certificate. All you have to do is to enable the ssl module and the default site. Open a terminal and run:
Self-signed certificates have their drawbacks — especially when you plan to make your Nextcloud server publicly accessible. You might want to consider getting a certificate signed by a commercial signing authority. Check with your domain name registrar or hosting service for good deals on commercial certificates.
Installation wizardпѓЃ
After restarting Apache you must complete your installation by running either the graphical Installation Wizard, or on the command line with the occ command. To enable this, change the ownership on your Nextcloud directories to your HTTP user:
Admins of SELinux-enabled distributions may need to write new SELinux rules to complete their Nextcloud installation; see SELinux configuration tips .
To use the graphical Installation Wizard see Installation wizard .
SELinux configuration tipsпѓЃ
See SELinux configuration for a suggested configuration for SELinux-enabled distributions such as Fedora and CentOS.
php.ini configuration notesпѓЃ
Keep in mind that changes to php.ini may have to be configured on more than one ini file. This can be the case, for example, for the date.timezone setting.
php.ini — used by the Web server:
php.ini — used by the php-cli and so by Nextcloud CRON jobs:
Path names have to be set in respect of the installed PHP (>= 7.3 or 7.4) as applicable.
php-fpm configuration notesпѓЃ
System environment variables
When you are using php-fpm , system environment variables like PATH, TMP or others are not automatically populated in the same way as when using php-cli . A PHP call like getenv(‘PATH’); can therefore return an empty result. So you may need to manually configure environment variables in the appropropriate php-fpm ini/config file.
Here are some example root paths for these ini/config files:
In both examples, the ini/config file is called www.conf , and depending on the distro version or customizations you have made, it may be in a subdirectory such as pool.d .
Usually, you will find some or all of the environment variables already in the file, but commented out like this:
Uncomment the appropriate existing entries. Then run printenv PATH to confirm your paths, for example:
If any of your system environment variables are not present in the file then you must add them.
Alternatively it is possible to use the environment variables of your system by modifying:
and uncommenting the line:
When you are using shared hosting or a control panel to manage your Nextcloud VM or server, the configuration files are almost certain to be located somewhere else, for security and flexibility reasons, so check your documentation for the correct locations.
Please keep in mind that it is possible to create different settings for php-cli and php-fpm , and for different domains and Web sites. The best way to check your settings is with PHP version and information .
Maximum upload size
If you want to increase the maximum upload size, you will also have to modify your php-fpm configuration and increase the upload_max_filesize and post_max_size values. You will need to restart php-fpm and your HTTP server in order for these changes to be applied.
.htaccess notes for Apache
Nextcloud comes with its own nextcloud/.htaccess file. Because php-fpm can’t read PHP settings in .htaccess these settings and permissions must be set in the nextcloud/.user.ini file.
Other Web serversпѓЃ
Installing on Windows (virtual machine)пѓЃ
If you are using Windows, the easiest way to get Nextcloud up and running is using a virtual machine (VM). There are two options:
Enterprise/SME appliance
Nextcloud GmbH maintains a free appliance built on the Univention Corporate Server (UCS) with easy graphical setup and web-based administration. It includes user management via LDAP, can replace an existing Active Directory setup and has optional ONLYOFFICE and Collabora Online integration, with many more applications available for easy and quick install.
It can be installed on hardware or run in a virtual machine using VirtualBox, VMWare (ESX) and KVM images.
Download the the Appliance here:
Home User/SME appliance
The Nextcloud VM is maintained by T&M Hansson IT and several different versions are offered. Collabora, OnlyOffice, Full Text Search and other apps can easily be installed with the included scripts which you can choose to run during the first setup, or download them later and run it afterwards. You can find all the currently available automated app installations on GitHub.
The VM comes in different sizes and versions.
You can find all the available versions here.
For complete instructions and downloads see:
You can install the VM on several different operating systems as long as you can mount OVA, VMDK, or VHD/VHDX VM in your hypervisor. If you are using KVM then you need to install the VM from the scripts on GitHub. You can follow the instructions in the README.
Installing via Snap packagesпѓЃ
A snap is a zip file containing an application together with its dependencies, and a description of how it should safely be run on your system, especially the different ways it should talk to other software. Most importantly snaps are designed to be secure, sandboxed, containerized applications isolated from the underlying system and from other applications.
To install the Nextcloud Snap Package, run the following command in a terminal:
The snapd technology is the core that powers snaps, and it offers a new way to package, distribute, update and run OS components and applications on a Linux system. See more about snaps on snapcraft.io.
Installation via web installer on a VPS or web spaceпѓЃ
When you don’t have access to the command line, for example at a web hosting or VMPS, an easy option is to use our web installer. This script can be found on our server installation page here.
The script checks the dependencies, downloads Nextcloud from the official server, unpacks it with the right permissions and the right user account. Finally, you will be redirected to the Nextcloud installer. Here a quick how-to:
Get the file from the installation page
Upload setup-nextcloud.php to your web space
Point your web browser to setup-nextcloud.php on your webspace
Follow the instructions and configure Nextcloud
Login to your newly created Nextcloud instance!
that the installer uses the same Nextcloud version as available for the built in updater in Nextcloud. After a major release it can take up to a month before it becomes available through the web installer and the updater. This is done to spread the deployment of new major releases out over time.
Installation on TrueNASпѓЃ
Installation via install scriptпѓЃ
One of the easiest ways of installing is to use the Nextcloud VM scripts. It’s basically just two steps:
Run the script with:
A guided setup will follow and the only thing you have to do it to follow the on screen instructions, when given to you.
Источник