Results 1 to 8 of 8
Hello everyone!
I'm working with a friend of mine to get our first server up and running. We have about a dozen sites and are having trouble getting the virtual ...
- 03-02-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 9
First time trying to set up a server... and it's not going well.
Hello everyone!
I'm working with a friend of mine to get our first server up and running. We have about a dozen sites and are having trouble getting the virtual hosting to work. Since we have never done this before I'm sure we are missing something very basic here.
We have followed multiple guides and installed Fedora 12 and Apache2. We have edited the httpd.conf file and added virtual.conf, but when we go to enable the site with 'a2ensite' we get an error, 'a2ensite command not found.'
Like I said, I'm sure this is a simple error. Any help is greatly appreciated!
- 03-02-2010 #2Just Joined!
- Join Date
- Aug 2009
- Location
- Evil Empire
- Posts
- 33
where do you type this command? Does your Apache server works with one site? (with no any virtual hosts configuration)
- 03-02-2010 #3Just Joined!
- Join Date
- Mar 2010
- Posts
- 9
We're not trying to execute the command in any specific user, but we are logged in as root.
- 03-02-2010 #4Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
What the 'command not found' error means is that file a2ensite isn't in any of the directories specified in the PATH variable.
You could try:
But I doubt it'll work. If it does you'll have to specify the path to run it, as listed below.Code:whereis a2ensite
You'll have to use the brute force method:
That'll search your entire disk. Once/If it finds it it'll list the full path like:Code:find / -type f -name a2ensite
/path/to/a2ensite
So to run it you have to specify the path as well:
/path/to/a2ensite
- 03-02-2010 #5Just Joined!
- Join Date
- Mar 2010
- Posts
- 9
It returned nothing. Any other ideas? Is this even the right command to use to enable the sites? We have a completely fresh install and have only added the virtual.conf file.
- 03-02-2010 #6
- 03-02-2010 #7
my only recommendation is to switch from fedora to a more server oriented distro like centos, F12 has a very short lifecycle, and having a non-up-to-date system is not a good idea especially with a web server
- 03-03-2010 #8Just Joined!
- Join Date
- Mar 2010
- Posts
- 9
I didn't find out how to make the virtual hosts work, but I got the main site to work. I commented out
This is what /etc/httpd/conf.d/virtual.conf containsCode:#Include conf.d/*.conf
Code:# # We're running multiple virtual hosts. # NameVirtualHost *


Reply With Quote