The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Whats the easiest way to change the PATH variable serverwide?

Discussion in 'General Discussion' started by AbeFroman, Sep 25, 2004.

  1. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    Whats the easiest way to change the PATH variable serverwide? I know I can do it in my .profile, but thats only for a single user.

    root@100 [~]# echo $PATH
    /usr/local/jdk/bin:/usr/local/jdk/bin:/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin

    It starts with /usr/local/jdk/bin 3 times, I'm sure cpanel put it there, I installed TomCat from WHM on that server.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You can set the PATH for all users in /etc/profile
     
  3. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    Chirpy!! Chirpy!! Chirpy!! Chirpy!! Chirpy!!
     
Loading...

Share This Page