• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Installing Web Server

Joined
Jun 30, 2008
Messages
1,145 (0.20/day)
Location
England
System Name Wasleys PC
Processor Intel i5 2400 3.10GHz
Motherboard Asus P8z68-V
Cooling AC Freezer Pro
Memory Kingston 4GB (2x2GB) DDR3 Hyperx Memory
Video Card(s) HIS ATi 6850 1GB DDR3
Storage Seagate ST3500320AS 500GB Hard Drive SATA II 7200rpm *32MB Cache*
Case Antec 900 with mods
Audio Device(s) On Board
Power Supply OCZ Stealth Xtream 500W
Software Windows 7
I've been tasked with setting up a web page running a database in the background which allows my department to log certain activites.

Having no prior experience with creating / setting up a webserver, I'm in a bit of a dark hole - So I have a couple of questions. Any guidance / feedback would be gratefully appreticated.

- I've set up a partition on a drive to store the web files.
First question would be - is this bad practise? Should the web files be on a different drive completely?
The web page won't have a huge amount of activity, so it shouldn't effect the over performance of the other paritions.

- Once installed (Perhaps i'm jumping the gun!), how would I access the site.
I'm used to using XAMPP - so to access the site would be to simply enter 'localhost'. I assume i'd need to enter the IP address of the drive? That brings me to my next point - as there are several partitions on the drive, how would I direct it to that specific partition?

Apologies for the lengthy and perhaps stupid questions. This is all new to me.

:toast:
 
Last edited:

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,458 (2.42/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
rather than ask you a bunch of questions about your setup i am just going to go ahead and recommend what you do...

1. install CentOS with all desktop applications
-partition your drive so that you have the majority of data in / .
2. Apache will already be installed so you just have to turn it on
- www root located at /var/www/html
3. install MySQL using YUM
- it will install to /var/lib/mysql
4. You will only be able to use 'localhost' to access the apache instance locally. for those accessing remotely you will need either the hostname or the IP.
- make sure you turn off iptables
 

3rdshiftdj

New Member
Joined
Nov 28, 2013
Messages
1 (0.00/day)
OP, you can symlink from any partition to the root directory of Apache, then browse http://IP/path. You can also change the Document Root of apache to point anywhere.

for instance:

I symlink `ln -s /other/software /var/www/software`

If I browse to http://SERVER/software, it'll show up.
 
Top