Setup Nextcloud 19.0.4 on Fedora 32
-
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
session variables
What is that? I think you mean environment variables?
-
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
session variables
What is that? I think you mean environment variables?
Yes. But I will almost 100% call them session variables. Similar to how I will almost 100% type
doe snot
when I want to saydoes not
. I type that sooo much. -
@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:
session variables
What is that? I think you mean environment variables?
Yes. But I will almost 100% call them session variables. Similar to how I will almost 100% type
doe snot
when I want to saydoes not
. I type that sooo much.Yeah, I understand what you mean.
BTW, what does the now switch do here?
sudo systemctl enable --now mariadb
Isn't this enough?
sudo systemctl enable mariadb
-
@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:
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
session variables
What is that? I think you mean environment variables?
Yes. But I will almost 100% call them session variables. Similar to how I will almost 100% type
doe snot
when I want to saydoes not
. I type that sooo much.Yeah, I understand what you mean.
BTW, what does the now switch do here?
sudo systemctl enable --now mariadb
Isn't this enough?
sudo systemctl enable mariadb
Been a while since I checked, but
enable
alone did not start the service. The--now
switch starts it while enabling it to start on boot.
Basically the same assystemctl start mariadb systemctl enable mariadb
-
Think you need some more sudo in the "Update the PHP Opcache config" section.
And I think you need to be root to create conf files under apache as well:
"Create the nextcloud apache config file" section -
Note to all, I have not yet ran though my instructions in one go. This is basically a copy paste of them as I built up the server.
I'll wipe it tomorrow and do it again to make sure the instructions are solid.
-
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
And I think you need to be root to create conf files under apache as well:
"Create the nextcloud apache config file" sectionNo, because it is created in the local folder and then moved and permissions fixed.
Because you cannot
sudo cat >> /restricted/folder/fuck.conf << EOF
-
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
Note to all, I have not yet ran though my instructions in one go. This is basically a copy paste of them as I built up the server.
I'll wipe it tomorrow and do it again to make sure the instructions are solid.
Well, you did great work anyway. It takes a lot of time to make instructions.
-
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
Because you cannot sudo cat >> /restricted/folder/fuck.conf << EOF
I wouldn't know. I just go root and go to work. I'm too lazy to type sudo a hundred times. Probably frowned upon but I don't care.
-
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
Because you cannot sudo cat >> /restricted/folder/fuck.conf << EOF
I wouldn't know. I just go root and go to work. I'm too lazy to type sudo a hundred times. Probably frowned upon but I don't care.
I'm so used to typing sudo, I type it even when I
sudo su -
into root. -
@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:
Because you cannot sudo cat >> /restricted/folder/fuck.conf << EOF
I wouldn't know. I just go root and go to work. I'm too lazy to type sudo a hundred times. Probably frowned upon but I don't care.
I'm so used to typing sudo, I type it even when I
sudo su -
into root.I've used debian a lot and sudo isn't even installed by default. Well, in a minimal install that is.
-
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
I've used debian a lot and sudo isn't even installed by default. Well, in a minimal install that is.
Yeah, I learned that when I setup my current Unifi and UNMS controllers.
I run those on Debian, and no matter the OS, I always do minimal installs for server instances.
-
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
And I think you need to be root to create conf files under apache as well:
"Create the nextcloud apache config file" sectionNo, because it is created in the local folder and then moved and permissions fixed.
Because you cannot
sudo cat >> /restricted/folder/fuck.conf << EOF
Using
sudo
withtee
works well.sudo tee -a config.php <<EOF 'memcache.locking' => '\\OC\\Memcache\\Redis', 'memcache.local' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'localhost', 'port' => 6379, ), ); EOF
-
@black3dynamite said in Setup Nextcloud 19.0.4 on Fedora 32:
Using
sudo
withtee
works well.I'll try that when I redo the install.
I know I tried
tee
a couple years ago and things did not work right. I might have just screwed up the syntax, causing my own problems. -
@black3dynamite said in Setup Nextcloud 19.0.4 on Fedora 32:
Using
sudo
withtee
works well.Yeah, that works for the apache vhost file, and will work with the nextcloud config file once I work out what to do instead of
head -n 1
for that. -
ok fixed. thanks.
sed '$d'
for the win there. -
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
ok fixed. thanks.
sed '$d'
for the win there.Nice! I was about to post that command.
-
@black3dynamite since you are better with
sed
than I am... Or at least better with Google and the man pages than I am..How can I fix this to use the environment variables instead of manual.
This is part of the next step to use the "pretty URL" as it is called.
It works fine like this.sudo sed -i -e 's/\(^DocumentRoot\s*\).*$/\1"\/var\/www\/html\/nextcloud"/' /etc/httpd/conf/httpd.conf
But I want it to use the above
$WWW_PATH
and$APP_FOLDER
variables. -
@JaredBusch said in Setup Nextcloud 19.0.4 on Fedora 32:
@black3dynamite since you are better with
sed
than I am... Or at least better with Google and the man pages than I am..How can I fix this to use the environment variables instead of manual.
This is part of the next step to use the "pretty URL" as it is called.
It works fine like this.sudo sed -i -e 's/\(^DocumentRoot\s*\).*$/\1"\/var\/www\/html\/nextcloud"/' /etc/httpd/conf/httpd.conf
But I want it to use the above
$WWW_PATH
and$APP_FOLDER
variables.What does the line do exactly?
Sets theDocumentRoot
parameter to/var/www/html/nextcloud
?What does$WWW_PATH
and$APP_FOLDER
contain?
Ah, the first post says:/var/www/html
andnextcloud
-
@Pete-S said in Setup Nextcloud 19.0.4 on Fedora 32:
What does the line do exactly?
Sets theDocumentRoot
parameter to/var/www/html/nextcloud
?Correct.
( # Start a capture group ^ # Matches the start of the line DocumentRoot # Matches the word I am want \s # a space character I should probably remove that. came from an example I found * # umm everything maybe? not sure inside the capture group also likely need removed ) # End capture group .* # Matches anything $ # Matches the end of the line
So,
sed
should find any instance ofDocumentRoot
at the beging of a line. This happens only once in a default Apache config file.The capture group means to capture the term within the parentheses in a variable. This is the
1
in the replacement section of thes///
command.I am then appending "/var/www/html/nextcloud" to the captured string "DocumentRoot" to end up with his