Page 1 of 1

httpd-vhosts.conf via SSH [SOLVED]

PostPosted: 02. November 2011 19:25
by bobvanluijt
Hi all,

My question is easy and simple :-)

How do I edit the httpd-vhosts.conf file via SSH?

Thanks!

PS:
I find a lot of information online what to do when I'm IN the httpd-vhosts.conf file, but not how to get there via SSH

Re: httpd-vhosts.conf via SSH

PostPosted: 02. November 2011 19:32
by JonB
Well, gee you would have to start an SSH session from another machine with either SSH on THAT Linux/Unix machine or if the other machine is a Windows box using an SSH client like PuTTY or Tunnelier. This is really a functionality of the Linux or Unix installed on your box, and has nothing to do with XAMMP.

http://en.wikipedia.org/wiki/Secure_Shell

You do understand that SSH is really ONLY a remote protocol, right???

Good Luck
8)


ycf

Re: httpd-vhosts.conf via SSH

PostPosted: 02. November 2011 20:13
by bobvanluijt
JonB wrote:You do understand that SSH is really ONLY a remote protocol, right???f

Haha, yes I do

But what I mean is this.

I'm using a Mac (and Linux server) and I'm logged in via terminal on my linux server (that is running Xampp)

So, I'm logged in via terminal on SSH (working fine). But then what? How do I find the httpd-vhosts.conf file...

Thanks!

Re: httpd-vhosts.conf via SSH

PostPosted: 02. November 2011 21:46
by JonB
well you navigate just like any other Linux box

cd /opt/lampp/etc/extra

you will also need to know an editor that is installed on the linux box, and will launch form the CLI - like vi, nano, whatever. That's a function of what is installed or - if its your box or a VPS, what you add in the way of editors.

when you are done editing, be careful of ownerships and permissions, they can break LAMPP.

That file is found in /opt/lampp/etc/extra

here's where to find things (down by the bottom)
http://www.apachefriends.org/en/xampp-linux.html

Don't laugh about the 'remote' comment - I have had people trying to FTP into the box they are actually on... "I thought you had to upload via FTP" "well, yes UNLESS you are actually ON the machine" -

If its YOUR linux server or a VPS you may want to learn about Webmin.

Good Luck
8)

Re: httpd-vhosts.conf via SSH

PostPosted: 02. November 2011 21:50
by bobvanluijt
Thanks! It works. (with nano)

Yes it's my machine (bought an old server) but I'm new with Linux... starting to learn... starting to learn...

Re: httpd-vhosts.conf via SSH

PostPosted: 02. November 2011 22:02
by JonB
Glad it worked, always stuff to learn, I'm waaay old and still learning every day...

:lol:

8)