Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


download_extract_nextcloud_27_0_ubuntu_22_04_apache2

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
download_extract_nextcloud_27_0_ubuntu_22_04_apache2 [2023/06/21 16:24] wikiadmindownload_extract_nextcloud_27_0_ubuntu_22_04_apache2 [2023/06/21 17:39] (current) wikiadmin
Line 19: Line 19:
  
 You might want to use mkdir command with the -p option (path create) and/or the -v option (verbose to have linux tell you each directory that was created). **You should change the directory names appearing after "var/www/" in the path, to your choices of directory names, in the following** __Examples:__ You might want to use mkdir command with the -p option (path create) and/or the -v option (verbose to have linux tell you each directory that was created). **You should change the directory names appearing after "var/www/" in the path, to your choices of directory names, in the following** __Examples:__
 +
 +Assume we want these two directory paths:
 +
 +/var/www/dbusername/public_html/yourdomain_com/nextcloud
 +
 +and
 +
 +/var/www/dbusername/storage/yourdomain_com/data
 +
 +So, first switch to the /var/www/ directory as the current working directory. Then, make the directory path below the /var/www/ level.
  
 <code> <code>
-sudo mkdir -p -v var/www/dbusername/public_html/yourdomain_com/nextcloud+cd /var/www/ 
 + 
 +sudo mkdir -p -v dbusername/public_html/yourdomain_com/nextcloud
  
-sudo mkdir -p -v var/www/dbusername/storage/yourdomain_com/data+sudo mkdir -p -v dbusername/storage/yourdomain_com/data
 </code> </code>
  
 Next, download the latest version of NextCloud zip file into the subdirectory that is located one level above the /nextcloud/ subdirectory in the website path, i.e. the /yourdomain_com/ subdirectory. Next, download the latest version of NextCloud zip file into the subdirectory that is located one level above the /nextcloud/ subdirectory in the website path, i.e. the /yourdomain_com/ subdirectory.
  
-Switch to the /yourdomain_com/ subdirectory as the current working directory.+First, switch to the /yourdomain_com/ subdirectory as the current working directory.
  
 <code> <code>
Line 34: Line 46:
 </code> </code>
  
-Use the wget / curl command to download the latest NextCloud Release as a zip file to the current working directory.  **Change the release version number to the latest version number in the command below** (or change it to the particular archived version number that you want to install).+Then, use the wget / curl command to download the latest NextCloud Release as a zip file to the current working directory.  **Change the release version number to the latest version number in the command below** (or change it to the particular archived version number that you want to install).
  
 <code> <code>
Line 40: Line 52:
 </code> </code>
  
-This command as scripted above should change the name of the downloaded file on your server from the file name 'nextcloud-27.0.0.zip' to the file name 'nextcloud.zip'+This commandas scripted aboveshould change the name of the download file on your server from the file name 'nextcloud-27.0.0.zip' to the file name 'nextcloud.zip' and place that zip file into the current working directory /yourdomain_com/.
  
-After downloading, check the name of the downloaded Zip file in current working directory using the 'ls' command to list files.  That is, check to see if the filename is nextcloud.zip or nextcloud-27.0.0.zip.+After downloading, check the name of the downloaded Zip file in current working directory using the 'ls' command to list files.  That is, check to see if the filename is 'nextcloud.zipor "nextcloud-27.0.0.zip' and that it resides in the current working directory.
  
 At this point, make sure that the 'UnZip' package is installed to your linux distro.  If not, then install it as follows: At this point, make sure that the 'UnZip' package is installed to your linux distro.  If not, then install it as follows:
Line 48: Line 60:
 <code> <code>
 sudo apt install unzip sudo apt install unzip
 +</code>
 +
 +Resulting Installation should appear like this:
 +
 +<code>
 +Reading package lists... Done
 +Building dependency tree... Done
 +Reading state information... Done
 +Suggested packages:
 +  zip
 +The following NEW packages will be installed:
 +  unzip
 +0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
 +Need to get 174 kB of archives.
 +After this operation, 385 kB of additional disk space will be used.
 +Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 unzip amd64 6.0-26ubuntu3.1 [174 kB]
 +Fetched 174 kB in 0s (484 kB/s)
 +Selecting previously unselected package unzip.
 +(Reading database ... 82975 files and directories currently installed.)
 +Preparing to unpack .../unzip_6.0-26ubuntu3.1_amd64.deb ...
 +Unpacking unzip (6.0-26ubuntu3.1) ...
 +Setting up unzip (6.0-26ubuntu3.1) ...
 +Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
 +Processing triggers for man-db (2.10.2-1) ...
 +Scanning processes...
 +Scanning candidates...
 +Scanning processor microcode...
 +Scanning linux images...
 +
 +Running kernel seems to be up-to-date.
 +
 +The processor microcode seems to be up-to-date.
 +
 +No services need to be restarted.
 +
 +No containers need to be restarted.
 +
 +No user sessions are running outdated binaries.
 +
 +No VM guests are running outdated hypervisor (qemu) binaries on this host.
 </code> </code>
  
Line 53: Line 105:
  
 <code> <code>
-unzip nextcloud.zip+sudo unzip nextcloud.zip
 </code> </code>
  
Line 59: Line 111:
  
 <code> <code>
-unzip nextcloud-27.0.0.zip+sudo unzip nextcloud-27.0.0.zip
 </code> </code>
  
 From the current domain_com directory (one directory level above the nextcloud directory), use the list command with -l option to check the ownership privileges and permissions of the "nextcloud" directory, and it should show ownership by root:root (user:group). From the current domain_com directory (one directory level above the nextcloud directory), use the list command with -l option to check the ownership privileges and permissions of the "nextcloud" directory, and it should show ownership by root:root (user:group).
  
-(code)+<code>
 cd /var/www/dbusername/public_html/yourdomain_com/ cd /var/www/dbusername/public_html/yourdomain_com/
  
 ls -l ls -l
-(/code)+</code>
  
 Then, change the ownership privileges and permissions of the "nextcloud" directory to the "www-data" user and the "www-data" group (recursively '-R' to all files and subdirectories within and below the nextcloud directory), as follows. Then, change the ownership privileges and permissions of the "nextcloud" directory to the "www-data" user and the "www-data" group (recursively '-R' to all files and subdirectories within and below the nextcloud directory), as follows.
  
 <code> <code>
-chown -R www-data:www-data nextcloud+sudo chown -R www-data:www-data nextcloud 
 + 
 +ls -l
 </code> </code>
  
Line 83: Line 137:
 ls -l ls -l
  
-chown -R www-data:www-data data+sudo chown -R www-data:www-data data 
 + 
 +ls -l
 </code> </code>
download_extract_nextcloud_27_0_ubuntu_22_04_apache2.1687364694.txt.gz · Last modified: 2023/06/21 16:24 by wikiadmin