Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with iPXE and PHP
2017-12-17, 11:27
Post: #6
RE: Issue with iPXE and PHP
(2017-12-15 01:48)johnfortech Wrote:  I am having same issue where ipxe is not detecting php scripts

My test script is like this
test.php
<?php

header ("Content-type: text/plain ");
echo "#!ipxe\n";
echo ":exit\n";
echo "echo Booting from local disks ...\n";
echo "exit 0\n";

?>

when i run imgstat on ipxe it Shows test.php as [PXE-NBP]

Try to download that with wget or curl and check the actual resulting file.
all iPXE scripts must have the #!ipxe magic as the first bytes of data.

One thing that i see above is the space at the the end of Content-type: text/plain .

Also check your servers error_log if there is any warnings.
And finally use tcpdump or wireshark to see what is actually sent down the wire if the wget/curl above don't explain the reason.

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Issue with iPXE and PHP - thomil - 2012-12-05, 01:19
RE: Issue with iPXE and PHP - NiKiZe - 2017-12-17 11:27
RE: Issue with iPXE and PHP - Torgeir - 2012-12-05, 11:23



User(s) browsing this thread: 1 Guest(s)