Setup Nextcloud 19.0.4 on Fedora 32
-
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
Could not make it execute without the quotes
But this works.sudo sed -i 's#\(^DocumentRoot\).*$#\1 "'"$WWW_PATH"'/'"$APP_FOLDER"'"#' /etc/httpd/conf/httpd.conf
OK try this then:
sudo sed -i 's#\(^DocumentRoot\).*$#\1 '$WWW_PATH/$APP_FOLDER# /etc/httpd/conf/httpd.conf
That is missing the
"
that need to be around the value. But did make me realize I did not need to do all the quoting around the/
since I changed the delimeter.. habitssudo sed -i 's#\(^DocumentRoot\).*$#\1 "'$WWW_PATH/$APP_FOLDER'"#' /etc/httpd/conf/httpd.conf
Starting to look pretty good I think.
I wonder about the
^DocumentRoot
though. Apache don't need it to be the start of the line. There could be some whitespace first. -
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
I wonder about the ^DocumentRoot though. Apache don't need it to be the start of the line. There could be some whitespace first.
That is because there are 3 instances in the file. But only that one matters.
-
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
I wonder about the ^DocumentRoot though. Apache don't need it to be the start of the line. There could be some whitespace first.
That is because there are 3 instances in the file. But only that one matters.
I understand I'm just thinking about whitespace. It's very common to have indentation in the conf files. Especially when you are putting it under
virtualhost
.Then the regex wont match but works fine in apache.
-
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
I wonder about the ^DocumentRoot though. Apache don't need it to be the start of the line. There could be some whitespace first.
That is because there are 3 instances in the file. But only that one matters.
I understand I'm just thinking about whitespace. It's very common to have indentation in the conf files. Especially when you are putting it under
virtualhost
.This is not in a vhost. this is the main apache config file. Assumption is a single purpose server. anything else is advanced beyond this guide.
-
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
I wonder about the ^DocumentRoot though. Apache don't need it to be the start of the line. There could be some whitespace first.
That is because there are 3 instances in the file. But only that one matters.
I understand I'm just thinking about whitespace. It's very common to have indentation in the conf files. Especially when you are putting it under
virtualhost
.This is not in a vhost. this is the main apache config file. Assumption is a single purpose server. anything else is advanced beyond this guide.
Yeah, makes sense.
-
sudo sed -i 's#(^DocumentRoot).*$#\1 "'$WWW_PATH/$APP_FOLDER'"#' /etc/httpd/conf/httpd.conf
I wonder if the capture group is actually worth it. You're just capturing the static "DocumentRoot".
It's much cleaner without it and less escaping and quoting.sudo sed -i "s#^DocumentRoot.*$#DocumentRoot $WWW_PATH/$APP_FOLDER#" /etc/httpd/conf/httpd.conf
Never mind, not much of an improvement.
-
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
sudo sed -i 's#(^DocumentRoot).*$#\1 "'$WWW_PATH/$APP_FOLDER'"#' /etc/httpd/conf/httpd.conf
I wonder if the capture group is actually worth it. You're just capturing the static "DocumentRoot".
It's much cleaner without it and less escaping and quoting.sudo sed -i "s#^DocumentRoot.*$#DocumentRoot $WWW_PATH/$APP_FOLDER#" /etc/httpd/conf/httpd.conf
and you are still missing the point that the default file has double quotes around it.
required or not, if it is the default format, I will keep it. -
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
sudo sed -i 's#(^DocumentRoot).*$#\1 "'$WWW_PATH/$APP_FOLDER'"#' /etc/httpd/conf/httpd.conf
I wonder if the capture group is actually worth it. You're just capturing the static "DocumentRoot".
It's much cleaner without it and less escaping and quoting.sudo sed -i "s#^DocumentRoot.*$#DocumentRoot $WWW_PATH/$APP_FOLDER#" /etc/httpd/conf/httpd.conf
Ah, it's the regexp.
OK, last chance:sudo sed -i 's#^DocumentRoot.*$#DocumentRoot '$WWW_PATH/$APP_FOLDER# /etc/httpd/conf/httpd.conf
-
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
sudo sed -i 's#(^DocumentRoot).*$#\1 "'$WWW_PATH/$APP_FOLDER'"#' /etc/httpd/conf/httpd.conf
I wonder if the capture group is actually worth it. You're just capturing the static "DocumentRoot".
It's much cleaner without it and less escaping and quoting.sudo sed -i "s#^DocumentRoot.*$#DocumentRoot $WWW_PATH/$APP_FOLDER#" /etc/httpd/conf/httpd.conf
Ah, it's the regexp.
OK, last chance:sudo sed -i 's#^DocumentRoot.*$#DocumentRoot '$WWW_PATH/$APP_FOLDER# /etc/httpd/conf/httpd.conf
That is the same as I have above, less the double quotes around the file path. Well and capture group
-
The top post has been edited to now include the pretty URL and self signed SSL
HTTPS only. HTTP not open on the firewall.
-
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
The top post has been edited to now include the pretty URL and self signed SSL
HTTPS only. HTTP not open on the firewall.
I just followed these through start to finish.
Copy/Paste only. -
Just did this today, except I used Fedora 36 and latest Nextcloud instead of 19.0.4
wget https://download.nextcloud.com/server/releases/latest.tar.bz2
-
You can clear the phone warning by putting this in your
/var/www/html/nextcloud/config/config.php
file. Obviously change the Country Cody appropriately.
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements'default_phone_region' => 'US',
-
Still works on Fedora 37....