Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Issues»ERROR: Site example.com does not exists! – Apache a2ensite command

    ERROR: Site example.com does not exists! – Apache a2ensite command

    RahulBy RahulApril 29, 20151 Min ReadUpdated:October 7, 2019

    Problem: ERROR: Site example.com does not exists!

    This error I have faced when created a new virtual host in Apache on my Ubuntu system. I create a virtual host configuration file in /etc/apache2/sites-available/ directory with name example.com. Now I tried to enable the website using a2ensite command and faced the following issue.

    a2ensite example.com 
    
    ERROR:  Site example.com does not exists!
    

    a2ensite-error-1

    Solution:

    The problem was that all virtual host configuration files must have .conf extension in their filename. So I simply renamed example.com with example.com.conf.

    cd /etc/apache2/sites-available/
    mv example.com example.com.conf
    

    and again tried to enable website using same command and this time I found its working properly.

    a2ensite example.com
    

    a2ensite-error-1-solution

    a2ensite Apache issue
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Indicator SysMonitor on Ubuntu & Debian
    Next Article The login is invalid – WHM/cPanel

    Related Posts

    How to Install Apache ActiveMQ on Ubuntu 22.04

    3 Mins Read

    How To Install LAMP Stack on Ubuntu 22.04 LTS

    Updated:April 20, 20225 Mins Read

    How To Disable HTTP Methods in Apache

    Updated:December 31, 20212 Mins Read

    How To Setup Apache, PHP & MongoDB in Ubuntu & Debian

    Updated:October 8, 20213 Mins Read

    Common Apache Commands on Ubuntu & Debian

    4 Mins Read

    How to Install and Secure Apache on Debian11

    6 Mins Read

    2 Comments

    1. Wolfgang on October 29, 2018 10:43 am

      THANK YOU!!!!
      It haunted me for days. All instructions refer to a2ensite _without_ the fact, that the .conf extension is crucial. Meanwhile I really got desperate, until I found this page.

      Thank you again!
      Wolfgang

      Reply
    2. Cy Burnot on November 12, 2015 11:37 pm

      I’m getting apache2: could not reliably determine servers FQDN. ServerName is set to http://www.example.com.

      Also, DocumentRoot is set to /home.pikov/www but when I try to load 127.0.0.1, I get you don’t have permission to access / on this server.

      ???

      Thanks.

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install Sublime Text 4 on Ubuntu 22.04
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.