Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    159

    Default problem with path's

    hello we are having problems with paths
    example
    in root console
    root@roota [/]# apf -st
    bash: apf: command not found
    root@roota [/]#


    root@roota [/]# /usr/local/sbin/apf -st
    APF Status Log:

    root@roota [/]#service httpd restart
    bash: service: command not found

    root@roota [/]# /etc/init.d/httpd restart
    works

  2. #2
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347

    Default

    Check the output of :

    Code:
    echo $PATH
    if the path variable is empty set it to proper value....Visit the following link to know how to set PATH variable >>

    http://www.justlinux.com/nhf/Shells/...ash_Shell.html
    Either Zero Or Hundred...

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    If you're using su to login to root, remember to use a dash:

    su -
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    159

    Default

    su -
    fixed my problem

Similar Threads & Tags
Similar threads

  1. Image Path Problem
    By AaronRodgers in forum New User Questions
    Replies: 1
    Last Post: 01-03-2010, 06:21 PM
  2. Issue creating path when testing using virtual path (~username)
    By ggriffit in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-02-2007, 02:29 PM
  3. SIM problem sith SMTP path
    By ThunderHostingDotCom in forum cPanel Developers
    Replies: 10
    Last Post: 03-18-2006, 01:29 AM
  4. CGI path problem - host no help
    By Canned_Heat in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-30-2004, 11:06 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube