SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SSH/SHELL access via the localhost

    Hey all, I have a question for you. I have http://www.wampserver.com/en/ installed on my localhost (Windows XP) and I was reading the Sitpoint symfony tutorial, I installed it but I don't know how to run commands via a shell. I tried using MSDOS to run this command. "php symfony propel-build-all" but I get a "PHP is not a recognized as an internal or external command, operable program or batch file".

    So my question is, how do I run shell commands on my local machine? Thanks!

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    First you must know the path of PHP for example: C:\afolder\anotherfolder\php

    Then right-click My Computer > Properties; Go to the Advance tab at the bottom click the Environment Variables button;

    A new window will open up in the first box look to see if there is a variable called path if there isn't one click the first New button.

    Variable Name: PATH
    Variable Value: [PATH_TO_PHP_FOLDER];

    Then restart cmd. Start > Run > cmd
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Member
    Join Date
    May 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    logic_earth, you rock! Thank you very much.

  4. #4
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I too had this same problem and followed the steps above (thanks logic_earth!), but when I try this line: php symfony propel-build-all I get a Microsoft errorbox that says CLI has a problem and needs to close.

    Any ideas?


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
  •