By default ESXi does not support console. To enable it you must be at physical terminal (screen & keyboard).
Press ALT+F1 and type “unsupported”. Then at the Password prompt type root password.
You are in.
Tested on ESXi 4.0 @ Dell PowerEdge 2950.
Real men don't make backups
By default ESXi does not support console. To enable it you must be at physical terminal (screen & keyboard).
Press ALT+F1 and type “unsupported”. Then at the Password prompt type root password.
You are in.
Tested on ESXi 4.0 @ Dell PowerEdge 2950.
Recently I wrote about async calls in PHP. In the provided example from w-shadow.com there is one thing missing – User agent string.
Changing User agent string to something unique is handy, when analyzing log file. You can see, if someone is messing with your hidden asynchronous PHP script.
Here is an example, that uses PHP socket to make async call:
Don’t forget to change “User-Agent” to something more meaningful for you.
The function backgroundPost opens TCP/IP connection to specified $url and makes HTTP POST. Right after data is submitted to the server, we close connection using fclose function, but the background script keeps running. If the background script is on the same server, we have two PHP scripts running simultaneously.
As suggested in the w-shadow.com I use ignore_user_abort(true); in the slow_async_script.php, so that PHP or Apache keep my script running even after we have aborted connection to it (using socket close command fclose).
The problem is, that there is no standard way of making asynchronous function or other calls in PHP version 5.
In search for async calls I found, that socket version works for me. Here is link to example from W-Shadow.com: How To Run A PHP Script In The Background