The other day I was stumped, albeit rather briefly, by something I should not have been. I was scripting out some CRON jobs for a CRM system when I found out I could not locate where the hosting company had put the PHP binary. Now that is something you usually do not have to think about so it can easily fall into the ‘been a while’ category.
So if you ever find yourself asking, where is the PHP binary? or just where is PHP? Here are some steps to follow.
If you have shell access via telnet, log in, and type “which php” and you should be given the location to use.
If you don’t have shell, try one of the following:
Create a php page with just the following: and then call the page, this should tell you the location of PHP.
echo system('which php');
If that does not work, though it should, try checking one of the paths listed under path in the ENVIRONMENT section of the output with this.Take note though that this will give you the environment path so you will still need to add /php to it…
Linux 2.6.34 has been released. This version adds two new filesystem, the distributed filesystem Ceph and LogFS, a filesystem for flash devices. Other features are a driver for almost-native KVM network performance, the VMware balloon driver, the ‘kprobes jump’ optimization for dynamic probes, new perf features (the ‘perf lock’ tool, cross-platform analysis support), several Btrfs improvements, RCU lockdep, Generalized TTL Security Mechanism (RFC 5082) and private VLAN proxy arp (RFC 3069) support, asynchronous suspend/resume, several new drivers and many other small improvements. See the full changelog here.”
I recently had to clone a virtual machine and did my usual copy and paste. Not the best idea. Virtualbox, my preferred virtualization solution, definitely did not like that approach as each machine image has its own uuid which is stored in the actual image… The right way to do it is with the clonehd tool. That said, if the uuid is ‘in’ the file in theory it should be editable and when I have time I intend to test that theory out.
The actual steps to clone a machine on a windows (concept is the same for FreeBSD and OS X) host are as follows.
- Open a Command Prompt window on the host machine.
- Change to the VirtualBox VDI directory (you do know where your images are…? and you know what spindle contention is…?)
- Run the VBoxManage command with clonevdi command option. The following example shows the creation of a copy of Server_2008.vdi named Server_2008_Base.vdi.
“C:Program FilesSunxVM VirtualBoxVBoxManage.exe” clonevdi “Server_2008.vdi”
Which then produces a not very informative dialogue box…
VirtualBox Command Line Management Interface Version 2.0.4 (C) 2005-2008 Sun Microsystems, Inc. All rights reserved.
And that’s it.
I like Maemo, it’s roots are solid, it is the underdog when viewed against Google and Apple. But most of all because Nokia are making some solid decisions. Nokia recently licensed Kodak’s imaging technology, which coupled with Carl Zeiss optics with improved low-light performance, should take image quality on phones to the next level. Maybe not a huge deal, but certainly noteworthy especially as my love of the iPhone is being seriously diluted by the monthly whack to my pocket.
We’re under a deluge of iPhone OS and Android updates these days. However there are plenty of other interesting if not equal options out there. Maemo from Nokia may be one… Especially with what David Rivas, Nokia’s vice president for devices R&D, had said when he was asked about operator customization: “Very clearly Apple, Android are a whole lot less about providing customization to the operators and a whole lot more about providing a really cool, compelling value proposition to the end-consumer. We have an opportunity that we are going to take advantage of, with Maemo platform to play the game a little bit more along those lines than with Symbian lines.“
If you’re not familiar with Maemo, a good place to start is here: http://maemo.org/intro/
Maemo is an operating system for the Internet Tablet line of handheld computers. It was originally named “Internet Tablet OS”.
It is similar to many handheld operating systems, and features a “Home” screen—the central point from which all applications and settings are accessed. The Home Screen is divided into areas for launching applications, a menu bar, and a large customisable area that can display information such as an RSS reader, Internet radio player, and Google search box. Based on Debian GNU/Linux, it draws much of its GUI, frameworks, and libraries from the GNOME project. It also uses the Matchbox window manager, and the GTK-based Hildon as its GUI and application framework. All pretty sweet stuff if you’re into it…
||Final Nokia-supported OS for 770
||SDHC corruption fix
||Kernel upgrade only (N810 only)
||Beta release (N800 only)
||NOLO upgrade only
||Adds SSU support
||First SSU update
||Bundled community-supported Qt libraries
||Bundled officially supported Qt libraries