Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default Tutorial on editing config files on a vps/dedi

    OK so I posted this to somebody asking for help, and now I'm posting it here, as it might help somebody.

    This is for editing a php.ini file, but can be used for pretty much any file.

    Various distributions might not contain some preinstalled stuff like vi/vim, so beware if it doesn't work, it might be because of that or you have a strange distro.

    This is ALL CLI.

    my-awesome-server is your server name, and the $ sign denotes a bash prompt.
    your-local-pc is your desktop pc at home.
    host-or-ip.com is either an ip like 57.34.75.13 or a domain like example.com
    username is your ssh username, i advise you not to login as root for security reasons
    Code:
    your-local-pc $ ssh [email protected]
    Please enter the password for [email protected]:
    #enter your password and hit enter - in *nix (linux etc), you never see characters like stars for passwords, it's just blank
    Thankyou for logging in
    ### MOTD###
    
    my-awesome-server-name $ cd /etc/
    # change directory to /etc/
    my-awesome-server-name $ vim php.ini
    # vim is an editor, some even use it as an ide, vi is vim's predecessor
    # in debian and other os' you can use a "fuzzy search" for instance if you type ph and then <tab> 
    # it will type as much as it can before it comes to a tree, aka
    # it'll come to php.ini and php.d for me, so for me it stops at 'php.'
    # and then gives you a windows sounding runtime error, then you'll need to type the next letter and hit enter
    my-awesome-server $ <i>
    # typing <i> turns vi(m) into insert mode so you can edit, it's all cli so no mouse! :)
    #navigate using arrow buttons to an option in your php.ini navigate right and delete the current value
    #replace with a new value
    my-awesome-server $ <esc>
    # hitting escape puts vi(m) into action mode
    my-awesome-server $ <:>
     # the colon issues a save/exit among other commands i don't know.. im guessing anyway
    #the two I know are w and q, w is save, q is quit, wq is save and quit, adding ! is an override.
    my-awesome-server $ <wq>
    my-awesome-server $ <enter>
    # this will save and quit out of your current file
    # to restart apache (needed for some changes that are cached.. i think :P)
    my-awesome-server $ apachectl graceful
    # graceful notes apache to let all file transfers finish before it restarts
    # other subcommands such as stop, start, and restart may screw something up as it doesn't let some things finish
    # and apache might go wierd about process IDs
    Last edited by Hypertext; 14-08-2008 at 04:38 AM.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #2
    Join Date
    Mar 2008
    Posts
    927
    Tokens
    0

    Default

    Say someone who has no idea with PHP, has to edit it,
    and read this, I bet the first thing they'd say is:

    "What the **** is a bash prompt"

  3. #3
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    So your saying "all" servers have PHP on - I just loled hard man, failure - again.
    Hi, names James. I am a web developer.

  4. #4
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    A bash prompt is an acronym for a shell prompt, specifically Bourne Again Shell, the original was Bourne Shell, but it was remade, open source.

    @Plux: Why the **** do you need to know PHP to know what a bash prompt is?

    @Protege:

    I never said that, just stop starting a ******* argument and get some friends dude.

    Point out where I said that?

    Fail.
    Last edited by Hypertext; 14-08-2008 at 12:55 PM.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  5. #5
    Join Date
    Mar 2008
    Posts
    927
    Tokens
    0

    Default

    Quote Originally Posted by Hypertext View Post
    A bash prompt is an acronym for a shell prompt, specifically Bourne Again Shell, the original was Bourne Shell, but it was remade, open source.

    @Plux: Why the **** do you need to know PHP to know what a bash prompt is?

    @Protege:

    I never said that, just stop starting a ******* argument and get some friends dude.

    Point out where I said that?

    Fail.
    If someone had no idea whatever it's for then.
    Tutorials are meant to explain whats things are etc.

    & I'm pretty sure an acronym is something like: BT - British Telecoms

  6. #6
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    I prefer using nano anyday.


    www.fragme.co = a project.

  7. #7
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Source View Post
    I prefer using nano anyday.
    I was just about to say that.

    yum install nano

    Quote Originally Posted by Hypertext View Post
    OK so I posted this to somebody asking for help, and now I'm posting it here, as it might help somebody.

    This is for editing a php.ini file, but can be used for pretty much any file.

    Various distributions might not contain some preinstalled stuff like vi/vim, so beware if it doesn't work, it might be because of that or you have a strange distro.

    This is ALL CLI.

    my-awesome-server is your server name, and the $ sign denotes a bash prompt.
    your-local-pc is your desktop pc at home.
    host-or-ip.com is either an ip like 57.34.75.13 or a domain like example.com
    username is your ssh username, i advise you not to login as root for security reasons
    Code:
    your-local-pc $ ssh [email protected]
    Please enter the password for [email protected]:
    #enter your password and hit enter - in *nix (linux etc), you never see characters like stars for passwords, it's just blank
    Thankyou for logging in
    ### MOTD###
    
    my-awesome-server-name $ cd /etc/
    # change directory to /etc/
    my-awesome-server-name $ vim php.ini
    # vim is an editor, some even use it as an ide, vi is vim's predecessor
    # in debian and other os' you can use a "fuzzy search" for instance if you type ph and then <tab> 
    # it will type as much as it can before it comes to a tree, aka
    # it'll come to php.ini and php.d for me, so for me it stops at 'php.'
    # and then gives you a windows sounding runtime error, then you'll need to type the next letter and hit enter
    my-awesome-server $ <i>
    # typing <i> turns vi(m) into insert mode so you can edit, it's all cli so no mouse! :)
    #navigate using arrow buttons to an option in your php.ini navigate right and delete the current value
    #replace with a new value
    my-awesome-server $ <esc>
    # hitting escape puts vi(m) into action mode
    my-awesome-server $ <:>
     # the colon issues a save/exit among other commands i don't know.. im guessing anyway
    #the two I know are w and q, w is save, q is quit, wq is save and quit, adding ! is an override.
    my-awesome-server $ <wq>
    my-awesome-server $ <enter>
    # this will save and quit out of your current file
    # to restart apache (needed for some changes that are cached.. i think :P)
    my-awesome-server $ apachectl graceful
    # graceful notes apache to let all file transfers finish before it restarts
    # other subcommands such as stop, start, and restart may screw something up as it doesn't let some things finish
    # and apache might go wierd about process IDs
    Why use vi, or vim? Gross.

    Plus just use service httpd restart or service apache restart, you don't need to use apachectl.

    Easier just to use PuTTY.

  8. #8
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Tutorial on editing config files on a vps/dedi

    Didnt mention PHP in that.

    & I dont need HabboxForum friends, cause man - Im a CEO of MainlyBS Entertainment PLC, you should be hired as a joker for this new comedy show.
    Hi, names James. I am a web developer.

  9. #9
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    I prefer Nano, but it's more likely to have Vi(m) installed than Nano

    A Shell prompt is an ACRONYM for a BASH prompt.

    Jeez.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  10. #10
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    LOOL!

    Shell is not an acronym for anything. Bash is a shell...

    SSH - Hence Secure SHELL.

    http://en.wikipedia.org/wiki/Bourne-Again_shell

    That really made me laugh, you thought Shell was part of bash. hah.

Page 1 of 3 123 LastLast

Posting Permissions

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