Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th October 2007, 17:25
rebeltaz rebeltaz is offline
Member
 
Join Date: Oct 2007
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default ttally lost - server setup

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.
Reply With Quote
Sponsored Links
  #2  
Old 26th October 2007, 14:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by rebeltaz
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?
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.

Quote:
Originally Posted by rebeltaz
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.
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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th October 2007, 04:21
rebeltaz rebeltaz is offline
Member
 
Join Date: Oct 2007
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation

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!

Last edited by rebeltaz; 28th October 2007 at 05:01.
Reply With Quote
  #4  
Old 28th October 2007, 15:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by rebeltaz
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!
Simply type in https://192.168.1.13:81 in your web browser.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup server setup gabriel925fm Installation/Configuration 1 25th September 2007 08:58
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44
Server Setup Questions Techman Installation/Configuration 1 18th March 2007 19:07
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 10:07
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 11:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.