Boran / freenac

FreeNAC provides dynamic vlan assignment, live inventory and LAN access control for Cisco Switches and all kinds of Network devices (PC, Printers, IP phones, Webcams, etc.).
28 stars 14 forks source link

Problem with the dependencies... i guess #2

Closed Liv227 closed 11 years ago

Liv227 commented 11 years ago

Hi Id like to thank you first of all; Freenac plays actually a very nice vmps server for me I wanted to try it out on centos and thats where i kind of stuggled. for one you say here that i should forget about freenac.net but old explanations are better than none ... and for two im kind of havin trouble with the dependencies and their equivalence on centos from ubuntu... please bear with me. im gonna paste the output on /var/log/messages after i try to start vmps...


Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './apc.so' - ./apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './bcmath.so' - ./bcmath.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './phpcups.so' - ./phpcups.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './curl.so' - ./curl.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './dba.so' - ./dba.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './dom.so' - ./dom.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './enchant.so' - ./enchant.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './fileinfo.so' - ./fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './gd.so' - ./gd.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './gv.so' - ./gv.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './imap.so' - ./imap.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './intl.so' - ./intl.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './json.so' - ./json.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './ldap.so' - ./ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './mbstring.so' - ./mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './memcache.so' - ./memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './mysql.so' - ./mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './mysqli.so' - ./mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './odbc.so' - ./odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './pdo.so' - ./pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './pdo_mysql.so' - ./pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './pdo_odbc.so' - ./pdo_odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './pdo_pgsql.so' - ./pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './pdo_sqlite.so' - ./pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './pgsql.so' - ./pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './phar.so' - ./phar.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './posix.so' - ./posix.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './pspell.so' - ./pspell.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './recode.so' - ./recode.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './rrdtool.so' - ./rrdtool.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './snmp.so' - ./snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './soap.so' - ./soap.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './sqlite3.so' - ./sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './sysvmsg.so' - ./sysvmsg.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './sysvsem.so' - ./sysvsem.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './sysvshm.so' - ./sysvshm.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './tidy.so' - ./tidy.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './uuid.so' - ./uuid.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './wddx.so' - ./wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './xmlreader.so' - ./xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './xmlrpc.so' - ./xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './xmlwriter.so' - ./xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './xsl.so' - ./xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 15:53:08 localhost php: PHP Warning: PHP Startup: Unable to load dynamic library './zip.so' - ./zip.so: cannot open shared object file: No such file or directory in Unknown on line 0 Feb 26 16:00:38 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:00:38 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:00:39 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:18:31 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:18:31 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:18:32 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:18:38 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:23:31 localhost vmpsd_external.php[17299]: ERROR: Could not connect to mysql: Access denied for user 'inventwrite'@'localhost' (using password: YES) Feb 26 16:28:40 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:40 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:40 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:40 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:41 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:41 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:44 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:54 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:54 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:54 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:55 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:55 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:55 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:28:58 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:04 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:04 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:04 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:05 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:05 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:05 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:08 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:17 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:29:44 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:31:14 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:31:15 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:31:15 localhost avahi-daemon[6481]: Invalid query packet. Feb 26 16:31:44 localhost vmpsd_external.php[17334]: ERROR: Could not connect to mysql: Access denied for user 'inventwrite'@'localhost' (using password: YES)


I did not install all the dependencies; tried mysql and apache to cover them all... and skipped the replicate database as i dnt have a back up yet

Im hopin u can help. i know its a long shot but i would rather deploy freenac even if my boss if pressurin me to use freeradius if i still am stuck

here is my email hopes.up.ade@gmail.com

Thanks again M Boran

Boran commented 11 years ago

When I said forget about freenac.net, I meant the forum (too much spam), and not the doc, which is still valid.

You are following the documentation at http://freenac.net/en/installguide/linux ? There one sees a list of package names for the PHP modules which are noted as missing in the warnings above. (note that they are warnings, not errors) Those errors happen when? Just try to start the postconnect or vmpsd_external daemons and trace their errors/warnings.

Lets take an example: php5-mysql is given as the package name on Ubuntu On centos, one can first search for a list of php modules with "yum search php", and then the following should work: yum install php-mysql php-pear php-xml php-xmlrpc

Liv227 commented 11 years ago

H i,

The errors happen when I enter /etc/init.d/vmps start so it's way before the postconnect thing ... right? and yes i did stuff like : yum -y install php and yum -y install apache. but as far as the other ones are concerned, i'm not that lucky... Some I find on an RPM search, and some I can not figure out the equivalent name in Centos ( ucf for instance)

Isn't there a VM ready to test on ? a .iso maybe? All the links are dead on the website... Thanks.

Boran commented 11 years ago

Please read what I said above '''On centos, one can first search for a list of php modules with "yum search php", and then the following should work: yum install php-mysql php-pear php-xml php-xmlrpc'''

Liv227 commented 11 years ago

Oh okay. I misread sorry. Ill try it right away On Feb 27, 2013 12:05 PM, "Sean Boran" notifications@github.com wrote:

Please read what I said above '''On centos, one can first search for a list of php modules with "yum search php", and then the following should work: yum install php-mysql php-pear php-xml php-xmlrpc'''

— Reply to this email directly or view it on GitHubhttps://github.com/Boran/freenac/issues/2#issuecomment-14170514 .

Liv227 commented 11 years ago

Hi again,

Thank you. It worked... I think ( still have to test it ) but I can connect via vmps.exe just fine.

um... I can't seem to find the vmps_external... I only have vmps_test , vmps , and postconnect. Is the first one relevant ?

Thanks again.

Liv227 commented 11 years ago

Hello.

Right now I have a problem with the Web interface. "/opt/nac/web isnt a DocumentRoot" says httpd there is no /opt/nac/web/tmp and when I entered setenforce 0 I had this error :

Mar 1 15:01:52 localhost httpd: PHP Fatal error: Class 'Logger' not found in /opt/nac/bin/funcs.inc.php on line 51

Did I mess up?

Boran commented 11 years ago

have you followed http://freenac.net/en/installguide/server/web ? e.g. for creating /etc/apache2/sites-available/nac and updating /etc/apache2/httpd.conf ?

Create /opt/nac/web/tmp if it does not exist.

On 1 March 2013 16:02, Liv227 notifications@github.com wrote:

Hello.

Right now I have a problem with the Web interface. "/opt/nac/web isnt a DocumentRoot" says httpd there is no /opt/nac/web/tmp and when I entered setenforce 0 I had this error :

Mar 1 15:01:52 localhost httpd: PHP Fatal error: Class 'Logger' not found in /opt/nac/bin/funcs.inc.php on line 51

Did I mess up?

— Reply to this email directly or view it on GitHub.

Liv227 commented 11 years ago

um... I actually am running it on CentOS so there s no such a directory and www-data is called apache... so instead I tried to create a virtual host and pasted into it what should have been in /etc/apache2/sites-available/nac I created tmp but I keep getting the same error...

Boran commented 11 years ago

So look for the DocumentRoot directive http://www.cyberciti.biz/faq/howto-find-unix-linux-apache-documentroot/ perhaps its in /etc/httpd/conf/httpd.conf

Also look in your apache logs, e.g. /var/log/eapache2/error.log

On 1 March 2013 23:17, Liv227 notifications@github.com wrote:

um... I actually am running it on CentOS so there s no such a directory and www-data is called apache... so instead I tried to create a virtual host and pasted into it what should have been in /etc/apache2/sites-available/nac I created tmp but I keep getting the same error...

— Reply to this email directly or view it on GitHub.

Liv227 commented 11 years ago

Maybe this link doesn't open in my country... But thanks i'll search on how to find that. Meanwhile can I just ask, can't I just copy paste the content of the web folder onto /var/www/html?

Boran commented 11 years ago

Yes you can. Basically you'll have to learn and expirment :-)

What country?

Liv227 commented 11 years ago

Morocco :)

Okey then. Thank you so much for your patience with me. U've been a great help