Web Hosting Forum | Lunarpages
News: Server Migrations to San Diego: Deneb, Felix and Tsohea are moving to San Diego starting Tuesday, December 30, 2008 at 10pm Pacific. They will complete their moves Friday night, January 2, 2009

Isis, Seth and Ez-web-n-mail will move physically on Friday, January 2, 2009

Please see the forum posts at http://www.lunarforums.com/lunarpages_web_hosting_server_information-b54.0/

+ Submit Your Own Web Site for the January 2009 Site of the Month Contest!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 07, 2009, 07:16:57 PM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: VPS down?  (Read 1551 times)
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« on: October 02, 2007, 07:45:05 AM »

Our VPS hosted on 74.50.10.116 is experiencing downtimes lately, they are short but still annoying.
Anyone knows what's going on?
Logged
Jupiter
Spaceship Navigator
*****
Offline Offline

Posts: 88



WWW
« Reply #1 on: October 02, 2007, 11:07:29 AM »

I have been noticing the same thing on VPS 11 as well... The entire server is down for just a few minutes and then it's just fine. It has happened a few times today already.
Logged
Dark Side
Guest
« Reply #2 on: October 02, 2007, 06:11:34 PM »

Hi,

Have either of you logged into your Virtuozzo Power Panel's to see what the resource usage has been like? This might help provide a clue into what's going on with your sites.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1132



« Reply #3 on: October 02, 2007, 10:44:16 PM »

Hi,

If your sites get a lot of visitors, please also check that ServerLimit and MaxClients are increased in the Apache configuration. They are pretty low in the default VPS setup. See http://www.lunarforums.com/lunarpages_vps_hosting/vps_went_down_for_a_few_hours-t43212.0.html for details.

Logged

Kind Regards,
Vlad Artamonov
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #4 on: October 04, 2007, 07:36:57 AM »

Can I ask you where this file (/etc/httpd/httpd.conf) is located? Sorry if it sounds a bit noobish o;
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1132



« Reply #5 on: October 04, 2007, 09:19:12 PM »

Hi,

It is located exactly as /etc/httpd/httpd.conf. You need to SSH into the server using an SSH client as the root user to be able to edit it. Please advise, if you need detailed instructions on how to do that.
« Last Edit: October 05, 2007, 11:33:44 AM by perestrelka » Logged

Kind Regards,
Vlad Artamonov
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #6 on: October 05, 2007, 10:19:57 AM »

I would really appreciate it if you did.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1132



« Reply #7 on: October 05, 2007, 08:49:18 PM »

I would really appreciate it if you did.

Ok, so

1. You need to login to the server as root using an SSH client. This tutorial http://www.lunarforums.com/lunarpages_dedicated_web_hosting/how_to_login_to_your_dedicated_server_via_ssh-t26372.0.html gives detailed explanation on how to do that.

2. Save the current Apache config just in case something goes wrong. The following command will create a backup file:

Code:
cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak

It can be restored by executing:

Code:
cp -p /etc/httpd/conf/httpd.conf.bak /etc/httpd/conf/httpd.conf

3. Open the Apache config in a text editor. You would use nano as it is very simple one:

Code:
nano /etc/httpd/conf/httpd.conf

4. Scroll down a bit till you see the lines you need to change. Make needed adjustments, save and exit from the editor.

5. Restart Apache with the new configuration:

service httpd restart

All done.
Logged

Kind Regards,
Vlad Artamonov
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #8 on: October 06, 2007, 10:07:17 AM »

Ok thanks allot but one last thing before I enter the last command (to restart the services), will it cause a down time of more than like 10 minutes? Because as an online game people are always playing and they really have zero tollerance, always searching for something to complaint about Neutral

Once again thanks
Logged
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #9 on: October 07, 2007, 05:48:49 AM »

Hmm or I am doing something wrong or the in build plesk file manager is totally messed up
Everything works alright till I change the maxclient to 100, then suddenly the whole config file is messed up and the httpd service is shut down and it won't restart with an error: BrowserMatch not a valid command on line 2 or something similar to that and indeed on line 1-3 I see code calling that BrowserMatch command while it wasn't there before I changed the maxclients. I have restored a backup so thanks for telling me how to do that.

Anyway does anyone know what the problem is?
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1132



« Reply #10 on: October 07, 2007, 06:59:38 AM »

Hi,

There should be max 30 seconds downtime when you restarting your apache. How exactly did you edited the Apache config? You mentioned the Plesk file manager, did you use nano?
Logged

Kind Regards,
Vlad Artamonov
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #11 on: October 07, 2007, 08:02:21 AM »

I used the Edit File option in the Virtuozzo file manager as when I enter "nano" in the ssh client it returns "nano: command not found"
Logged
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 74


WWW
« Reply #12 on: October 07, 2007, 09:18:34 AM »

I think nano is an editor. It isn't installed on my VPS either. Try using vi. vi is installed on every flavor of Unix or Linux I have every used. It may seem a bit archaic to use but once you learn it, it sticks with you. I have gone 5 years without touching a Unix machine and somehow remember the commands to get basic editing done.

Here are the basic commands:

$ vi filename.ext
ESC gets you out of a command.

'i' = insert at the cursor. # Remember to ESC to get out of insert mode.
'I' = insert at the beginning of line.
'dd' = delete an entire line.
'shift-d' = delete from cursor to end of line.

'shift-zz' = save file and exit
':' = command mode. enter 'q!' to quit without saving changes.

Here is a good vi cheet sheet: http://www.lagmonster.org/docs/vi.html
Logged

perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1132



« Reply #13 on: October 09, 2007, 09:04:18 PM »



Here is a good vi cheet sheet: http://www.lagmonster.org/docs/vi.html


There is an introduction to Vi on these forums as well:

http://www.lunarforums.com/lunarpages_dedicated_web_hosting/vi_introduction-t26228.0.html

To Scream:

Usually, VPS gets nano installed by default. However, please give it a try using vi.
Logged

Kind Regards,
Vlad Artamonov
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #14 on: October 12, 2007, 03:26:58 AM »

I've made a ticket and since they made the change for me we have experienced not a single downtime, thanks all and especially to you perestrelka Rim Shot
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM