Re: Re: can't make php exe on debian

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  sorry dude! ok, i have a php file php.php on my debian box that looks
>  like this:
>  #!/usr/bin/php
>  <?php
>  print("Hello World\n");
>  ?>
>  i am logged in as root but when i run php.php from the shell i get:
>  bash: php.php: command not found
>  how do i make debian run php.php as if i ran "php php.php"?

After a quick check of the PHP manual [1] we need to know what version
of php you have. The CLI was not available until 4.2.0 and until 4.3.0
you had to configure it in with ./configure --enable-cli. I am going
out on a limb assuming this is what you are trying to do and not the
cgi variant. To make sure you have the option do php -v you should get
some out put like this:
# php -v
PHP 4.3.1 (cli) (built: Mar 27 2003 14:41:51)
Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies

Also are you sure the path is /usr/bin/php and not /usr/local/bin/php?

kb3


[1]http://us2.php.net/features.commandline


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux