I have researched this extensively. I have validated mysql permissions and user/pw. I can connect w/ sql from my mac w/ user/pw in my dbconfig.inc.php and z-ocsinventory-server.conf ...
any help is greatly appreciated
if I try to curl to the url http://server/ocsinventory I also get 500, same if I use browser..?
[Wed Dec 27 22:28:21 2017][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.3.1
[Wed Dec 27 22:28:21 2017][debug] Log system initialised (File)
[Wed Dec 27 22:28:21 2017][debug] --scan-homedirs missing. Don't scan user directories
[Wed Dec 27 22:28:21 2017][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__xxxx_ocsinventory/ocsinv.adm
[Wed Dec 27 22:28:21 2017][debug] OCS Agent initialised
[Wed Dec 27 22:28:21 2017][debug] Failed to load `/etc/ocsinventory-agent/modules.conf': 0
[Wed Dec 27 22:28:21 2017][debug] No modules will be used.
[Wed Dec 27 22:28:21 2017][debug] Compress::Zlib is not available! The data will be compressed with
gzip instead but won't be accepted by server prior 1.02
[Wed Dec 27 22:28:21 2017][debug] sending XML
[Wed Dec 27 22:28:21 2017][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<DEVICEID>ebc-79-2017-12-27-14-53-29</DEVICEID>
<QUERY>PROLOG</QUERY>
</REQUEST>
[Wed Dec 27 22:28:21 2017][debug] =BEGIN=SERVER RET======
[Wed Dec 27 22:28:21 2017][debug] $VAR1 = '<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<REPLY>
<OPTION>
<PARAM TIMEOUT="30" FRAG_LATENCY="10" TYPE="CONF" ON="0" PERIOD_LATENCY="1" PERIOD_LENGTH="10" EXECUTION_TIMEOUT="120" CYCLE_LATENCY="60" />
<NAME>DOWNLOAD</NAME>
</OPTION>
<RESPONSE>SEND</RESPONSE>
<PROLOG_FREQ>24</PROLOG_FREQ>
<INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
</REPLY>
';
[Wed Dec 27 22:28:21 2017][debug] =END=SERVER RET======
[Wed Dec 27 22:28:21 2017][debug] PROLOG_FREQ has not changed since last process
[Wed Dec 27 22:28:22 2017][debug] Failed to load Ocsinventory::Agent::Backend::OS::MacOS::Video: Can't locate Parse/EDID.pm in @INC (you may need to install the Parse::EDID module) (@INC contains: /Applications/OCSNG.app/Contents/Resources//lib/ /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /Applications/OCSNG.app/Contents/Resources//lib/Ocsinventory/Agent/Backend/OS/MacOS/Video.pm line 4.
....
</USERS>
</CONTENT>
<DEVICEID>ebc-79-2017-12-27-14-53-29</DEVICEID>
<QUERY>INVENTORY</QUERY>
</REQUEST>
[Wed Dec 27 22:27:13 2017][error] Cannot establish communication : 500 Internal Server Error