Having problems getting started with apache

cesm23

New member
Member
Local time
4:20 AM
Messages
51
I am a complete noob regarding apache itself, even tough i already have some experience when using HFS for example, i am having big problems getting a html file on my hard drive showing up. I keep getting the 403 forbidden error or the 404 file not found error... please anyone that understands about apache help me, i already did tons of google searching (and spent several wasted hours that's why i am doing the post as a last resourt) and ALL solutions i found NONE of them solve the problem, i can't understand why is it SO difficult setting up apache, while with other http servers like hfs was so easy... I also fiddled as much as i could the httpd.conf file and it never works.
 

My Computer

OS
Windows 7 Ultimate 64bit SP1
CPU
AMD Phenom(tm) II X4 955 Processor 3200 BE
Motherboard
Asus M4A785TD-V EVO
Memory
8GB DD3 PC3-10700 (4X2GB modules)
Graphics Card(s)
ATI Radeon HD 5770
Sound Card
Onboard
Screen Resolution
1024x768
Hard Drives
320GB SAMSUNG SATA2
500GB SEAGATE SATA2
2000GB SAMSUNG SATA2
250GB HITACHI SATA2
What guides have you followed for Apache? Are you using a package (like XAMPP) or are you attempting to install Apache, MySQL and PHP separately? Is this for a test environment, or are you trying to run a webserver for external access (IMHO - bad bad bad, unless you have extensive webserver security experience)?
 

My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
What?? No MySQL tutorial? For shame! ;)
 

My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
MySQL is a pain in its own right. :P
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
I need to know, amongst a lot other things to know this because i will take a certificate for a computer technician, and so i have to study by myself the topics they gaved me in a paper, and some of them are :

"install and setup a "apache" web server
manages the websites, users and accesses

Altough since i have to learn how to use this, maybe i could use it for myself as well, even tough i need mostly to share files from my computer with other friends of mine on the internet.

I don't know much about MySQL and PHP, since i only know how to do html editing, so setting up a site is quite new to me.

Ok i will check the guide tomorrow and then i give some feedback, thanks logicearth for this :) (and yes that's the same version of apache i downloaded)
 

My Computer

OS
Windows 7 Ultimate 64bit SP1
CPU
AMD Phenom(tm) II X4 955 Processor 3200 BE
Motherboard
Asus M4A785TD-V EVO
Memory
8GB DD3 PC3-10700 (4X2GB modules)
Graphics Card(s)
ATI Radeon HD 5770
Sound Card
Onboard
Screen Resolution
1024x768
Hard Drives
320GB SAMSUNG SATA2
500GB SEAGATE SATA2
2000GB SAMSUNG SATA2
250GB HITACHI SATA2
Are you running Apache on Windows 7? Maybe if we could get some more information on what you are doing...we could lend a hand.
 

My Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
Yes that's right, i am using windows 7 ultimate, and i am using apache (apache_2.2.14-win32-x86-openssl-0.9.8k.msi) and i installed apache.

Now i have just read the guide that was posted here, and i notice that when typing "http://localhost/" the apache server is working correctly after all, the problem is when trying to access it's page from another computer on the internet, using the links i entered in the "network domain" and "server name", because when i try to access the folder using those links i wrote in those fields, i always get a 403 or 404 error, i have tried many things that i found on google to fix this problem, but it never gets fixed, i don't even get any error in apache's log at all!

Unless it's absolutly required to install PHP and install Internet Information Services to be able to someone else acess my page ? (at the moment my webpage is just the index.html since i don't plan on running a website from my computer for real, it's just to learn how to do it for the exams i will have to do to get the certificate).

note : one of the guides i have seen before posting here was http://articles.techrepublic.com.com/5100-22_11-6048525.html and it doesn't talk about php or iis in there, and also i am unable to access the apache page that way the person did, only the keyword localhost works.
 

My Computer

OS
Windows 7 Ultimate 64bit SP1
CPU
AMD Phenom(tm) II X4 955 Processor 3200 BE
Motherboard
Asus M4A785TD-V EVO
Memory
8GB DD3 PC3-10700 (4X2GB modules)
Graphics Card(s)
ATI Radeon HD 5770
Sound Card
Onboard
Screen Resolution
1024x768
Hard Drives
320GB SAMSUNG SATA2
500GB SEAGATE SATA2
2000GB SAMSUNG SATA2
250GB HITACHI SATA2
Serving pages to the internet involves a bit more work. Unless you have a domain that is pointed to your home internet IP, it won't be resolved correctly; you'll have to use your external IP address in the browser's address bar (ie: http://214.xx.xxx.xxx). Plus, if you have a router, then most likely it's preventing any access to your internal network from the outside world. You'll have to do some port forwarding to redirect certain ports to whichever computer is running the webserver.

IIS is a Microsoft product - Apache is Apache's product. They both do the same basic thing, and are not required to run the other.
 

My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
Oh i see... so that's why i could run HFS without any problems, it was because i was using my ip as the adress.

IIS is a Microsoft product - Apache is Apache's product. They both do the same basic thing, and are not required to run the other.

Ok then... what is necessary then to make the domain work ? I mean, i tought apache would already setup the domain and associate to my ip, but if just assumes it's already set up, then what i have to do to make that work ? is this on the guide that logic earth indicated ? I don't seem to find that part. After all, this is the main problem i have here when i posted the topic.
 

My Computer

OS
Windows 7 Ultimate 64bit SP1
CPU
AMD Phenom(tm) II X4 955 Processor 3200 BE
Motherboard
Asus M4A785TD-V EVO
Memory
8GB DD3 PC3-10700 (4X2GB modules)
Graphics Card(s)
ATI Radeon HD 5770
Sound Card
Onboard
Screen Resolution
1024x768
Hard Drives
320GB SAMSUNG SATA2
500GB SEAGATE SATA2
2000GB SAMSUNG SATA2
250GB HITACHI SATA2
No, the guide he wrote is just for setting up the Apache application. You must pay for a domain, and pay for it to either be hosted or be redirected to your IP address. If you have a dynamic IP address (most home ISP providers don't give you a static IP address) then you'll probably have to use a utility on your home PC that will automatically update your domain so that it will always point to your home IP address.

You'll also have to open up port 80 on your router and use port forwarding to point all traffic on port 80 towards your webserver. Be warned - exposing your home computer to the internet can spell trouble. An unsecured webserver is an easy target.

I think you should do a little googling and find a forum/website that caters to webserver development. You'll get expert advice on that type of a forum. Most people who set up a webserver do it because they are developing web applications (PHP, .NET, etc) and need it to do local testing. That's what I did, back when I was actively developing web applications. I could work from any of my local computers (edit the hosts file on each computer - you can add an entry that will redirect local traffic to a certain computer) and not have to waste time uploading changes to my hosted website.
 

My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
Ok then... what is necessary then to make the domain work ? I mean, i tought apache would already setup the domain and associate to my ip, but if just assumes it's already set up, then what i have to do to make that work ? is this on the guide that logic earth indicated ? I don't seem to find that part. After all, this is the main problem i have here when i posted the topic.

Apache sets up and binds itself to one of the IP addresses that is on your computer. So, lets say that you are the typical home user who has a router and a PC connected to the router. Let's also assume that your local workstation IP Address is 192.168.1.10. With apache setup on that machine, you can likely hit your webpage with http://localhost/index.html as well as http://192.168.1.10/index.html.

Now, from another computer on your local network, you would have to ensure that the firewall on your workstation allows traffic on port 80 (which is http). So, if port 80 is open, from another machine (let's say 192.168.1.11)....you should be able to hit http://192.168.1.10/index.html.

Now, from the outside world..your ISP has assigned an IP address to you (lets say it's 69.10.10.1). So, on your router, you would have to set up TCP forwarding to listen to traffic coming inbound on 69.10.10.1 on port 80 and then redirect that traffic to your internal network machine 192.168.1.10. That way, when somebody hits: http://69.10.10.1/index.html...it will hit your router and then go to your machine and show them the page at http://192.168.1.10/index.html.

Finally, most people want to associate an IP address with a domain name. So, you could go to something like dyndns..and register a domain name for free...so somebody like me could go to http://mywebsite.domain.com/index.html and see your webpage.


Oh...and the reason that apache showed nothing in the logs when you tried to hit from another machine is MOST LIKELY because the traffic NEVER made it to apache to log in the first place. I'm about 99.9% sure the firewall on the local computer stopped you.
 

My Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
hum... well that's another story, maybe i wont' use this thing of the domain after all, thanks for the help anyway i will see what i decide later.
 

My Computer

OS
Windows 7 Ultimate 64bit SP1
CPU
AMD Phenom(tm) II X4 955 Processor 3200 BE
Motherboard
Asus M4A785TD-V EVO
Memory
8GB DD3 PC3-10700 (4X2GB modules)
Graphics Card(s)
ATI Radeon HD 5770
Sound Card
Onboard
Screen Resolution
1024x768
Hard Drives
320GB SAMSUNG SATA2
500GB SEAGATE SATA2
2000GB SAMSUNG SATA2
250GB HITACHI SATA2
Back
Top