OpenNetAdmin

Track. Automate. Configure.

Home About Features Community Develop
Download this project as a tar.gz file

Error: Add new host

danholdridge

12-09-2011 08:08:29

Hello. I'm new to this, so I apologize if this seems trivial.

So the problem I'm having is after adding a new host to a subnet, I can't see the new host in the list on the display page for the subnet. It looks like its trying to load, then I get a pop-up saying the server returned a 500 status. So I checked the apache logs, and I see this error multiple times:

PHP Warning: fopen(/var/log/ona.log): failed to open stream: Permission denied in /var/www/ona/www/include/functions_general.inc.php on line 12

I've checked that the log file has proper permissions to allow it to be written to. I'm not sure what is wrong.

Matt

12-09-2011 09:01:28

The /var/log/ona.log file must be writable by your web server. if a 'chmod 666 /var/log/ona.log' does not fix the problem then you may have something else in place like apparmor or some other system level restriction not allowing the file to be written to.

You could also try changing the log path to somewhere else if you can access the system config settings in ONA. If not it would require a SQL update directly to the sys_config table in your database.

danholdridge

12-09-2011 09:16:53

Looks like it's an selinux problem; I'll have to get a policy written for it. Thanks for the help.