Results 1 to 6 of 6
Thread: Help With httpd Code on Apache
Enjoy an ad free experience by logging in. Not a member yet? Register.
Help With httpd Code on Apache
I guess I really don't understand what it is exactly that your asking for. We can't just give you an httpd.conf file and expect it to work on your computer. Chances are is it won't. Every setup is different. You need to configure ports,server name, document directory, users, groups, virtual servers and root web. I don't think I missed anything. But in order to get it to work, you need to figure out your configuration for those things, and add it to the file. That's the bare minimum to get it to work. There is still security that should be considered as well.
I am new at this as well. So feel free to correct me if I am way off base here. I am just going off of what I had to go through to get my httpd.conf configured to work with my machine.
- Join Date
- Dec 2004
First of all, what distro are you using? What HTML editor are you using? Will you need PHP, MySQL, SSL etc.? We need to determine what modules you will need? From here we can get some sort of idea as to what it is you seek to accomplish.
As for setting up a simple "static" Web site using Apache, it takes no more than five minutes - given a working and networked Linux box.
Yes, thanks 4 ur correction and advices guys. Here my spec: i`m using Fedora Core 5, and i was already installed the Apache. What i`m trying here is..okey..the stories goes like this : i`ve been read a book, Networking In Linux RedHat 9. In that book, theres an examples...the configuration of httpd.conf. How to configured the Server, WebServer it self, my homepage..And yes i`m using HTML pages for my website.
The problem is..yes, the Apache (Virtual Host) its run correctly, but i can`t run my homepage..when i was put the address on the I.E there always pop up message "Can`t connect to server" but i was already configured my server and web admin. But my homepage cannot showed up...uugghh.its hard to explain...oohh...yeeaa..one more thing...i cannot configured the Apache configuration from GUI. When i choose the DNS menu...always error pop up "Must fill with alphanumeric" on the Host menu on DNS menu.
Is theres somethin wrong with my Fedora Core 5 CD??and one more thing, i cannot use add remove software menu...also showed error message...should i change my distro??with Fedora 4 or Linux RedHat 9??i was bought Linux CD`s in my countries...well all of them was erorr...i was spent $ 300 ...so what ur suggestion for me guys...
Ohh yea..one more thing..can u gave me ur httpd file configuration guys??just for example...just used ur own configuration...after i`m finish downloading i will used my own configuration...Thankss..if u will help me out..
Thanks for the adviced..good to hear and thanks for the replied...
if you open a web browser on your linux box and go to http://localhost do you see a web page?
If you are using a router between your server and the internet make sure you forward port 80 to point to the IP address of your web server.
Check with your internet service provider to make sure they are not blocking port 80. Mine was and was causing headaches.
As far as the rest of the issues you are seeing, you might want to try doing an update, that might fix those errors. just type yum update from a terminal window. but make sure you have root access when you do it.
What should i do???
Yes, the webpage were showed up when i wrote http://localhost/ on the Address browser. But just one question...i bought a Linux book, with local writer. He wrote in his book about Web Server, but his not mentioned about other configuration to build a WebServer. My question is :
1. Is Proxy Server, File Server and Diskless Server needed to build a WebServer?
2. My Pc its Stand Alone Pc, and i didnt have other computer. So can i build a Web Server on my Pc?
3. The writer(as i told u up there), he wrote "http://www.example.com" on his browser address, and it worked (for him),before that he asked the reader to configurate the httpd.conf first. Specially in Virtual Host part..but when i was doing his configuration, its totally failed. "Cannot Find Server www.example.com" but if i wrote "http://localhost/page.html" it worked, the webpage were showed up. So my question is "how can i do that?" (write http://www.example.com) on the address??
Honestly the writer didnt gave much information about the Server Configuration, such as how many Pc that we need etc.
Thanks guys....I hope you got the point..