LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-14-2010, 11:35 PM   #1
bborisov83
LQ Newbie
 
Registered: Sep 2010
Posts: 13

Rep: Reputation: 0
Question Help with Apache server. Adding web pages!


Hi i don't know much about Apache or Linux. i rented a server to run CS 1.6 game servers. I had someone install Apache and configure my server to be able to use control panel for my game servers( i am running 4 gservers and have 5 ips = 1 ip is free). When i type my primary ip in the web browser it displays the Apache test page. My question is can i add pages to the Apache without messing up anything with the control panel or my game servers. I am familiar with html. My primary ip is used for 1 of th egame servers but i can change that if necessary. And if possible to add pages how to add a site name, sth like www.myclan.com instead of entering the primary ip to display the content. Any advice? Thanks!
 
Old 10-14-2010, 11:52 PM   #2
morphix
Member
 
Registered: Nov 2007
Location: Newcastle, Australia
Distribution: Ubuntu, Debian, Arch
Posts: 53

Rep: Reputation: 15
First off, to be able to use a domain to access your website/webserver you will need to register a domain and name servers to host the DNS records.

You can then setup DNS records to point to your IP addresses for the web server.

You would then need to setup Apache to use VirtualHosts for each IP, or setup VirtualHosts using 1 IP address with different hostname.

Eg.
www.domain.com - Could point to the main website
game1.domain.com - Could point to game 1 control panel
game2.domain.com - Could point to game 2 control panel

All of these could be running from the 1 IP address, but have 3 different VirtualHosts setup in Apache to point each name to a different root directory.

It depends on how you want to set it all up.

I suggest you take a look at: http://httpd.apache.org/docs/2.3/vhosts/
 
Old 10-14-2010, 11:57 PM   #3
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
As you described as being new to administration, the shirt answer would be that if you find where the web root is, and only need one single website then you only need to publish the web pages and set the file permissions. If you do not already know where the web pages are on the server then you would search the httpd.conf for the location. The path /var/www/html/ is the most common.

Code:
grep DocumentRoot /etc/httpd/conf/httpd.conf |grep -v "#"

DocumentRoot "/var/www/html"
Then just use "ls -la" to identify the correct file ownership. Once you upload the pages then use chmod to change the correct ownership. For example if the owner is "nobody"

Code:
chmod nobody:nobody /var/www/html/filename
 
Old 10-15-2010, 12:14 AM   #4
bborisov83
LQ Newbie
 
Registered: Sep 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by joec@home View Post
As you described as being new to administration, the shirt answer would be that if you find where the web root is, and only need one single website then you only need to publish the web pages and set the file permissions. If you do not already know where the web pages are on the server then you would search the httpd.conf for the location. The path /var/www/html/ is the most common.

Code:
grep DocumentRoot /etc/httpd/conf/httpd.conf |grep -v "#"

DocumentRoot "/var/www/html"
Then just use "ls -la" to identify the correct file ownership. Once you upload the pages then use chmod to change the correct ownership. For example if the owner is "nobody"

Code:
chmod nobody:nobody /var/www/html/filename
Yes i need only 1 website but will this iterfire anyhow with the game panel and server i installed associated with that ip?
In var/www/html i have GameControlPanel and phpMyAdmin
 
Old 10-15-2010, 08:43 AM   #5
morphix
Member
 
Registered: Nov 2007
Location: Newcastle, Australia
Distribution: Ubuntu, Debian, Arch
Posts: 53

Rep: Reputation: 15
No, it won't interfere as long as its configured properly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Web server sees the pages, but not the folder that has all the images for the pages nortonz Linux - Server 9 05-17-2010 04:04 PM
Apache + where to place web pages?? blizunt7 Fedora 6 06-01-2005 04:27 PM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 06:44 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 03:38 AM
View Apache web pages r4merlin Linux - Newbie 10 02-17-2003 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration