Fooling with Apache
#1
Fooling with Apache
Let me know if anyone has any trouble seeing this page...
http://hearn.serveftp.com
Basically, I'm just learning how to run my own web server with Apache. It's nothing fancy for now, just trying to see if it'll work. It's running fine on my other laptop but I wanted to see if anyone else had trouble viewing it.
http://hearn.serveftp.com
Basically, I'm just learning how to run my own web server with Apache. It's nothing fancy for now, just trying to see if it'll work. It's running fine on my other laptop but I wanted to see if anyone else had trouble viewing it.
#3
Originally Posted by WATRD
It looks like an "under construction" page 


Rob, I figured maybe you'd know something about this. I downloaded AppServ which comes with Apache, MySQL and other little doodads. I probably need to read up on how to actually use it (i.e., make it more secure for my server), because once I figured this out it seemed a little too easy. Any pointers? I want to learn how to use MySQL but I don't know exactly what it can do.
#4
what exactly do you wanna do? If you're just making an informational site you don't really need to make it any more secure than it is. I mean just make sure you permissions for the files you have are read only...
#5
Originally Posted by Churnd
Wooooo Hoo!!!!!! 
Rob, I figured maybe you'd know something about this. I downloaded AppServ which comes with Apache, MySQL and other little doodads. I probably need to read up on how to actually use it (i.e., make it more secure for my server), because once I figured this out it seemed a little too easy. Any pointers? I want to learn how to use MySQL but I don't know exactly what it can do.

Rob, I figured maybe you'd know something about this. I downloaded AppServ which comes with Apache, MySQL and other little doodads. I probably need to read up on how to actually use it (i.e., make it more secure for my server), because once I figured this out it seemed a little too easy. Any pointers? I want to learn how to use MySQL but I don't know exactly what it can do.
If you install PHP on your Apache/MySQL box, you have a SERIOUSLY powerful combination. PHP and MySQL are designed from the ground up to work together. It's still under construction, but take a look around the WATTORA site. The forum and all the members features are run via PHP and MySQL.
In answer to what you can do... with that combination, you can do anything you have ever seen on a website
#6
As far as permissions go...
I couldn't really find anywhere that included the numbers 777 or 755. I hope I'm not doing myself wrong by posting some of my .conf file here but I've found these sections and wonder if they have to do with configuring my permissions correctly...
Or possibly another part...
I know it probably should be somewhere in that neighborhood of the .conf file, but don't know where...
To get some of the code to show up properly, I had to change the beginning "<" on each "Directory" to "("
I couldn't really find anywhere that included the numbers 777 or 755. I hope I'm not doing myself wrong by posting some of my .conf file here but I've found these sections and wonder if they have to do with configuring my permissions correctly...
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
(Directory />
Options FollowSymLinks ExecCGI Indexes
AllowOverride None
(/Directory>
# permissions.
#
(Directory />
Options FollowSymLinks ExecCGI Indexes
AllowOverride None
(/Directory>
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
(/Directory>
#
Order allow,deny
Allow from all
(/Directory>
To get some of the code to show up properly, I had to change the beginning "<" on each "Directory" to "("
Last edited by Churnd; Feb 11, 2005 at 05:13 AM.
#7
Originally Posted by WATRD
The biggest deal to keep in mind with a webserver is to keep permissions as low as you possibly can. NOTHING should ever be permissioned to 777. 755 is all you will ever need and even then most scripts won't need even that. That is fully half the battle when it comes to security.
If you install PHP on your Apache/MySQL box, you have a SERIOUSLY powerful combination. PHP and MySQL are designed from the ground up to work together. It's still under construction, but take a look around the WATTORA site. The forum and all the members features are run via PHP and MySQL.
In answer to what you can do... with that combination, you can do anything you have ever seen on a website
If you install PHP on your Apache/MySQL box, you have a SERIOUSLY powerful combination. PHP and MySQL are designed from the ground up to work together. It's still under construction, but take a look around the WATTORA site. The forum and all the members features are run via PHP and MySQL.
In answer to what you can do... with that combination, you can do anything you have ever seen on a website

Trending Topics
#9
777 and 755 refer to the permissions of the folders that contain your web facing files. Look up the term "chmod".
http://catcode.com/teachmod/
You are on the right track by locking things down. If in doubt, make things more restrictive and loosen up permissions as you need them, not the other way around.
http://catcode.com/teachmod/
You are on the right track by locking things down. If in doubt, make things more restrictive and loosen up permissions as you need them, not the other way around.
#10
Originally Posted by WATRD
777 and 755 refer to the permissions of the folders that contain your web facing files. Look up the term "chmod".
http://catcode.com/teachmod/
You are on the right track by locking things down. If in doubt, make things more restrictive and loosen up permissions as you need them, not the other way around.
http://catcode.com/teachmod/
You are on the right track by locking things down. If in doubt, make things more restrictive and loosen up permissions as you need them, not the other way around.
#12
Originally Posted by Churnd
I'm running Apache in Windows, if that matters.
Set everything to read only... then increase the accessability as necessary. It'll probably take some playing around with, and it may very well get frustrating and tedious, but it's very much worth it in the long run.
#13
sweetness.....I was about to setup something similar or learn how too before I ˟˟˟˟ my computer up a little, regardless I got it back up and running....
Maybe you can post some link of where you downloaded apache and any information you have thus far. Then I can give it a try
Maybe you can post some link of where you downloaded apache and any information you have thus far. Then I can give it a try
#14
Apache is open source, which means it's free to the public. You can download the http server directly from the Apache site. Setup is pretty straight forward.
#15
Cynicx -
Here's what I've learned so far:
Here's what I've learned so far:
- When you install Apache, you don't really "see" it running. It just creates a service.
- Setup is pretty straightforward, and anything you enter can be changed in your .conf file later
- It'll create a folder on your c:/ drive called "www". Anything you place in this folder will be made viewable online. Any html file labeled index will be the first page it looks for.
#16
I'm a bit confused.....where do you get the domain name from?....sorry I should really read up on it before asking questions.....
EDIT: I'm dumb, I dunno what I was thinking, I had the port closed in my router....derrhhh
EDIT: I'm dumb, I dunno what I was thinking, I had the port closed in my router....derrhhh
Last edited by CynicX; Feb 11, 2005 at 02:57 PM.
#17
If I recall right, you signed up with no-ip.com, right? Well, whatever name you used for your FTP server, you can use the same one for your web (HTTP) server. It's just a name for your computer that's more handy to use instead of remembering and typing in a full IP address every time. The domain name just points to your IP address. That little program you downloaded updates no-ip to your current IP address in case it changes. If you had a static IP (which costs more), you wouldn't need that.
So, once you get Apache up and running, your address would be http://cynicx.myftp.org.
Your domain name is cynicx.myftp.org.
So, once you get Apache up and running, your address would be http://cynicx.myftp.org.
Your domain name is cynicx.myftp.org.
Last edited by Churnd; Feb 11, 2005 at 02:58 PM.
#19
Great, that means you have it up and running. Now all you do is design web pages to reside in that folder. As far as the structure of how to maintain that folder, I'm not 100% sure. I think you should be able to create other folders for different web pages as long as you point to them correctly through the index.html file.
That page you see right now is just a pre-written html file that came with Apache.
I think you should also be able to host as many sites as you want through different domain names as long as you edit the .conf file correctly and create different domain names for them.
That page you see right now is just a pre-written html file that came with Apache.
I think you should also be able to host as many sites as you want through different domain names as long as you edit the .conf file correctly and create different domain names for them.
Last edited by Churnd; Feb 11, 2005 at 03:10 PM.
#20
Pages are served up via the following scheme;
You can use any of the following (listed in order of priority):
index.htm
index.html
index.shtml
index.shtm
index.php
index.php3
default.htm
The root page, the page that people see when they hit the domain must be in the root, but from there you can build any directory structure that you may desire.
You can use any of the following (listed in order of priority):
index.htm
index.html
index.shtml
index.shtm
index.php
index.php3
default.htm
The root page, the page that people see when they hit the domain must be in the root, but from there you can build any directory structure that you may desire.


