Web interface installation.

Started by Nikita Matov, April 17, 2008, 09:25:26 AM

Previous topic - Next topic

Nikita Matov

Hello, Victor!

I have such question: If I already installed NetXMS server with agent on some PC, how do I install nxhhtpd there?
Should I do ./configure --with-server --with-agent --with-mysql --with-nxhttpd ot just ./configure --with-nxhhtpd ?
I tried them both - and in first case NetXMS doesn't work any more, and in second case web interface does not accept passwords.
May be I am doing something wrong.. How to correctly install nxhttpd on server with NetXMS server?

Victor Kirhenshtein

Correct way should be by adding --with-nxhttps to configuration line, like
./configure --with-server --with-agent --with-mysql --with-nxhttpd
I'll check this on my machine, but it should work...

Best regards,
Victor

Nikita Matov

#2
I have installed server configured with: ./configure --with-server --with-agent --with-mysql
I do ./configure --with-server --with-agent --with-mysql --with-nxhttpd
make
killall netxmsd
killall nxagentd
make install
Then i try to start netxmsd:
test3:~/netxms-0.2.20 # netxmsd -D 9
Using configuration file "/etc/netxmsd.conf"
Configuration file OK
[17-Apr-2008 17:46:54] Unable to set codepage to ISO-8859-1
[17-Apr-2008 17:46:54] Platform subagent "/usr/local/lib/libnsm_linux.so" successfully loaded
[17-Apr-2008 17:46:54] Database driver "/usr/local/lib/libnxddr_mysql.so" loaded and initialized successfully
[17-Apr-2008 17:46:54] DEBUG: New DB connection opened: handle=0x617240
[17-Apr-2008 17:46:54] DEBUG: Successfully connected to database [email protected]
[17-Apr-2008 17:46:54] DEBUG: Failed sync query: "SELECT var_value FROM config WHERE var_name='DBFormatVersion'" [0 ms]
[17-Apr-2008 17:46:54] SQL query failed (Query = "SELECT var_value FROM config WHERE var_name='DBFormatVersion'")
[17-Apr-2008 17:46:54] Your database has format version 0, but server is compiled for version 78

Then I do ./configure --with-server --with-agent --with-mysql
make
make install
and netxmsd starts without problems.