4. Apache, MySQL and packages installation

4.1 Install Apache and prerequisites

First, install Apache:

then install Apache packages:

configure modules with CPAN:

Now, restart Apache:

and check if it works. Navigate to either IP Address or Hostname/FQDN if you have DNS Service on some local server:

You should get something like below:

Next, we need to install MySQL server and php-myslql mod:

Provide Root Password for Database

Now, lets add phpMyAdmin

Select Apache as web server, press Yes to configure db for phpMyAdmin with dbconfig-common, provide Root Password from previous step

Create symbolic link to phpMyAdmin .conf for Apache in Apache sites-enabled and restart it:

and try to browse address: http://ocsng_ip/phpmyadmin

VOILA!

First success!

If we are on this page let’s create a DB and user for OCS server!

4.2 Configure OCS Database and user

Remember the “Generate Passwords” part of Preparations, right?

Login to your DB with Root login and Password set earlier.

Now, navigate to „Users” and click „Add User

In the new form fill in User Name and Password. I simply pressed Generate, check the field to create a DB with the same name and grand all privileges to it:

BIG IF HERE: If you would like to use this user to connect from other hosts to this DB (for example GLPI server) do not change Host field to localhost!

Otherwise, continue:

Let’s sum up what we have so far:

  • We have working linux
  • Working Apache
  • Working phpMyAdmin
  • Installed all necessary packages and mods

Let’s finally install that OCS NG Server!