BetaONE will rise again!

BetaONE will rise again! (http:\\b1.hcanet.com\forum/index.php)
-   Web Development (http:\\b1.hcanet.com\forum/forumdisplay.php?f=50)
-   -   New to Apache (http:\\b1.hcanet.com\forum/showthread.php?t=7696)

~*McoreD*~ 24th Apr 03 07:39 PM

Hi,

I downloaded and installed Apache 2.0 and tried to host my site for more than 1.5 hours (from 0100hrs to 0220hrs) but still no clue. :(

When I go to [hide]http://mcored.dyndns.org/[/hide] it says:

Quote:

If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.
Much appreciated if you could tell me how to replace the page. I mean what should be my next step? :)

Thank you very much,
~*McoreD*~


I was a IIS-man for a long time but I heard it is so unsecure.

JacKDynne 24th Apr 03 11:31 PM

Take a look at the httpd.conf file ;)

/me waits to see the hidden text until I add more... :D

/JD

Sephiroth 24th Apr 03 11:32 PM

I'm not sure if it's the same with Apache 2x as 1x, I haven't used 2x much since things are just now beginning to be fully compatible with it, but look in your apache install dir\htdocs , and delete everything in there and put your files there, that's how you do it on 1x at least.... the folder may have changed

Sephiroth 24th Apr 03 11:32 PM

Quote:

Originally posted by JacKDynne@Apr 24 2003, 04:31 PM
Take a look at the httpd.conf file ;)

/me waits to see the hidden text until I add more... :D

/JD

lol jd, beat you to it :P

JacKDynne 24th Apr 03 11:39 PM

Quote:

lol jd, beat you to it
You faqqer :lol:

McoreD, can also change the default dir location:
Quote:


# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "F:/Program Files/Apache Group/Apache2/htdocs"

Change the DocumentRoot to point to your html file locations ;)

/JD

Sephiroth 24th Apr 03 11:41 PM

good point :P

~*McoreD*~ 25th Apr 03 02:32 AM

Quote:

Originally posted by JacKDynne@Apr 25 2003, 06:39 AM
Change the DocumentRoot to point to your html file locations ;)
he he. looking at the httpd.conf file was what i was doing but i didn't try DocumentRoot. guess what i did for the first time. i moved all the modules to my site's folder when it said it couldnt detect the modules. i moved the logs to my site's folder when it said it couldnt detect the logs. and then no errors but the site didn't work lol. then i was chaging ServerRoot and then UserDir but nothing worked. :D

phew now i see DocumentRoot has changed the site location. thanks JD for the help#1. now we come to the user rights part. i get:

Forbidden
You don't have permission to access / on this server.


i will have a look how to do it. but this way is fast. any ideas? thanks. :)

JacKDynne 25th Apr 03 01:47 PM

Did you change your conf. file in this location as well?

Quote:


# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/Apache Group/Apache2/htdocs">

</Directory>

And does your other respective section look like this?

Quote:

#
# Controls who can get stuff from this server.
#
&nbsp; &nbsp;Order allow,deny
&nbsp; &nbsp;Allow from all


:smoke:

/JD

E3 25th Apr 03 02:43 PM

And even with all this.... you guys still prefer Apache, huh ;)? I know everyone loves to hate M$ but my Windows 2000 Servers at work just keep on tickin morning noon and night without a hitch. Sure you have to update/patch them but I just consider that general maintenance (and you could even automate it if you wanted). The support and documentation for it is great, and there's info all over the place too. I mean I know I'm gonna get flamed here by all the Open Source lovers, but c'mon, who's ever gone through all this hassle using IIS? Okay, come and get me B).

All the best,
E3

JacKDynne 25th Apr 03 04:03 PM

Quote:

Okay, come and get me
:P :lol: :P

Quote:

I know everyone loves to hate M$ but my Windows 2000 Servers at work just keep on tickin morning noon and night without a hitch
So do mine, aside from having to stop and start a few services every now and then, but really no major gripes :D

Quote:

(and you could even automate it if you wanted).
Not recommended IMHO as some of the patches "break" other apps that may be running ;) :)

I like Apache 'cause it's free (no licensing costs) and really not that hard to figure out, the httpd.conf file has most everything in it needed to get you up and running :)

No flame intended E3 :)

/JD

~*McoreD*~ 25th Apr 03 06:01 PM

JacKDynne,

Thanks m8! now that the 'hard' part is over. :D
that was very helpful for me to pick what's happening.

now i am gonna have a look at how can i stop directory listing. cos when i go to mcored.dyndns.org it gives the directory listing and doesn't load the index.htm or default.htm. The user have to type it mcored.dyndns.org/index.htm to enter the website. :(
i want the web to be loaded when the user types mcored.dyndns.org not only by mcored.dyndns.org/index.htm.

Thanks you very much for your kind help. :)

~*McoreD*~


@E3, dude i am a pro-microsoft man. and i have used IIS. yes it is easier to setup and in the same way easily 'hackable'.
and the reason why i am trying Apache is it is a new thing and i love learning new stuff. and also it sounds good. :D

JacKDynne 25th Apr 03 06:18 PM

Quote:

DirectoryIndex

The DirectoryIndex Directive tells the Server what file(s) it should look for by default before it displays a Directory Index. Your Web Site is most likely configured so that the Server looks for index.html and index.htm files as the default files. If one of these files exists, their contents are displayed. If neither exists, the Server will create a Directory Listing and display that instead.

Example:

A request for http://www.mydomain.com/

will display the contents of

http://www.mydomain.com/index.html

if the file index.html file exists. If the file does not exist, the Server will create a directory listing which will display all of the files and directories in the Document Root.


:D ;)

/JD

E3 26th Apr 03 01:03 AM

Thanks guys, that wasn't so bad ;). ~*McoreD*~, I understand where you're coming from and respect that. I should try to find some time to learn more about Apache myself too.

Peace out :),
E3

~*McoreD*~ 26th Apr 03 10:56 AM

@E3, This thread is an ideal quick start guide to configure a Apache Server. :)

Thanks JackDynne for all the help and your valuable time. The httpd.conf is too long to be familer in one day. This thread helped me for the short cut. Thanks again. :D

JacKDynne 26th Apr 03 11:23 AM

Quote:

Thanks JackDynne for all the help and your valuable time
:) You are very welcome McoreD - No problem at all - the pleasure was all mine :thumbsup:

For anyone reading who may not know: You don't have to run *nix to run Apache, there is an .msi package available for the win32 platform :)

Go here to learn more about it: *http://httpd.apache.org/

And this page has the downloads: *http://httpd.apache.org/download.cgi

:)

/JD

Sephiroth 26th Apr 03 03:19 PM

like i've said before, the learning curve for Apache is much higher than IIS, but in the end it's a lot more stable and secure in my experience, /me looks at Apache that's running B1 :D :P

billybob3 27th Apr 03 08:27 PM

I hate this whole hidden text thing. It just forces you to reply, without knowing what you are replying to.

~*McoreD*~ 27th Apr 03 11:03 PM

Quote:

Originally posted by billybob3@Apr 28 2003, 03:27 AM
I hate this whole hidden text thing. It just forces you to reply, without knowing what you are replying to.
It is my private server. The idea of using hidden text is then you know the people who are eligile to access my server. And now you are part of that. If any thing happens to my server, now you are one of the people who are the suspects.

So don't force yourself to reply whenever there is a hidden text unless you really need to.


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.