Results 1 to 3 of 3

Thread: /usr/bin/php -q

  1. #1
    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?

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    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.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    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:

    php c:\file_path\php_file_name.php

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,947,398.35926 seconds with 16 queries