Saturday, December 28, 2019

Install OwnCloud on Ubuntu 18.04 LTS with Apache2, MariaDB and PHP 7.1

 

okay now that we have installed Ubuntu
onto a mini PC let's turn this mini PC
into a personal cloud storage using own
cloud I've done many video tutorials on
installing on cloud onto Ubuntu and
raspberry pi I'm just gonna copy and
paste the command from my website I'm
gonna briefly go through them if you
want to know in detail what they do you
can read them from my website the link
is in the description box below so go
ahead and navigate to my website here
scroll down a little bit and lessons
it's all Apache - HTTP server like I
said I'm just gonna copy and paste and
hit enter it gives me a chance to also
test that the commands are properly
working
now let's see sable directory listing
and whenever the server reboots let's
make it so we can stop and restart now
let's install Maria database server this
is the only database that we're going to
be working with
nice install again let's let's make it
so we can stop and restart if the server
when we reboot the server let's secure
the the server enter the following
command and here just press ENTER set
root password yes enter a password make
a note of that password as well re-enter
the password and then remove anonymous
user yes
disable log in remotely yes remove test
database and access to it yes we low
privilege tables now yes
okay now let's restart the database
server
okay now let's enter the
in command to download an upgrade and
install PHP 7.1
press ENTER here when prompted
okay now let's do an update
and install PHP 7.1 and related modules
make sure to copy the command and
nothing else
now enter the following command and
let's edit the php.ini now for me I put
this six lines to edit but the most
important ones is the upload max file
size to 100 Meg's the one immediately on
top memory limit 256 and the time zone
which is all the way in the bottom so
I'll just search for it by typing ctrl W
and then enter the name as it appears on
the screen and change it to in this case
256 Meg's now again ctrl W upload max
file size and here change it to 100
Meg's okay
once done ctrl W and sorry for date dot
timezone and in my case in the US
Florida as well
enter America for slash Florida you can
keep working on the others if you want
I'm just gonna control X yes and press
ENTER to save and then let's create an
on cloud database
okay so let's connect to Maria database
and to the password there's a password
you created earlier remember and now
create that a base called
own cloud
okay now let's create a user and a
password for that user
now you can change it to something other
than the default instead of use your own
cloud and password password here I'm
gonna change it to my name so change it
don't leave the default there it's not
recommended
so okay I put my name and then password
I'll enter my password here okay well
done press ENTER and let's grant that
user full access to the database by
entering the following command now we
need to change again the default on
cloud name or on cloud user name to the
same name you enter right above so in
this case is Miguel so enter Miguel and
then change when it says password here
the exact same password you enter on the
command above once done press ENTER then
flush privileges and exit
okay I'll clear the screen here and
install the latest version of ownCloud
at the time of this video 10.0 that
eight is the latest version in case of a
new release from the command just
changed the ten that 0.8 to the latest
version then hit enter
okay once done let's unzip it
let's move on cloud to the HTML
directory by mistake I copy the command
and left the s out so make sure to copy
the entire command and hit enter
now let's set permissions to the HTML on
cloud directory by entering the
following command this commands will
allow us to edit modify or execute
anything inside of that directory
okay now let's edit the unclogged calm
okay now copy and paste this block of
text which says avoid errors com of dub
dub dub avoid errors comm you can edit
it to something other than that
for example the IP address or the LAN IP
address of the own cloud server or you
can change it to whatever you want this
is not critical so I'll just copy and
paste it just because you haven't
modified the the server name or server
and alias that doesn't mean you won't be
able to connect you'll still are gonna
be able to connect once done press
control X then Y and enter to save now
let's an enable own cloud and rewrite
module I'll do this a little fast every
time you enter a command is gonna ask
you to restart but enter all the
commands or execute all the commands I'm
sorry and at the very end then restart
ok upon restart we will need to access
our own cloud instance from the land
first we'll need the IP address of our
server so type ifconfig and hit enter in
this case I need to install net tools so
enter the following command apt install
and net tools keep in mind that if you
need to access your own cloud from the
LAN or outside of your network you would
first need access to it from the land is
critical if you don't have access to it
from the land you'll never have access
to it from the when our IP address is 10
at 0 that's 0.163
write it down or make a note of it once
done we can access our own cloud
instance from another computer inside of
the same Network
or from the same Ubuntu PC you have own
cloud installed I'm using a different
computer in the network and I'll enter
10.0 that 0.163 the IP address for / own
cloud and hit enter once here create an
admin account now underneath of that vs.
database user database password database
name we will enter what we created
earlier in our when we were configuring
our database remember so it'll be Miguel
the password for that user and own cloud
which is our database then hit finished
setup reenter the account you created we
into the username and password and
you'll be able to log in to your own
cloud instance without any problems
thank you

No comments:

Post a Comment

VPS vs Cloud Hosting | Should You Use Web hosting?

  cloud hosting verse virtual private servers which one should you choose well ...