centos booked v3
TRANSCRIPT
-
8/10/2019 CentOS Booked v3
1/18
Installing Booked scheduler on CentOS 6.5
This guide will assume that you already have CentOS 6.x installed on your computer, I did a plain
vanilla Destop! install into a "irtual #ox "$ %or this test, should &e the same %or most real metal
installations. This should also wor %or some o% the minimum installs on the CentOS installer dis, &utit has not &een tried. $ost o% it is command line and it pretty well pics up right a%ter you mae your
%irst '%orced( user account. I used sudo %or everything as opposed to logging in as the root account
which is pro&a&ly pretty common %or most hosting companies. )ou will need some sort o% elevatedprivileges in order to mae this install, a&ility to install pacages, change permissions on %iles, etc.
So lets start at the &eginning, log in as your user account and open a terminal, we are going to set up theuser account to &e a&le to assume %ull control.
Type*
su
%ollowed &y the root user+s password that you created when you installed the OS
ow type the %ollowing to edit the sudoers %ile*
vi /etc/sudoers
-
-
8/10/2019 CentOS Booked v3
2/18
-
8/10/2019 CentOS Booked v3
3/18
-
8/10/2019 CentOS Booked v3
4/18
'O I have &een advised that the use o% phpmyadmin can &e a security ris. 3dding the 55
repository is only needed i% you are going to add phpmyadmin. I% you decide not to installphpmyadmin, sip this step.
#ac in the terminal we need to start installing some pacages, depending on the version o% install you
used, some o% these might &e installed already, &ut it is a good idea to go through and run the installsanyway, )7$ will tell you i% there is nothing to do. The %irst thing we need to do is install the 5xtra
acages %or 5nterprise inux 'epel(. Type*
sudo r&% *+vh htt&//do!nload.,edora&ro-ect.org/&u/e&el/6/i06/e&el*release*6*0.noarch.r&%
8hen it %inishes chec to see i% it is installed &e typing*
sudo $u% re&olist
)ou should see the epel repository listed with any other repos that you have installed, as you can see Ionly have the &asic &uilt in repos plus the epel repo installed. )ou also should have noticed that you
didn+t need to type your password again, sudo caches this %or -9 minutes to save you some time.
On to the other things...
:
-
8/10/2019 CentOS Booked v3
5/18
Type*
sudo $u% install htt&d
This is the 3pache we& server, on my machine it was already installed so it looed lie this*
$ove on to the other things and run them through.
sudo $u% install %$s#l %$s#l*server
sudo $u% install &h& &h&*%$s#l
sudo $u% install &h&%$ad%in *see note above about phpmyadmin, it is not a required package
I% you get any additional dialog &oxes, you can pretty much 0ust answer ')(es.
ow that we have everything installed, we need to start some services and chec to mae sure thingswor. 8e+ll start 3pache and set it to start automatically at &oot, again &ac in terminal*
sudo service htt&d start
Since I don+t have any DS servers set up, I get the error that it can+t determine the server name, not a
&ig deal right now, you can %ix this &y maing sure your DS server has the correct in%ormation
pointing to your #ooed server, or you can edit the ;etc;hosts %ile to point to your #ooed server'shown later in this guide(. ow mae the service start at &oot*
sudo chkcon,ig htt&d on
9
-
8/10/2019 CentOS Booked v3
6/18
-
8/10/2019 CentOS Booked v3
7/18
-
8/10/2019 CentOS Booked v3
8/18
8e need to set up the mys1l parts, so we need to go &ac to terminal and type*
sudo %$s#l
-
8/10/2019 CentOS Booked v3
9/18
5xit out o% mys1l and type the %ollowing to chec another aspect*
%$s#lad%in *u user*& status
ow let+s try @myadmin, so type it+s address into the &rowser '4.7.7.4/&h&%$ad%in(and youshould get a login page.
5nter the root user and password that you 0ust created and you should &e in.
F
-
8/10/2019 CentOS Booked v3
10/18
#e%ore we get to dealing with #ooed, we have another very important command to run, this sets the
permission %or 3pache to access the data&ases. #ac in terminal type the %ollowing*
sudo setseool * htt&d
-
8/10/2019 CentOS Booked v3
11/18
age down to the $odule Settings! section, uncomment the date.time/one 'remove the G!( and add
your correct time /one to the document. Then save and 1uit.
ow we can deal with the #ooed con%ig %ile, go to the extracted %older and edit the time/one and
insert an install password lie the directions say you should do. It+s covered pretty well in the included
directions so I didn+t get any screen captures.
--
-
8/10/2019 CentOS Booked v3
12/18
8e now need to copy the #ooed %iles into the we& server %olders to &e a&le to serve them up to users.
Since we still need root, this means a trip &ac to the terminal*
cd >/?o!nloads/ooked
sudo c& *@ /var/!!!/ht%l
This should only tae a %ew seconds &ecause the %iles are not &ig. aunch the >ile #rowser and
navigate to the ;var;www;html %older and chec to mae sure everything is there.
-2
-
8/10/2019 CentOS Booked v3
13/18
ow we need to set permissions on those %iles, again &ac to terminal*
sudo chgr& a&ache /var/!!!/ht%l *@
sudo ch%od gr! /var/!!!/ht%l *@
The A stands %or recursive and will tunnel down through all su& %olders and %iles to assign the 3pache
group and read;write;exec %or that group to all the %iles. This may &e a &it heavy handled, the tpl and
tplHc %olders need this level o% privileges. ot sure i% the other %iles really need this much. )ou canchec to mae sure things wored &y going &ac to the >ile #rowser and opening the tpl %older, right
clic on a %ile and see i% it has read and write listed %or the 3pache group.
-4
-
8/10/2019 CentOS Booked v3
14/18
Time to give this a whirl, good idea to restart the httpd service. Then open a we& &rowser and type into
the address &ar*
4.7.7.4/De/install
ote the capital 8 on we& or it will not reach the page. 5nter your installer password that you typedinto the #ooed con%ig %ile.
-:
-
8/10/2019 CentOS Booked v3
15/18
ow type in the data&ase root account and root password, chec the three &oxes and hit the Aun
Installation &utton.
I% it all wored, you should see something lie this*
-9
-
8/10/2019 CentOS Booked v3
16/18
ow you need to test it. o &ac to -2
-
8/10/2019 CentOS Booked v3
17/18
5diting the hosts %ile. Open up a terminal and type*
sudo vi /etc/hosts
at the &ottom o% the %ile add your server I 'ta&( server >BD '%ully 1uali%ied domain name(.
Save it with !"3nd 1uit #". ow when you restart httpd or mys1ld there should &e no error a&out%inding the address and should loo pretty much lie this*
3gain, i% you have a DS server set up properly, you would have never seen the errors in the %irst
place. 3 DS server is really the &etter place to resolve this as it is easier to change things as a systemevolves and I addresses change.
-
-
8/10/2019 CentOS Booked v3
18/18
That+s it, you should now &e ready to test #ooed on a CentOS 6.x server. Some o% the holes will need
to &e patched, the %irewall will need to &e opened, etc., &ut this gives the &asic rundown o% what youneed to do to get #ooed %unctional on a CentOS server. The reason I wrote this is &ecause I spent
considera&le time trying to get this woring. 3 1uic 1uestion on the CentOS %orums solved the last
mystery a&out the setse&ool command which allowed 3pache to tal to the data&ase. #e%ore learning
this I was stuc not &eing a&le to get #ooed to connect to the D#, even i% I went through the manualprocess o% setting the D# up. Since @ $y 3dmin was a&le to connect, I thought there must &e some
other pacage missing that #ooed needed. One simple command that I didn+t %ind with we& searches
completely stopped me. ot sure i% anyone else will run into this pro&lem, &ut thought it was at leastworth documenting so I would have it in my %iles %or re%erence when I needed to set this up %or real.
This guide written &y reg 5ndler, 3pril 6, 2=-:. That should serve as enough o% a statement o%ownership, should pro&a&ly &e gpl or copyle%t or something lie that, I+ll 0ust have ic %ile it with the
rest o% the documents %or distri&ution. It was compiled %rom tips gathered %rom several sources, put into
a somewhat cohesive %orm to do the speci%ic tas o% getting #ooed running so I can test somemodi%ications to the code to mae #ooed do a couple things we need on our production system, and to
prepare %or the time when we can install our production system. I may revise this when I get more in%o
a&out plugging security holes and maing sure the we&server has all the con%iguration it needs. I+ll try
to mae sure any revised versions end up with ic.
ood luc, hope everything wors %or you.
-E