Howtos:Install OCS on WAMP
Error creating thumbnail: File missing
- 1 Installation of OCS Inventory NG Server on Windows, without using OCS packaged version
- 2 Context
- 3 Components to download
- 4 WAMP installation
- 5 PERL installation
- 6 PERL modules installation
- 7 mod_perl installation
- 8 Apache configuration
- 9 Installation of OCS Inventory NG Server
Installation of OCS Inventory NG Server on Windows, without using OCS packaged version
We have a WAMP server so we don't want to use packaged version of OCS Inventory NG Server under XAMPP. So we have to configure our WAMP server to host OCS. Other possibility, we prefer WAMP to XAMPP. In this exemple, I will use WAMPSERVER 2.2D, compiled with Apache 2.2.21, Php 5.3.10, Mysql 5.5.20, XDebug 2.1.2, XDC 1.5, PhpMyadmin 220.127.116.11, SQLBuddy 1.3.3 and webGrind 1.0, ActivePerl 5.14.2, Nmake 1.5, OCS Inventory NG Server 2.0.4 and OCS Inventory NG Agent 2.0.4. This installation is made on a Windows XP 32bits.
Components to download
Download and unpack the following packages:
- WAMPSERVER 2.2D [www.wampserver.com]
- OCS Inventory NG Server for Linux in folder <<OCS_FOLDER>> (preferred C:\Program Files\OCS Inventory NG) [www.launchpad.net]
- Last OCS Inventory NG Agent for Windows in folder <<AGENT_FOLDER>> [www.launchpad.net]
- ActivePerl [www.activestate.com]
- NMake [www.microsoft.com]
Launch wampserver2.2d-x32.exe and click on [ Next ].
Accept the agreement and click on [ Next ].
Define the installation directory and click on [ Next ]].
Choose if you want to create a Desktop icon or a Quick launch icon and click on [ Next ].
Then, click on [ Install ].
Finally, click on [ Finish ].
You can now access to your web server with your browser on : http://localhost
|Note: Maybe you will have to reboot your computer.|
Launch ActivePerl-18.104.22.1682-MSWin32-x86-295342.msi. Click on [ Next ].
Accept the terms and Licence Agreement and click on [ Next ].
Select what you need (all packages by default) and click on [ Next ].
Choose Setup options (two first by default) and click on [ Next ].
Finally, click on [ Finish ].
OK, perl is installed.
Now, copy nmake15.exe download before and copy it in folder C:\Perl\bin.
PERL modules installation
Installation througt Perl Package Manager
Some PERL modules are already installed with ActivePerl. To view list of installed PERL modules, run command ppm to open PERL package manager.
Start > Execute, type ppm and click on OK.
Perl Package Manager opening and synchronising database.
|Note: Wait few minutes, sometimes it's very long (around five minutes).|
By default, DBI, XML::Simple and Compress::Zlib are already installed.
Ensure that module versions are greater than the required once listed in README. To setup the other modules, you just have to run the following command (need Internet connection ) :
ppm install <<package_name>> (take care to the case).
For example :
- ppm install DBD::Mysql
- ppm install Apache::DBI
- ppm install Net::IP
If you want to use SOAP web service, you must also install modules SOAP::Lite (0.66 or higher), and XML::Entities (0.02 or higher).
If you are blocked by a proxy or if you have not access to internet, you can install theses modules manually.
- Download all modules in zip format [www.apache.org]
- Uncompress theses files
- Launch a Windows terminal
- Place you in the directory where you uncompress modules
- Use command ppm install file.ppd
You can use the script available here: [modperl-install] Save this script on you computer (file name is not important, for exemple mpinstall. Then open a Windows terminal, place you in the directory where you placed your script, and launch perl mpinstall. You just have to answer to questions.
Other solution, using directly ppm command like this :
During the install process, you will be asked for Apache module folder, where to copy mod_perl.so file. In my exemple, C:\wamp\bin\apache\Apache2.2.21\modules. For more informations about mod_perl setup, refer to [http://perl.apache.org]
Edit your apache configuration file httpd.conf and add these 2 lines to load perl.
LoadFile "C:\Perl\bin\perl514.dll" LoadModule perl_module modules/mod_perl.so
Save your configuration file and DON'T FORGET to restart Apache.