Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Apr 24, 2013 9:05 pm 
Offline
Newbie

Joined: Wed Apr 24, 2013 1:38 am
Posts: 2
Hi, I am very new to running my own server, and setup my first LAMP distribution over the weekend.

I just hit "Deploy a Linux Distribution" and setup a LEMP distribution thru stackscripts.

Now I only have 1 IP address, when I SSH into my VPN, how do I know if I'm running with apache or nginx? is there a separate login or folder?

Thanks in advance for any help.


Top
   
PostPosted: Wed Apr 24, 2013 10:31 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
The best way, for this particular case: it'll be whichever one you most recently booted, which will be visible by looking at your Linode in the Linode Manager.

The universal case: "sudo ss -ntlp", look for the *:80 or :::80 line with either "apache" or "nginx" in it.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Wed Apr 24, 2013 11:14 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
I think hoopycat meant to say "sudo netstat -ntlp" unless he's referring to some awesome new tool I'm too aged to be aware of.


Top
   
PostPosted: Thu Apr 25, 2013 6:20 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
netstat is part of the deprecated net-tools, along with such old chestnuts as ifconfig and route. ss ("socket statistics") is part of iproute, along with ip. So, might as well use ss.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Thu Apr 25, 2013 2:15 pm 
Offline
Newbie

Joined: Wed Apr 24, 2013 1:38 am
Posts: 2
ok, cool, thank you! so I just checked, and I am in Apache, so whenever I want to switch between the nginx and the apache config, I just reboot the linode and it will switch my configuration to the appropriate one?


Top
   
PostPosted: Thu Apr 25, 2013 10:20 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Yep.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Fri Apr 26, 2013 1:02 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
hoopycat wrote:
ss ("socket statistics") is part of iproute, along with ip.


Ah, so I am behind the times. Nothing new about that.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group