Tip:
Highlight text to annotate it
X
Hello, umm... In this show... Welcome by the way.. Umm.. I want to show you how I set up
my PHP development environment. And basically I want to show you how I did this. Umm.. If
I type in Eclipse dot work space [types eclipse.ws] I see that I have a folder that I have control
of through apache and its umm.. its put into the home work place. If I go over here and
I navigate through the umm.. right there is eclipse workspace and I put it in this folder
right here. So I have another folder that.. called.. what's it called... info PHP [types
info.php] and you see that. So, how is this done..? well lets get out of this and I will
show you. First you should have apache installed. IF you installed apache you see the it works
umm.. page. And we can find out what version of apache we have by typing apache 2 version..
and don't forget the minus sign. And it tells us that its apache 2.2.22 Ubuntu. So the next
thing that we want to do is umm.. Were going to, lets navigate to the umm.. ETC apache
sites available directory. In here we see the default. What we want to do is we want
to make a copy of that. Go do it as sudo. and we will copy it to our umm.. area. ok?
Next we want to edit that file, so... and.. and what we'll do is we'll replace local host
with eclipse and yes.. and we will replace all of them... actually we will only replace
this in two areas. Next we want to replace this with the directory that umm.. our folder
is in. And our folder happens to be in this directory which is the home.. let me write
it out.. home/ray/eclipse.ws/php and this has to be done twice here and here. and I
believe.. Oh, the last thing that I need to do is I need to add a server name. So lets
do that just cut and paste this over here and delete. Ok? so we've added the server
name, tag, pointing to eclipse. because this differentiates, now this will going to.. this
points to what is the host file. We will talk about that next. So lets save that. Now I
just mentioned the host file so lets edit that file. this is H O S Host, and I want
to gedit ok? here I am going to add eclipse.ws and I am going to save it. So now I have 2
servers, and apache will differentiate using the umm.. sites available symbolic link type
of thing they have set up there. Now what we need to do is we need to enable the site
we'll do this. And its umm// what is it.. apache 2 enable site [a2ensite] and the site
that we want to enable is eclipse.ws ok? So it says to reload also. So we will do that
by sudo ok? and it reloads. So now if I go over here I see that I E C L I P S E dot WS
[eclipse.ws] I see the hello which happens to be this file, my eclipse folder, PHP Global
text editor, I see hello. And if I put in world, and save it. Come back over here..
and refresh it says hello world. And so that's how I mat my workspace through apache. Hope
this is helpful. Have a great day keep coming back, I plan on making more of these videos..
Click like.