Boot.php permissiondenied
-
Well the good news is its not really the boot.php that’s having the error but I’m not sure where the boot script is failing.
Can you set the permissions for the while service ipxe folder? Maybe: [code]chmod -R 777 /var/www/fog/service/ipxe[/code]
Also can you give us your Apache error log directly after this occurs? Also is thus happening on all systems.
-
Okay, i did. no change to the behaviour.
I recognized that dir ipxe is not owned by “www-data” but by “fog”, the contents of ipxe are also owned by “fog”
everything else is owned by “www-data” it seems.And YES this appears on all clients, also with different hardware
How i generated the logfile:
- I stopped apache
- i deleted all logs
- i launched apache
- i pxebooted a client
- stopped apache
Unfortunately ther is exactly 1 line in the logfile:
172.16.3.51 - - [27/Nov/2014:22:15:43 +0100] “POST /fog/service/ipxe/boot.php HTTP/1.1” 401 722 “-” “iPXE/1.0.0+ (3a02)”
-
I Found it!
*** OUCH ***
The apache-log revealed it: HTTP 401 is the problem. 401 -> user authorization required!!!
/var/www was protected by .htaccess sighI am really sorry to have bothered you with this, on the other hand: I would have had no chance to figure it out without your hint to check the apache-log
THANKS A LOT !!!
Best regards!
Xibeaga -
No problem and glad to be of some kind of assistance. The folder should be owned by fog and www-data/apache. This is specific to allow kernel updates to work properly.
-
Hey, konw I know lots more about fog than i used to know, and i use it since 0.30 or so