I followed the tutorial on setting up Apache under Ubuntu - The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake). Everything worked as described. I do have two questions... 1 - I used webserver.computer-graveyard.com (computer-graveyard.com is a website that I am working on) throughout the tutorial. Half way through, I thought that I might want to host several websites on the same system. Is there an easy way to change the server name without having to do a complete reinstall? And secondly... now that I have Apache running, now what? I am new to Linux (I learned on DOS and Assembly Language back in the days of Atari and Timex on through to the end, then Windows and only now Mac and Linux). I do have several books coming on the basics of the Linux operating system, but I'm sure they aren't going to help with this. Where can I go to get information on actually running a Linux web server? Now that I have Linux and Apache up and running, I have no idea what to do? I am sorry for asking this ridiculously newbie question, but I hope you can help. Thank you in advance for your time.
Place the new hostname in /etc/hostname and run Code: /etc/init.d/hostname.sh start Both Code: hostname and Code: hostname -f should show your new hostname now. You might also want to replace the hostname in /etc/postfix/main.cf and /etc/hosts. The easiest would be to install a control panel like ISPConfig where you can create web sites using a browser. If you'd like to do it manually, take a look here: http://httpd.apache.org/docs/2.0/vhosts/name-based.html
I followed the link you suggested to Apaches web documents and following their directions, I edited /etc/apache2/httpd.conf and added the following code: NameVirtualHost * <VirtualHost *> ServerName 192.168.1.13 ServerAlias computer-graveyard.com www.computer-graveyard.com DocumentRoot /www/computer-graveyard </VirtualHost> I exit the editor, saving the changes and restart Apache with: /etc/init.d/apache2 restart What I get back is: * Forcing reload of apache 2.0 web server... [Sun Oct 28 05:14:52 2007] [warn] NameVirtualHost *:0 has no VirtualHosts [fail] I don't understand why it keeps telling me that there are no VirtualHosts! You have no idea how big a headache I have right now. New operating systems (ie. DOS) were alot easier to figure out back when I was 12! I guess I should have paid more attention to Linux back then, instead of taking the road most traveled, huh? Oh well. I'm trying now. So any help will be greatly appreciated! --- BTW . After deleting the lines I added to httpd.conf and trying to restart either Apache or the whole system, I simply get [fail] with no explanation. I would use ISPConfig, but I never could get my other systems (WinXP) web browser (Firefox) to connect to the ISPConfig Control Panel. I think it's the parameters I used during the ISPConfig install, but I wasn'e exactly sure what to use. Here are the answers I used to the following questions: Please enter your MySQL server: 192.168.1.13 Please enter your MySQL user: root Please enter your MySQL password: <MySQLpassword> Please enter a name for the ISPConfig database: ispconfigdb Please enter the IP address of the ISPConfig web: 192.168.1.13 Please enter the host name: webserver Please enter the domain: computer-graveyard.com Please select the protocol (http or https (SSL encryption)) to use to access the ISPConfig system: 2 The parameters I used when installing Linux / Apache according to the 'Perfect Setup' guide found here are as follows: The hostname (right now anyway) is webserver.computer-graveyard.com the IP address of the server is 192.168.1.13 PLEASE! HELP!