• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Boot.php permissiondenied

Scheduled Pinned Locked Moved
FOG Problems
3
25
14.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X
    Xibeaga
    last edited by Nov 25, 2014, 7:24 PM

    sorry, i forgot:
    chmod +rx boot.php
    did not help

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Nov 25, 2014, 7:25 PM

      Is your /tmp folder allowed to execute files?

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • X
        Xibeaga
        last edited by Nov 25, 2014, 7:31 PM

        Yes, it reads:
        drwxrwxrwt /tmp

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Nov 25, 2014, 7:32 PM

          What’s in the /etc/fstab for the /tmp?

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • X
            Xibeaga
            last edited by Nov 25, 2014, 7:34 PM

            tmpfs /tmp tmpfs defaults,noexec,nosuid,size=10485760 0 0

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Nov 25, 2014, 7:39 PM

              [quote=“Xibeaga, post: 39347, member: 982”]tmpfs /tmp tmpfs defaults,noexec,nosuid,size=10485760 0 0[/quote]

              Remove the ,noexec and restart your system.

              Then try rerunning the installer.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • X
                Xibeaga
                last edited by Nov 25, 2014, 8:09 PM

                okay, i did.
                now install runs clean (including correct UDP cast)

                but when i try to pxeboot a client: boot.php permission denied
                the fog boot-menu never show up

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Nov 25, 2014, 10:08 PM

                  I am only working off of theory here:

                  You have a redirect somewhere? Maybe you’re trying to go: hostnameoffog without actually go to hostnameoffog/fog

                  What’s happening (in my theory) is the file is searching for:

                  hostnameoffog/fog/service/ipxe/boot.php

                  But because of the redirect, it’s trying to go to file:

                  hostnameoffog/service/ipxe/boot.php

                  Because hostnameoffog/service/ipxe/boot.php doesn’t exist, it’s not able to find it, hence permission denied.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • X
                    Xibeaga
                    last edited by Nov 25, 2014, 10:16 PM

                    Hm, no, I only use next-server-option at my DHCP, everything else does not have any redirections.

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Nov 25, 2014, 10:18 PM

                      Is next server pointing at the proper server?

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      1 Reply Last reply Reply Quote 0
                      • X
                        Xibeaga
                        last edited by Nov 26, 2014, 5:52 AM

                        yes. It all runs fine until boot.php

                        1 Reply Last reply Reply Quote 0
                        • J
                          Junkhacker Developer
                          last edited by Nov 26, 2014, 2:48 PM

                          what is the contents of your default.ipxe file? have you changed the IP of the server since you installed?

                          signature:
                          Junkhacker
                          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                          1 Reply Last reply Reply Quote 0
                          • X
                            Xibeaga
                            last edited by Nov 26, 2014, 5:53 PM

                            this: IP looks fine

                            #!ipxe
                            cpuid --ext 29 && set arch x86_64 || set arch i386
                            params
                            param mac0 ${net0/mac}
                            param arch ${arch}
                            isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                            isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                            :bootme
                            chain [url]http://172.16.3.93/fog/service/ipxe/boot.php##params[/url]

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tom Elliott
                              last edited by Nov 26, 2014, 7:53 PM

                              I’m under the impression something else is going on.

                              Is the ONLY error a Permission denied on the boot.php, or are there (even a flash) of a few more lines? Maybe something along the lines of Console error or what not?

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              1 Reply Last reply Reply Quote 0
                              • X
                                Xibeaga
                                last edited by Nov 27, 2014, 6:44 PM

                                Okay, here is a screenshot, maybe this helps.

                                [url=“/_imported_xf_attachments/1/1524_fogerror.png?:”]fogerror.png[/url]

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tom Elliott
                                  last edited by Nov 27, 2014, 8:47 PM

                                  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.

                                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                  1 Reply Last reply Reply Quote 0
                                  • X
                                    Xibeaga
                                    last edited by Nov 27, 2014, 9:21 PM

                                    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:

                                    1. I stopped apache
                                    2. i deleted all logs
                                    3. i launched apache
                                    4. i pxebooted a client
                                    5. 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)”

                                    1 Reply Last reply Reply Quote 0
                                    • X
                                      Xibeaga
                                      last edited by Nov 27, 2014, 9:35 PM

                                      I Found it!
                                      *** OUCH ***
                                      The apache-log revealed it: HTTP 401 is the problem. 401 -> user authorization required!!!
                                      /var/www was protected by .htaccess sigh

                                      I 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

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Tom Elliott
                                        last edited by Nov 27, 2014, 9:41 PM

                                        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.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                        1 Reply Last reply Reply Quote 0
                                        • X
                                          Xibeaga
                                          last edited by Nov 27, 2014, 10:00 PM

                                          Hey, konw I know lots more about fog than i used to know, and i use it since 0.30 or so 😉

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            15/25
                                            Last post

                                          160

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project