The makesite script is a php script so you have to either have the php command line binary in your PATH or you need to explicitly run it with PHP.
Here is a readout of my console as I play around with my PATH variable in bash shell to include different PHP binaries:
- Code: Select all
powerbook:~ shannah$ bash
powerbook:~ shannah$ php -version
PHP 4.4.1 (cli) (built: Mar 5 2006 10:30:50)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
powerbook:~ shannah$ export PATH=/usr/local/php5/bin:$PATH
powerbook:~ shannah$ php -version
PHP 5.0.4 (cli) (built: Apr 4 2005 17:32:28)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
with Advanced PHP Debugger (APD) v0.9, , by George Schlossnagle
powerbook:~ shannah$
In the above example, I initially was using the default install of PHP 4, but when I added the PHP 5 bin folder to my path, the default PHP became PHP 5.
Then you should be able to run it. The key is to find where your php binary is installed. Common locations would be /usr/local/php/bin or /usr/local/php5/bin - but it could be anywhere.
Once you find the php binary, if you don't want to actually add the binary to your PATH, you can call makesite using php:
- Code: Select all
powerbook:~/Sites/dataface shannah$ /usr/local/php5/bin/php makesite
Alternatively, you could just do the manual install. The makesite script simply creates a few files. I quite often just do the manual install myself because it is so quick to do. You essentially just need to make the index.php and conf.ini files - and copy the .htaccess file from dataface/site_skeleton into your application folder to prevent the web server from serving your conf.ini file.
Hope this helps.
Best regards
Steve