Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Apache is running instead of Nginx!
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Apache is running instead of Nginx!

johancjohanc Member
edited April 2013 in General

When i visited my sites hosted on my vps today. I got the Apache message "It Works!".
It seems like Apache is running instead of Nginx that i want. I have Minstall installed with virtual hosts.
Please help how i can fix back to Nginx and my virtual hosts using Minstall!

Comments

  • Just stop apache and remove it maybe?

  • netomxnetomx Moderator, Veteran

    apt-get purge apache && service nginx start

  • taronyutaronyu Member
    edited April 2013

    aptitude --purge remove apache2

    service nginx restart

  • It happens if your vps is reinstalled or your ip is assigned to another customer. can you still log in to ssh?

  • @netomx

    I got error messages when i run your command:

    Reading package lists... Done Building dependency tree Reading state information... Done Virtual packages like 'apache' can't be removed 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Starting nginx: nginxnginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind()

  • @superpilesos Yes, i can still login to my vps using SSH.

  • netomxnetomx Moderator, Veteran

    apache is still running, try
    service apache2 stop

    or

    killall httpd

  • budingyunbudingyun Member
    edited April 2013
    apt-get purge apache2 && service nginx restart
  • Not then, just run
    service apache stop
    update-rc.d -f apache remove
    service nginx start

    (maybe apache2, I don't know on debian)

  • @superpilesos

    Thanks it worked!

  • @budingyun what do you use for your 'current server status' page?

  • ahmiqahmiq Member

    How to you find out that your vps ip is shared with some other customer too?

    @superpilesos said: It happens if your vps is reinstalled or your ip is assigned to another customer. can you still log in to ssh?

  • budingyunbudingyun Member
    edited April 2013

    @djvdorp said: 'current server status'

    <?php
    header('content-type: text/plain');
    header('Refresh: 10');
    echo
    "=========================================================================
    SERVER STATUS                                ".`date`.
    "=========================================================================
    
    Processor  : 1 x 3.3GHz
    Memory     : 256MB
    Storage    : 250GB
    Connection : 1Gbps
    Location   : Las Vegas
    
    Operating System : Debian 6.0
    
    ".`uptime`."
    ".`free -m`."
    ".`df -h`."
    ".`vnstat`."
    =========================================================================";
    ?>
    
  • @ahmiq said: How to you find out that your vps ip is shared with some other customer too?

    If you sometimes can't log into ssh and get other sites/services showing on your ip, then you restart your vm and everything is back to normal

  • @superpilesos said: If you sometimes can't log into ssh and get other sites/services showing on your ip, then you restart your vm and everything is back to normal

    It happen to me once. :D

  • Also, if you're still getting a fail bind error, run this:

    lsof -i :80

Sign In or Register to comment.