Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to edit the .cgi files

Discussion in 'cPanel Developers' started by green-hosts, Mar 2, 2010.

  1. green-hosts

    green-hosts Member

    Joined:
    Jul 20, 2009
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    Hi
    I was wondering how i can edit the .cgi file like 67.228.177.225 if you load that i want to edit it so it looks like this http://173.212.209.198 i tried logging into the FTP with my root account it wont let me any help would be helpful!

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. asent

    asent Active Member

    Joined:
    Apr 5, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    156
    Could you be a bit more specific? What .cgi? What is it you're trying to do exactly with the .cgi? CGI is a gateway, not a programming language. What type of CGI: Perl, Python, Ruby, PHP?

    You cannot FTP as root. SSH only. You can use the SSH file xfer with most FTP/SSH apps.

    To edit in bash (assuming *nix), use nano, pico, or vi.
     
  3. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    66
    Actually you can SFTP in as root ;-) Ive done it plenty of times, lol.

    And use nano, or vi, or vim..
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,580
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In your WHM, type the word editor into the search box, top left corner. Click the link in the search results called Web Template Editor. On the page that opens you'll find several pages that can be edited quite easy, thanks to cPanel.

    HTH
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice