corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » SSH and VIM


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author SSH and VIM
ed
Member

Registered: 10th Sep 03
User status: Offline
13th Jul 10 at 13:43   View User's Profile U2U Member Reply With Quote

I needed to make some changes to my php.ini file. I've opened the file up using VIM, made the changes and now I need to save the file. The command I need to use is apparently :wq. How the hell do I send this command though, I seem to be stick in editing mode at the moment.

I'm using PuTTY if that makes any difference, plus I've never done anything like this before
Laney
Member

Registered: 6th May 03
Location: Leeds
User status: Offline
13th Jul 10 at 15:08   View User's Profile U2U Member Reply With Quote

: should bring up the prompt?

[Edited on 13-07-2010 by Laney]
Kyle T
Premium Member

Avatar

Registered: 11th Sep 04
Location: Selby, North Yorkshire
User status: Offline
13th Jul 10 at 17:01   View Garage View User's Profile U2U Member Reply With Quote

Press Escape to exit edit mode, then type :wq!

That'll save and exit the file.

:w! will save and leave you in it, :q! will quit without saving.


Lotus Elise 111R

Impreza WRX STi
ed
Member

Registered: 10th Sep 03
User status: Offline
13th Jul 10 at 17:55   View User's Profile U2U Member Reply With Quote

Ah, cheers for that. I was pressing num lock in the end to bring up help and the closing that file

Still can't get php safe_mode to fuck off though
willay
Moderator
Organiser: South East, National Events
Premium Member


Avatar

Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
13th Jul 10 at 18:02   View Garage View User's Profile U2U Member Reply With Quote

is it set globally in your configuration ed?
willay
Moderator
Organiser: South East, National Events
Premium Member


Avatar

Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
13th Jul 10 at 18:04   View Garage View User's Profile U2U Member Reply With Quote

also have you tried restarting your webserver afterwards? apachectl restart or call up the script from rc.d depending on what OS it is.
ed
Member

Registered: 10th Sep 03
User status: Offline
13th Jul 10 at 18:17   View User's Profile U2U Member Reply With Quote

I turned it off globally then created a vhost.conf file in the conf folder in the subdomain I wanted then put in the jazz I needed to turn it off. That worked, but I didn't really want it turned off globally so I turned it on globally and tried using the vhost.conf file instead but that didn't work. Now I can't get it to work at all.

I reset the container after making the changes so they would come into effect.
willay
Moderator
Organiser: South East, National Events
Premium Member


Avatar

Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
13th Jul 10 at 18:34   View Garage View User's Profile U2U Member Reply With Quote

grep safe_mode *
ed
Member

Registered: 10th Sep 03
User status: Offline
13th Jul 10 at 18:36   View User's Profile U2U Member Reply With Quote

Is that something I do via SSH?
moka
Member

Registered: 11th Mar 06
User status: Offline
13th Jul 10 at 20:00   View User's Profile U2U Member Reply With Quote

Use nano if your not sure how to use vim...

nano script.sh
Kyle T
Premium Member

Avatar

Registered: 11th Sep 04
Location: Selby, North Yorkshire
User status: Offline
13th Jul 10 at 20:12   View Garage View User's Profile U2U Member Reply With Quote

quote:
Originally posted by ed
Is that something I do via SSH?


grep safe_mode *

Use it in the directory with your configs, it'll search for the term safe_mode in all the files.


Lotus Elise 111R

Impreza WRX STi
ed
Member

Registered: 10th Sep 03
User status: Offline
14th Jul 10 at 08:56   View User's Profile U2U Member Reply With Quote

I didn't write the correct thing in the vhost.conf file and I changed the location of the file to the domains conf folder as opposed to the subdomain. It works, not sure if I've done it right though
ed
Member

Registered: 10th Sep 03
User status: Offline
14th Jul 10 at 08:56   View User's Profile U2U Member Reply With Quote

Ubuntu is a lot easier to use via the GUI though

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
saw this cool reg plate on sunday........ Icy General Chat 86 3282
29th Aug 06 at 16:19
by fresh_creps
 
Help Need ASAP Jodi_the_g Geek Day 8 1037
3rd May 06 at 00:18
by Ian
 
creating SSH tunnel (windows) Dom Geek Day 14 517
11th Feb 08 at 12:50
by Dom
 
iPhone James Geek Day 248 17115
27th Apr 08 at 23:39
by CorsAsh-Sport
 
Ubuntu Server 9.10 Sam Geek Day 34 1493
1st Dec 09 at 11:24
by Sam
 

Corsa Sport » Message Board » Off Day » Geek Day » SSH and VIM 29 database queries in 0.0123610 seconds