OpenDCIM

Einfach Dinge, die nichts mit XAMPP, Apache Friends, Apache, MySQL, PHP und alle dem zu tun haben. Allerlei halt. ;)

OpenDCIM

Postby KingzAnaconda » 07. November 2016 15:12

Hello guys
Im kinda new to this forum and I don't know if you guys can help me.
But I've been searching for a solution for a while now on the internet and on the openDCIM sites and stuff I can't get a decent solution.
So I will tell you guys my problem and hopefully you can help me :).
I installed OpenDCIM on a Centos 6.5 on a virtual machine using VMWare. I followed the unixmen site step by step. (Link: https://www.unixmen.com/opendcim-free-open-source-data-center-management-tool/ ).
At the end though I stumbled upon a little problem. I can't restart my apache server.
I didn't have any problems restarting it until I reached the step to create a virtualhost.
After correcting some syntax errors, I found out I still had to create the /var/www/opendcim directory. This happens in the last steps though.
This is the code I wrote in that virtualhost creation file.
Code: Select all
<VirtualHost *:443>
ServerAdmin root@rekencentrum.com
DocumentRoot /var/www/opendcim
ServerName rekencentrum.com
<Directory /var/www/opendcim>
AuthType Basic
AuthName "openDCIM"
AuthUserFile /var/www/.htpasswd
Require valid-user
</Directory>
</VirtualHost>

Beneath you can find what I wrote in the db.inc.php file. I configured my password to 123456 with the mysql -u root -p command line thing.
Code: Select all
$dbhost = 'localhost';
$dbname = 'dcim';
$dbuser = 'dcim';
$dbpass = '123456';


Can someone please help me fix this why I can't restart my apache server?

Cheers
KingzAnaconda
 
Posts: 2
Joined: 07. November 2016 15:00
XAMPP version: 0.0.0.0
Operating System: Centos 6.5

Re: OpenDCIM

Postby KingzAnaconda » 08. November 2016 10:54

Nevermind guys I've found the solution.
Apparently the installation process that I was following on unixmen is wrong.
Well not completely wrong, but it forgot some lines that I needed to write in order to make this work.

Instead of this:
Code: Select all
<VirtualHost *:443>
     ServerAdmin root@rekencentrum.com
     DocumentRoot /var/www/opendcim
     ServerName rekencentrum.com
      <Directory /var/www/opendcim>
          AuthType Basic
          AuthName "openDCIM"
         AuthUserFile /var/www/.htpasswd
         Require valid-user
    </Directory>
</VirtualHost>


I needed to write this (just needed to add 3 lines):
Code: Select all
 <VirtualHost *:443>
     SSLEngine On
     SSLCertificateFile /etc/pki/tls/certs/ca.crt
     SSLCertificateKeyFile /etc/pki/tls/private/ca.key
     ServerAdmin root@rekencentrum.com
     DocumentRoot /var/www/opendcim
    ServerName rekencentrum.com
    <Directory /var/www/opendcim>
       AuthType Basic
       AuthName "openDCIM"
       AuthUserFile /var/www/.htpasswd
       Require valid-user
   </Directory>
</VirtualHost>
KingzAnaconda
 
Posts: 2
Joined: 07. November 2016 15:00
XAMPP version: 0.0.0.0
Operating System: Centos 6.5


Return to Allerlei

Who is online

Users browsing this forum: No registered users and 10 guests