A2ensite Error Does Not Exist
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies a2ensite command not found of this site About Us Learn more about Stack Overflow the company Business
A2ensite Command Not Found Centos
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Site Does Not Exist Web Deploy
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:
Sudo A2ensite Disable
Sign up a2ensite 'Site: ___ does not exist' error, even with .conf file up vote 3 down vote favorite 1 System: Ubuntu 14.04 LAMP running on Parallels VM set up with Vagrant I'm writing my first non-trivial shell script to add new web projects to a dev VM on my Mac laptop. Create a default folder structure in /var/www/ Add a .conf vhost a2ensite is a real file not touching it file to /etc/apache2/sites-available with the new domain replacing placeholders via sed Enable the new site and restart apache I've got the folders and files copying over and sed seems happy customizing my index.html and .conf vhost file, but a2ensite doesn't seem to see the .conf file in /etc/apache2/sites-available/ I test for its existence and even print a debug listing: ls -al /etc/apache2/sites-available/ | grep $CONFFILE before attempting to enable the site. I've read here and elsewhere about the importance of having the .conf extension since Ubuntu 13 (or 14) which seems to be a very common issue. My vhost file has the .conf extension so this seems like a different issue. Can anyone point me in the right direction? I haven't been able to find other postings with this particular problem. My feeling is that I've got an error in my $CONFFILE variable expansion in the a2ensite command because the error does not show the .conf extension even though the directory listing does: ERROR: Site /etc/apache2/sites-available/example-com-80 does not exist! Edit: After running a2ensite from the command line per Micheal's suggestion below, it seemed to parse
Monit Nagios NRPE Network Services DHCP DNS FTP Databases MySQL MariaDB MongoDB PostgreSQL SQL Server Amazon Web Services Submit Article About Us Home Ubuntu 16.04 Whats New ? Install JAVA 8 Setup LAMP error site does not exist visual studio Stack Install LEMP Stack Install Node.js Install Git Move Unity Launcher to Bottom a2ensite command not found ubuntu FeedBack Funny Tools Tutorials Linux Distributions CentOS Debian Fedora LinuxMint Monitoring Tools Monit Nagios NRPE Network Services DHCP DNS FTP a2ensite example Databases MySQL MariaDB MongoDB PostgreSQL SQL Server Amazon Web Services Submit Article About Us 29 April 2015 ERROR: Site example.com does not exists! - Apache a2ensite command Written by Rahul K. Issues 1 Comment http://stackoverflow.com/questions/28572629/a2ensite-site-does-not-exist-error-even-with-conf-file 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 website using a2ensite command and faced following issue. [emailprotected]:~# a2ensite example.com ERROR: Site example.com does not exists! Solution: The problem was that all virtual host configuration http://tecadmin.net/fixed-error-site-example-com-does-not-exists-apache-a2ensite/ files must have .conf extension in their file name. 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. [emailprotected]:~# a2ensite example.com Share it! Rahul K. Previous Article How to Install Indicator SysMonitor on Ubuntu & DebianNext Article The login is invalid - WHM/cPanel 1 Comment Cy Burnot Reply to Cy November 12, 2015 at 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. Leave a Reply Cancel reply Comments *Name * Email * Website Notify me of follow-up comments by email. Popular Posts How to List all Remote Branches in Git Node.js Write to File - fs.writeFile() Function PHP Read File Line by Line – fgets() Function PHP Read file Content into String - file_get_contents() Function © Copyright 2013-2016 TecAdmin.net. ClosePlease support the site By clicking any of these buttons you help our site to get better Follow Me Need System Admin Help
here for a quick overview of the site Help Center Detailed answers to any questions you might have http://superuser.com/questions/937383/apache2-error-site-mywebsite-nl-does-not-exist Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us http://www.randomhacks.co.uk/a2ensite-error-site-www-example-com-does-not-exist-ubuntu-13-10/ Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes does not a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Apache2 ERROR: Site mywebsite.nl does not exist up vote 0 down vote favorite I'm trying to install a website built using the Python flask framework. For this I'm following this does not exist tutorial. I followed all steps successfully, but when trying to disable the default site and enable mywebsite with the following commands, but I get errors on both commands: $ sudo a2dissite default ERROR: Site default does not exist! $ sudo a2ensite mywebsite.nl ERROR: Site mywebsite.nl does not exist! I've got mywebsite.nl in /etc/apache2/sites-available: ubuntu@ip-xxx-xxx-xxx:/etc/apache2/sites-available$ ls -l total 16 -rw-r--r-- 1 root root 1332 Jan 7 2014 000-default.conf -rw-r--r-- 1 root root 6437 Jan 7 2014 default-ssl.conf -rw-r--r-- 1 root root 335 Jul 7 13:57 mywebsite.nl and the contents of mywebsite.nl are:
an apache configuration file for a virtual host however, I could not enable it using a2ensite. The file was here: /etc/apache2/sites-available/www.example.com I tried to enable it: a2ensite www.example.com However, the command complained that ERROR: Site www.example.com does not exist! The files clearly exists. It turns out the this command only works if the file ends with .conf. So mv www.example.com www.example.com.conf a2ensite www.example.com.conf Voila it now work. Why or why doesn't the developer give useful error messages. For example they should have write. Error - the files doesn't have a .conf on the end! Related 4 thoughts on “a2ensite ERROR: Site www.example.com does not exist! Ubuntu 13.10” shahid says: May 28, 2014 at 7:30 am Awesome! that's work for me. Thank you so much Reply Barter says: May 29, 2014 at 8:24 am Yes! It's works! Thank you Reply Laurence says: September 23, 2014 at 1:49 am You dont have to rename the file (it denies me from renaming the file). I just entered sudo a2ensite your_instance.conf and succeeded. Reply james says: September 23, 2014 at 8:43 am It sounds like you have had a different problem. Reply Leave a Reply Cancel reply Post navigation Changing the Bit Rate in Sound Juicer UbuntuAnsible htpasswd - this module requires the passlib python library Search for: Subscribe to Blog via Email Enter your email address to subscribe to this blog and receive notifications of new posts by email. Join 23 other subscribers Email Address Top Posts This Week How to install a list of packages with Ansible The Teamviewer daemon is not running - please start the daemon ubuntu How to resize a qcow2 harddrive images How to convert VirtualBox vdi to KVM qcow2 How to remove / purge / prune old mysql binary logs (safely) How to configure Ubuntu to log to a remote syslog server How To Clear Your Apple Maps Search History in iOS 8 Apache 2.4 Failed To Start AH00016: Configuration Failed Volvo V50 Reduced Engine Performance How