Find the answer to your Linux question:
Results 1 to 2 of 2
hey, I have centos installed on my server.i want to set environment variables for cakePHP so that cake commands can be run from putty.like in windows we can set variables ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    1

    Exclamation how to set environment avariables..???


    hey,
    I have centos installed on my server.i want to set environment variables for cakePHP so that cake commands can be run from putty.like in windows we can set variables from my computer's properties -> advance->environment variables.from here we can set the path for cake as well as for php and mysql.
    Please help me out to solve this problem.

    Thank you.
    Regards,
    Harshal.

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    The variables are put in files like .bash_profile or /etc/profile e.g.
    Code:
    export PATH=$PATH:/path/to/cakephp/bin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •