Hey guys! Thanks for joining me again. In this video we're going to be discussing
Apache 2
But we're more going to focus more on Apache 2
PHP and MySQL. So, we are in essence
going to configure and setup a lampstack
through this video and the next video. This video is going to be more
of a beginners
point to actually install
everything necessary and get a basic configuration set up
and then the next video, we're going to be going through more advanced
configurations that you might want to do.
So, pull up terminal,
and install all necessary packages.
So sudo apt-get install
apache2
php5
mysql server
php5 common
and that should do it for now.
So, hit Yes. It is going to
download about 40 megabytes of data. So, this may take a little
bit of time, depending on your connection.
So, Apache is the server,
that runs quite a bit on the internet.
and basically allows you to host websites and stuff.
So, if I were
working with my server
through ssh or something.
I would be doing this to install Apache and whatnot on it
to be able to get it to actually serve
webpages and content.
So, that is why you would use Apache. Now, you might just be
playing around with creating websites
and you find that you need to...
I found actually recently that, you can't use less .js
without going through a server and the domain and stuff.
If you just load it up. If you,
create a basic html file
that uses less and the less js file,
you can't just open like file:// and then the file path
you're actually going to have setup Apache
and serve it as a web page on local hosts.
So, with mysql,
which is another sql server that, this is more commonly used
with php
and for a good reason. I mean, it's good it's just not,
not my preference. I really like, mongo db
and mysql is more compatible with php from what I understand.
And so, you might use this if your hosting a Wordpress blog, or if you're
doing a PHP - mySql development or if you're maintaining something.
So, the mySQL servince needs a
root password. So, the username is root
and the password is going to be whatever you set it to.
We'll set it to this.
We're going to have to retype it.
and I think that's the only
user interaction that this is going to require.
It should just return me to the prompt any moment and we'll get to
how to start
Apache and PHP and whatnot.