httpd-vhosts.conf via SSH [SOLVED]

Problems with the Linux version of XAMPP, questions, comments, and anything related.

httpd-vhosts.conf via SSH [SOLVED]

Postby bobvanluijt » 02. November 2011 19:25

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
bobvanluijt
 
Posts: 4
Joined: 02. November 2011 19:23
Operating System: Linux

Re: httpd-vhosts.conf via SSH

Postby JonB » 02. November 2011 19:32

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
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: httpd-vhosts.conf via SSH

Postby bobvanluijt » 02. November 2011 20:13

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!
bobvanluijt
 
Posts: 4
Joined: 02. November 2011 19:23
Operating System: Linux

Re: httpd-vhosts.conf via SSH

Postby JonB » 02. November 2011 21:46

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: httpd-vhosts.conf via SSH

Postby bobvanluijt » 02. November 2011 21:50

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...
bobvanluijt
 
Posts: 4
Joined: 02. November 2011 19:23
Operating System: Linux

Re: httpd-vhosts.conf via SSH

Postby JonB » 02. November 2011 22:02

Glad it worked, always stuff to learn, I'm waaay old and still learning every day...

:lol:

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 24 guests