<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=NEXTCLOUD_-_Install_Script_On_Ubuntu_24.4</id>
	<title>NEXTCLOUD - Install Script On Ubuntu 24.4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=NEXTCLOUD_-_Install_Script_On_Ubuntu_24.4"/>
	<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=NEXTCLOUD_-_Install_Script_On_Ubuntu_24.4&amp;action=history"/>
	<updated>2026-05-02T20:46:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://it-arts.net/index.php?title=NEXTCLOUD_-_Install_Script_On_Ubuntu_24.4&amp;diff=1043&amp;oldid=prev</id>
		<title>Admin: Text replacement - &quot;Category:Wiki&quot; to &quot;Category:Wiki

&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;
&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=NEXTCLOUD_-_Install_Script_On_Ubuntu_24.4&amp;diff=1043&amp;oldid=prev"/>
		<updated>2026-01-17T08:26:15Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:26, 17 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This script installs Nextcloud with Nginx and PostgreSQL on Ubuntu 24.04 LTS&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This script installs Nextcloud with Nginx and PostgreSQL on Ubuntu 24.04 LTS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=NEXTCLOUD_-_Install_Script_On_Ubuntu_24.4&amp;diff=522&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Category:Wiki  This script installs Nextcloud with Nginx and PostgreSQL on Ubuntu 24.04 LTS  = install_nextcloud.sh =   &lt;nowiki&gt; #!/bin/bash  # This script installs Nextcloud with Nginx and PostgreSQL on Ubuntu 24.04 LTS  # Update system and install essential utilities echo &quot;Updating system and installing essential utilities...&quot; sudo apt update &amp;&amp; sudo apt upgrade -y sudo apt install -y curl wget gnupg2 lsb-release ca-certificates software-properties-common  # Instal...&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=NEXTCLOUD_-_Install_Script_On_Ubuntu_24.4&amp;diff=522&amp;oldid=prev"/>
		<updated>2025-12-14T10:01:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  This script installs Nextcloud with Nginx and PostgreSQL on Ubuntu 24.04 LTS  = install_nextcloud.sh =   &amp;lt;nowiki&amp;gt; #!/bin/bash  # This script installs Nextcloud with Nginx and PostgreSQL on Ubuntu 24.04 LTS  # Update system and install essential utilities echo &amp;quot;Updating system and installing essential utilities...&amp;quot; sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y sudo apt install -y curl wget gnupg2 lsb-release ca-certificates software-properties-common  # Instal...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Wiki]]&lt;br /&gt;
&lt;br /&gt;
This script installs Nextcloud with Nginx and PostgreSQL on Ubuntu 24.04 LTS&lt;br /&gt;
&lt;br /&gt;
= install_nextcloud.sh =&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script installs Nextcloud with Nginx and PostgreSQL on Ubuntu 24.04 LTS&lt;br /&gt;
&lt;br /&gt;
# Update system and install essential utilities&lt;br /&gt;
echo &amp;quot;Updating system and installing essential utilities...&amp;quot;&lt;br /&gt;
sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y&lt;br /&gt;
sudo apt install -y curl wget gnupg2 lsb-release ca-certificates software-properties-common&lt;br /&gt;
&lt;br /&gt;
# Install Nginx, PostgreSQL, and PHP dependencies&lt;br /&gt;
echo &amp;quot;Installing Nginx, PostgreSQL, and PHP dependencies...&amp;quot;&lt;br /&gt;
sudo apt install -y nginx postgresql postgresql-contrib php-fpm php-pgsql php-cli php-gd php-mbstring php-xml php-curl php-zip php-intl php-bcmath git unzip&lt;br /&gt;
&lt;br /&gt;
# Enable and start Nginx and PostgreSQL services&lt;br /&gt;
echo &amp;quot;Enabling and starting Nginx and PostgreSQL services...&amp;quot;&lt;br /&gt;
sudo systemctl enable nginx&lt;br /&gt;
sudo systemctl enable postgresql&lt;br /&gt;
sudo systemctl start nginx&lt;br /&gt;
sudo systemctl start postgresql&lt;br /&gt;
&lt;br /&gt;
# Create a PostgreSQL database and user for Nextcloud&lt;br /&gt;
echo &amp;quot;Setting up PostgreSQL for Nextcloud...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Switch to the PostgreSQL user&lt;br /&gt;
sudo -u postgres psql -c &amp;quot;CREATE DATABASE nextcloud;&amp;quot;&lt;br /&gt;
sudo -u postgres psql -c &amp;quot;CREATE USER nextclouduser WITH PASSWORD &amp;#039;nextcloudpassword&amp;#039;;&amp;quot;&lt;br /&gt;
sudo -u postgres psql -c &amp;quot;ALTER ROLE nextclouduser SET client_encoding TO &amp;#039;utf8&amp;#039;;&amp;quot;&lt;br /&gt;
sudo -u postgres psql -c &amp;quot;ALTER ROLE nextclouduser SET default_transaction_isolation TO &amp;#039;read committed&amp;#039;;&amp;quot;&lt;br /&gt;
sudo -u postgres psql -c &amp;quot;ALTER ROLE nextclouduser SET timezone TO &amp;#039;UTC&amp;#039;;&amp;quot;&lt;br /&gt;
sudo -u postgres psql -c &amp;quot;GRANT ALL PRIVILEGES ON DATABASE nextcloud TO nextclouduser;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Download and configure Nextcloud&lt;br /&gt;
echo &amp;quot;Downloading and configuring Nextcloud...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Move to the /var/www directory and clone the Nextcloud repository&lt;br /&gt;
cd /var/www&lt;br /&gt;
sudo git clone https://github.com/nextcloud/server.git nextcloud&lt;br /&gt;
sudo chown -R www-data:www-data /var/www/nextcloud&lt;br /&gt;
sudo chmod -R 755 /var/www/nextcloud&lt;br /&gt;
&lt;br /&gt;
# Configure PHP-FPM for Nextcloud&lt;br /&gt;
echo &amp;quot;Configuring PHP-FPM for Nextcloud...&amp;quot;&lt;br /&gt;
sudo nano /etc/php/$(php -r &amp;#039;echo PHP_VERSION_ID;&amp;#039;)/fpm/php.ini&lt;br /&gt;
&lt;br /&gt;
# Set the following values in php.ini (update these values as per your needs):&lt;br /&gt;
# max_execution_time = 360&lt;br /&gt;
# memory_limit = 512M&lt;br /&gt;
# post_max_size = 512M&lt;br /&gt;
# upload_max_filesize = 512M&lt;br /&gt;
# date.timezone = &amp;#039;UTC&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Restart PHP-FPM to apply changes&lt;br /&gt;
sudo systemctl restart php$(php -r &amp;#039;echo PHP_VERSION_ID;&amp;#039;)-fpm&lt;br /&gt;
&lt;br /&gt;
# Set up Nginx configuration for Nextcloud&lt;br /&gt;
echo &amp;quot;Setting up Nginx configuration for Nextcloud...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Create a new Nginx configuration file for Nextcloud&lt;br /&gt;
sudo bash -c &amp;#039;cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/nginx/sites-available/nextcloud&lt;br /&gt;
server {&lt;br /&gt;
    listen 80;&lt;br /&gt;
    server_name your-domain.com;  # Replace with your domain or IP&lt;br /&gt;
&lt;br /&gt;
    root /var/www/nextcloud;&lt;br /&gt;
&lt;br /&gt;
    index index.php index.html index.htm;&lt;br /&gt;
&lt;br /&gt;
    location / {&lt;br /&gt;
        try_files \$uri \$uri/ =404;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location ~ ^/\.well-known/acme-challenge/ {&lt;br /&gt;
        allow all;&lt;br /&gt;
        root /var/www/nextcloud;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location ~ ^/index.php(?:$|/) {&lt;br /&gt;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;&lt;br /&gt;
        fastcgi_pass unix:/var/run/php/php$(php -r &amp;#039;echo PHP_VERSION_ID;&amp;#039;)-fpm.sock;&lt;br /&gt;
        fastcgi_index index.php;&lt;br /&gt;
        fastcgi_param SCRIPT_FILENAME /var/www/nextcloud\$fastcgi_script_name;&lt;br /&gt;
        include fastcgi_params;&lt;br /&gt;
        include snippets/fastcgi-php.conf;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {&lt;br /&gt;
        deny all;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {&lt;br /&gt;
        deny all;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    fastcgi_buffer_size 16k;&lt;br /&gt;
    fastcgi_buffers 4 16k;&lt;br /&gt;
    client_max_body_size 512M;&lt;br /&gt;
    fastcgi_max_temp_file_size 1G;&lt;br /&gt;
}&lt;br /&gt;
EOF&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Create a symbolic link to enable the site&lt;br /&gt;
sudo ln -s /etc/nginx/sites-available/nextcloud /etc/nginx/sites-enabled/&lt;br /&gt;
&lt;br /&gt;
# Test Nginx configuration&lt;br /&gt;
echo &amp;quot;Testing Nginx configuration...&amp;quot;&lt;br /&gt;
sudo nginx -t&lt;br /&gt;
&lt;br /&gt;
# Restart Nginx to apply changes&lt;br /&gt;
echo &amp;quot;Restarting Nginx...&amp;quot;&lt;br /&gt;
sudo systemctl restart nginx&lt;br /&gt;
&lt;br /&gt;
# Set up Nextcloud database configuration&lt;br /&gt;
echo &amp;quot;Configuring Nextcloud database...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Open Nextcloud&amp;#039;s config.php file to modify database settings&lt;br /&gt;
# This step will be done during the web interface setup, but let&amp;#039;s make sure the directory is correct&lt;br /&gt;
sudo cp /var/www/nextcloud/config/config.sample.php /var/www/nextcloud/config/config.php&lt;br /&gt;
&lt;br /&gt;
# Set permissions for Nextcloud directory&lt;br /&gt;
echo &amp;quot;Setting permissions for Nextcloud directory...&amp;quot;&lt;br /&gt;
sudo chown -R www-data:www-data /var/www/nextcloud&lt;br /&gt;
sudo chmod -R 755 /var/www/nextcloud&lt;br /&gt;
&lt;br /&gt;
# Final setup through the web interface&lt;br /&gt;
echo &amp;quot;Nextcloud installation should now be accessible at http://your-domain.com or http://&amp;lt;your-server-ip&amp;gt;&amp;quot;&lt;br /&gt;
echo &amp;quot;Visit this URL to complete the installation via the web interface.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>