Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: VestaCP + Longview Guide
PostPosted: Wed Jul 02, 2014 6:44 pm 
Offline

Joined: Wed Jul 02, 2014 6:29 pm
Posts: 1
Hey guys,
I had a problem with getting longview to work with VestaCP since VestaCP does the apache/nginx configuration for you.

The configuration files offered by the help section for Apache and Nginx don't work with the VestaCP stock configuration.

So here's how to get everything to play nice.

The problem stems from longview trying to access apache and nginx on port 80, we just change the port longview is attaching to and it works great.

Keep in mind I'm doing this on Debian 7.5, the specific file locations and other things may be different for other distros, especially for CentOS

Step 1: Edit Apache Configuration

Open status.conf, VestaCP won't overwrite this file.
Code:
sudo nano /etc/apache2/mods-enabled/status.conf


Write this to the file
Code:
<IfModule mod_status.c>
ExtendedStatus On
Listen 127.0.0.1:8081
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>
</IfModule>


Ctrl+O, Enter, then Ctrl+X to save and close.

Step 2: Edit Nginx configuration

Open a new file, longview.conf:
Code:
sudo nano /etc//nginx/conf.d/longview.conf


Write this to it:
Code:
server {
    listen 127.0.0.1:79;
    server_name 127.0.0.1;
    location /nginx_status {
        stub_status on;
        allow 127.0.0.1;
        deny all;
    }
}


Save and close.

Step 3: Edit Longview Configuration

Open Apache configuration
Quote:
sudo nano /etc/linode/longview.d/Apache.conf


Write this to the file:
Quote:

Comment out or delete any other lines in this file.

Save and close.

Now open the Nginx Configuration
Quote:
sudo nano /etc/linode/longview.d/.conf


Write this to the file
Code:
location http://127.0.0.1:79/nginx_status


Save and close.

Step 4: Restart Services

Code:
sudo service apache2 restart
sudo service nginx restart
sudo service longview restart


Hope that saves someone a little time!


Top
   
PostPosted: Fri Aug 21, 2015 1:13 pm 
Offline
Senior Newbie

Joined: Fri Aug 21, 2015 12:54 pm
Posts: 5
A very good tutorial by you to install and configure longview to work with VestaCP. It also give me a severe headache in past as its very hard to configure it easily. But this tutorial is good to check. I will check it and will configure longview myself and will then update this post about it.

_________________
http://paknode.com/ - The Ultimate Website


Top
   
PostPosted: Mon Aug 24, 2015 8:09 am 
Offline
Linode Staff

Joined: Mon Sep 29, 2014 4:47 pm
Posts: 90
Twitter: FelicianoTech
Great post scottlott. Thank you for sharing!


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


Who is online

Users browsing this forum: No registered users and 0 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