Page 1 of 1

PostPosted: Sat Jul 29, 2006 3:05 pm
by larry
Hello all,

Definite noob alert here.

I've just installed the Apache Friends Lampp on a bare bones Debian Sarge install. The Dataface untar'd fine to my htdocs folder, and for now, the templates_c is chmodded to 777. The info page returns a succesful instal

All went fine up until trying to run the makesite command. I'm logged in as root, and when I execute the command "./makesite" I get the following:

usr/bin/env: php: No such file or directory.

I've built the database with no problems in PhpMyAdmin, so it seems that I'm stuck at this point for now.

Thanks in advance for any help.

Larry

PostPosted: Sat Jul 29, 2006 3:25 pm
by shannah
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

PostPosted: Sat Jul 29, 2006 4:37 pm
by larry
Steve,
Thank you very much for the fast detailed reply! That looks to be the information I was needing, and will point me in the right direction for further study. I appreciate you taking the time for a noob question.

best,
Larry