• 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 24, 2014, 3:35 PM

    Hi!

    I run FOG on Debian and encounter this strange problem:
    Clients boots by TFTP then it reads:
    “boot.php permission denied”
    then client reboots.
    i checked any file permissions, they look great.
    Does anyone have this issue too?
    regards!

    1 Reply Last reply Reply Quote 0
    • J
      Junkhacker Developer
      last edited by Nov 25, 2014, 3:33 PM

      if you navigate to [url]http://<fog-IP-address>/fog/service/ipxe/boot.php[/url] in a web browser, what shows up?

      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 25, 2014, 6:25 PM

        Hi!

        #!ipxe
        cpuid --ext 29 && set arch x86_64 || set arch i386
        colour --rgb 0xff6600 2
        cpair --foreground 7 --background 2 2
        console --picture [url]http://172.16.3.93/fog/service/ipxe/bg.png[/url] --left 100 --right 80
        :MENU
        menu
        colour --rgb 0xff0000 0
        cpair --foreground 0 3
        item --gap Host is NOT registered!
        item --gap – -------------------------------------
        item fog.local Boot from hard disk
        item fog.memtest Run Memtest86+
        item fog.reginput Perform Full Host Registration and Inventory
        item fog.reg Quick Registration and Inventory
        item fog.sysinfo Client System Information (Compatibility)
        choose --default fog.local --timeout 3000 target && goto ${target}
        :fog.local
        exit || goto MENU
        :fog.memtest
        kernel memdisk iso raw
        initrd memtest.bin
        boot || goto MENU
        :fog.reginput
        kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=172.16.255.254 keymap= web=172.16.3.93/fog/ consoleblank=0 loglevel=4 mode=manreg
        imgfetch init_32.xz
        boot || goto MENU
        :fog.reg
        kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=172.16.255.254 keymap= web=172.16.3.93/fog/ consoleblank=0 loglevel=4 mode=autoreg
        imgfetch init_32.xz
        boot || goto MENU
        :fog.sysinfo
        kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=172.16.255.254 keymap= web=172.16.3.93/fog/ consoleblank=0 loglevel=4 mode=sysinfo
        imgfetch init_32.xz
        boot || goto MENU
        autoboot

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

          What if you add execute and read perms to the file:

          [code]sudo chmod r+x /var/www/fog/service/ipxe/boot.php[/code]

          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:23 PM

            Hi Tom!

            OS: Debian 7
            FOG: 1.2.0
            Logfile: there seems to be a problem with udpcast (see: at eof)

            –LOG-----
            ###########################################

            FOG

            Free Computer Imaging Solution

            [url]http://www.fogproject.org/[/url]

            Developers:

            Chuck Syperski

            Jian Zhang

            Peter Gilchrist

            Tom Elliott

            GNU GPL Version 3

            ###########################################

            Version: 1.2.0 Installer/Updater

            What version of Linux would you like to run the installation for?

                  1) Redhat Based Linux (Redhat, CentOS, Mageia)
                  2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
            

            Choice: [2]

            Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.

            FOG Server installation modes:
            * Normal Server: (Choice N)
            This is the typical installation type and
            will install all FOG components for you on this
            machine. Pick this option if you are unsure what to pick.

              * Storage Node: (Choice S)
                  This install mode will only install the software required
                  to make this server act as a node in a storage group
            

            More information:
            [url]http://www.fogproject.org/wiki/index.php?title=InstallationModes[/url]

            What type of installation would you like to do? [N]

            What is the IP address to be used by this FOG Server? [Adresse:172.16.3.93]

            Would you like to setup a router address for the DHCP server? [Y/n]
            What is the IP address to be used for the router on the DHCP server? [172.16.255.254]

            Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n]
            What is the IP address to be used for DNS on the DHCP server and client boot image? [172.16.255.254]
            Would you like to change the default network interface from eth0?
            If you are not sure, select No. [y/N]y
            What network interface would you like to use? bond0

            Would you like to use the FOG server for DHCP service? [Y/n] n

            This version of FOG has internationalization support, would
            you like to install the additional language packs? [y/N]

            Would you like to donate computer resources to the FOG Project
            to mine cryptocurrency? This will only take place during active
            tasks and should NOT have any impact on performance of your
            imaging or other tasks. The currency will be used to pay for
            FOG Project expenses and to support the core developers working
            on the project. For more information see:

            [url]http://fogproject.org/?q=cryptocurrency[/url]

            Would you like to donate computer resources to the FOG Project? [y/N]

            #####################################################################

            FOG now has everything it needs to setup your server, but please
            understand that this script will overwrite any setting you may
            have setup for services like DHCP, apache, pxe, tftp, and NFS.

            It is not recommended that you install this on a production system
            as this script modifies many of your system settings.

            This script should be run by the root user on Redhat or with sudo on Ubuntu.

            ** Notice ** Redhat users will need to disable SELinux and iptables in
            order to use FOG
            Please see our wiki for more information at [url]http://www.fogproject.org/wiki[/url]

            Here are the settings FOG will use:
            Base Linux: Debian
            Detected Linux Distribution: Debian
            Installation Type: Normal Server
            Server IP Address: 172.16.3.93
            DHCP router Address: 172.16.255.254
            DHCP DNS Address: 172.16.255.254
            Interface: bond0
            Using FOG DHCP: 0
            Internationalization: 0
            Donate: 0

                 DHCP will NOT be setup but you must setup your
                 current DHCP server to use FOG for PXE services.
            
                 On a Linux DHCP server you must set:
                     next-server
            
                 On a Windows DHCP server you must set:
                     option 066 & 067
            
                           Option 066 is the IP of the FOG Server: (e.g. 172.16.3.93)
                           Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe)
            

            Are you sure you wish to continue (Y/N) y

            Installation Started…

            Installing required packages, if this fails
            make sure you have an active internet connection.

            • Preparing apt-get

            • Installing package: apache2

            • Installing package: php5
              ^[^ * Installing package: php5-json

            • Installing package: php5-gd

            • Installing package: php5-cli

            • Installing package: php5-mysql

            • Installing package: php5-curl

            • Installing package: mysql-server

              We are about to install MySQL Server on
              this server, if MySQL isn’t installed already
              you will be prompted for a root password.

              Press enter to acknowledge this message.

            Paketlisten werden gelesen…
            Abhängigkeitsbaum wird aufgebaut…
            Statusinformationen werden eingelesen…
            Die folgenden Pakete werden aktualisiert (Upgrade):
            mysql-server
            1 aktualisiert, 0 neu installiert, 0 zu entfernen und 64 nicht aktualisiert.
            Es müssen 73,9 kB an Archiven heruntergeladen werden.
            Nach dieser Operation werden 3072 B Plattenplatz freigegeben.
            Holen: 1 [url]http://security.debian.org/[/url] wheezy/updates/main mysql-server all 5.5.40-0+wheezy1 [73,9 kB]
            Es wurden 73,9 kB in 0 s geholt (188 kB/s).
            Lese Changelogs…
            (Lese Datenbank … ^M(Lese Datenbank … 5%^M(Lese Datenbank … 10%^M(Lese Datenbank … 15%^M(Lese Datenbank … 20%^M(Lese Datenbank … 25%^M(Lese Datenbank … 30%^M(Lese Datenbank … 35%^M(Lese Datenbank … 40%^M(Lese Datenbank … 45%^M(Lese Datenbank … 50%^M(Lese Datenbank … 55%^M(Lese Datenbank … 60%
            ^M(Lese Datenbank … 65%^M(Lese Datenbank … 70%^M(Lese Datenbank … 75%^M(Lese Datenbank … 80%^M(Lese Datenbank … 85%^M(Lese Datenbank … 90%^M(Lese Datenbank … 95%^M(Lese Datenbank … 100%^M(Lese Datenbank … 46703 Dateien und Verzeichnisse sind derzeit installiert.)
            Vorbereitung zum Ersetzen von mysql-server 5.5.38-0+wheezy1 (durch …/mysql-server_5.5.40-0+wheezy1_all.deb) …
            Ersatz für mysql-server wird entpackt …
            mysql-server (5.5.40-0+wheezy1) wird eingerichtet …

            • Installing package: mysql-client
            • Installing package: tftpd-hpa
            • Installing package: tftp-hpa
            • Installing package: nfs-kernel-server
            • Installing package: vsftpd
            • Installing package: net-tools
            • Installing package: wget
            • Installing package: xinetd
            • Installing package: sysv-rc-conf
            • Installing package: tar
            • Installing package: gzip
            • Installing package: build-essential
            • Installing package: cpp
            • Installing package: gcc
            • Installing package: g++
            • Installing package: m4
            • Installing package: htmldoc
            • Installing package: lftp
            • Installing package: openssh-server
            • Installing package: php-gettext
            • Installing package: clamav-freshclam

            Confirming package installation.

            • Checking package: apache2…OK
            • Checking package: php5…OK
            • Checking package: php5-json…OK
            • Checking package: php5-gd…OK
            • Checking package: php5-cli…OK
            • Checking package: php5-mysql…OK
            • Checking package: php5-curl…OK
            • Checking package: mysql-server…OK
            • Checking package: mysql-client…OK
            • Checking package: tftpd-hpa…OK
            • Checking package: tftp-hpa…OK
            • Checking package: nfs-kernel-server…OK
            • Checking package: vsftpd…OK
            • Checking package: net-tools…OK
            • Checking package: wget…OK
            • Checking package: xinetd…OK
            • Checking package: sysv-rc-conf…OK
            • Checking package: tar…OK
            • Checking package: gzip…OK
            • Checking package: build-essential…OK
            • Checking package: cpp…OK
            • Checking package: gcc…OK
            • Checking package: g++…OK
            • Checking package: m4…OK
            • Checking package: htmldoc…OK
            • Checking package: lftp…OK
            • Checking package: openssh-server…OK
            • Checking package: php-gettext…OK
            • Checking package: clamav-freshclam…OK

            Configuring services.

            • Setting up and starting MySql…OK

            • Backing up user reports…OK

            • Did you leave the mysql password blank during install? (Y/n)

            • Setting up and starting Apache Web Server…OK
              You still need to install/update your database schema.
              This can be done by opening a web browser and going to:

              [url]http://172.16.3.93/fog/management[/url]

            Press [Enter] key when database is updated/installed.

            • Configuring Fresh Clam…OK
            • Setting up storage…OK
            • Setting up and starting NFS Server…OK
            • Setting up and starting DHCP Server…Skipped
            • Setting up and starting TFTP and PXE Servers…OK
            • Setting up and starting VSFTP Server…OK
            • Setting up sudo settings…OK
            • Setting up FOG Snapins…OK
            • Setting up and building UDPCast…Failed!

            ./configure failed!

            Script done on Mon 10 Nov 2014 20:41:05 CET

            1 Reply Last reply Reply Quote 0
            • 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
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            5/25
                                            Last post

                                          152

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project