ed
Member
Registered: 10th Sep 03
User status: Offline
|
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
|
: should bring up the prompt?
[Edited on 13-07-2010 by Laney]
|
Kyle T
Premium Member
Registered: 11th Sep 04
Location: Selby, North Yorkshire
User status: Offline
|
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
|
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
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
is it set globally in your configuration ed?
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
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
|
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
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
grep safe_mode *
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Is that something I do via SSH?
|
moka
Member
Registered: 11th Mar 06
User status: Offline
|
Use nano if your not sure how to use vim...
nano script.sh
|
Kyle T
Premium Member
Registered: 11th Sep 04
Location: Selby, North Yorkshire
User status: Offline
|
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
|
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
|
Ubuntu is a lot easier to use via the GUI though
|