Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 01-06-2009
Member
 
Join Date: Nov 2008
Posts: 1,066
/usr/bin/php -q

"usr/bin/php -q Must be run from the command line "

I get the above error whenever I try to connect my web server. And when I try this from the command prompt I get a blank screen. I am completely blank and so I need your help on this. Can you help me some how?
Reply With Quote
  #2  
Old 01-06-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: /usr/bin/php -q

Compile it as cgi and not as an apache module. This will provide you with a binary file that contains a lots of details on php and how to resolve this. Are you having PHP4? If not then do install it using "sudo apt-get install php4". Even newer version helps you throughout your interface.
Reply With Quote
  #3  
Old 01-06-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: /usr/bin/php -q

First of all if you already installed apache, mysql, perl auto installers then disable it. Now download the php installer from www.php.net/downloads.php and then go to command prompt and type the below code and confirm by pressing Enter:

Quote:
php c:\file_path\php_file_name.php
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search



All times are GMT +5.5. The time now is 04:47 PM.