Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie seeking help.

Status
Not open for further replies.

Tzunami

Programmer
May 16, 2001
19
CA
I'm a beginner at web designing. I can handle the HTML part, but now I would require some help on how to deploy it on the web.

I have a skeleton web site designed and I will have to add some datawindows (using sybase products mostly).

I have an Apache server on a Linux RedHat platform. I know that I have to copy my files to the /var/ folder, but what else do I have to do?

Thanx
 
well /var/ seems a very strange to put web pages in first place to me
its usually /home/httpd/html/* but reality can be any place at all via configuration
files of the web server apache.

Your questions are short.....what else do you do? you really didn't say where your
at in your project.
1. Is box on network up and running?
2. can you access your pages via browser from your web server?

I can tell you as much as you need to know but have to start somewhere.

maxit
 
I have to admit that I really start from scratch. I learned 2 weeks ago that I had to build a web page on the Apache server and I never worked with servers before, so where should I start? Unless you want to help me step by step, is there any good guide or Tutorial somewhere?

As for the accessing the page, I can see it, but through the path (files/...) and not the domain name. With the domain name, I see an HTML source code that I have yet to find on the machine.

Thanx
 
You must be view the server pages by typing this into a browser:
or 127.0.0.1:80
this will bring up an apache webpage that shows that the server was installed correctly.
If you do not see anything you will need to turn apache on or reinstall it.
If you have it tured on and see the webpage, the default directory should be seen in httpd.conf.

BTW- are you working with windows or linux?


Hope this helps!


Rninja
 
I'm working on Linux RedHat

Now, I've found the folders and copied them at the right place, now the problem I face is that when I go to my localhost, I see the index of the folder with my files in it but I have to click on the .htm files to actually see them.

I would like to see it just by typing the hostname
(ie: blah.blah.ca and not blah.blah.ca/index.htm). How is it done?

Thanx, and you will hear from me again soon I guess...
 
You are using .htm? why not just use .html? that is standard.... I guess you were using microsoft products...
Well go into your httpd.conf file and look for a line called "DirectoryIndex" set one of the types to be index.htm or default.htm etc.



Hope this helps!!


Rninja
 
Hello... me again!

now that my earlier problems are all dealt with (thanx you guys), I have to face new ones.

There is a section on the website that I want to make available only to the employees coming to the site (time sheet feature), so I sent all the .htm/.html pages in one directory that I want to protect (in permission mode 0755)

I've created a passwd file with htpasswd and a group file.
After, I went to the access.conf and typed the following:

<Directory path/to/my/directory/>
AuthName members
AuthType Basic
AuthGroupFile /path/to/group/file/group

<Limit GET POST>
require group employees
</Limit>
</Directory>

yet I still can access the section like any other without any pwd through the browser (made sure it didn't use the cache...)

What am I doing wrong? Does the access.conf have to be in the server root (since it isn't now)?
 
Hi Tzunami,
If you are using ver 1.3.19, the access.conf and the srm.conf are no longer used by default. If you look in httpd.conf, you will see that they have been commented out. To get httpd to read them you will have to uncomment them. Your other option is to just put all your configs in httpd.conf. Good luck.
 
Still doesn't work:

Added the following line in etc/httpd/conf/httpd.conf:

AccessConfig conf/access.conf

So the other option would be to put my configs in the httpd.conf, so that means I have to copy/paste my <directory> tag from access to httpd right?

(May sound stupid, but as I said in the title, I'm a newbie and you guys are the only help I can find...)
 
Hmmm, I'da thunk it woulda worked. ::eek:) Did you make sure there's no comment right after that line? Did you restart httpd? Oh well. Yeah, I don't see why you can't cut and paste them into httpd.conf. I'm kind of new at this myself. I just started setting up my server a couple weeks ago and this is my first time hosting my own website - I have the remodeling stuff down pretty good but I still have to pay my dues before I'm a real webmaster. :eek:) I've been searching high and low for help with getting my cgi scripts to work. Well I hope you're having an easier time than me. Let me know how it turns out.
 
... restart httpd??? maybe that's the problem... I didn't since I have no clue what it is.

As for the comment, there is none since I wrote the line. It wasn`t commented, it wasn`t even there at all.

(by the way, the link you put there is wrong...)

As for the CGI, up to now, I don't have any and I'm not sure I'm going to need some. I use some javascripts a little, but that's all. As for me considering myself a webmaster, I still have a crapload of work to do. (enough to get dizzy s-) )
 
to restart the apache server, type this at the linux box or in a telnet/ssh session:
&quot;/usr/local/apache/bin/apachectl restart&quot;
This will restart the server and load new changes to httpd.conf. I suggest making a seperate .htaccess file in the directory you are trying to password-protect. Place those directives from your prior comment into the .htaccess file, and don't put the </Directory> at the very end, place it before the <Limit> tag. Then try it.


Hope this helps!!


Rninja
 
thanx, now that that I restarted apache, it works... partially.

The first time I want to access the secured directory, it asks for the user id and pwd. So I entered a good combination and I was in. After, I wanted to try a wrong login/pwd but since I logged in earlier, the server doesn't asks for the login/pwd. So the question is: Once I'm in, how do I logout so the server asks for the codes again? Is there a way to logout automatically when going elsewhere rather than clicking a link to that effect?

I'm even starting to annoy myself with all those questions *sigh*
 
I would try clearing the cash in my browser, both disk and memory.
 
Just close the browser or dump the browser cache and type the secured directory again.


Hope this helps!!!


Rninja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top