LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2005, 01:28 AM   #1
tspeicher
Member
 
Registered: Jan 2005
Distribution: Fedora 2.0
Posts: 38

Rep: Reputation: 15
Newbie Configuration of Apache Server


I have successfully installed Debian (thanks to the wonderful guide available here online). Using Synaptic, I have successfully installed Apache. I know that because I can pull up the default Apache web page from my Windows XP computer.

Is there a GUI configuration for Apache? I want to host multiple web sites on this one server (single ip address). I am using wmaker as a windowing manager. (I hope wmaker stands for windows maker and not widow maker.)

I'm afraid I don't know any versions of anything but if you need that info, I'll get it if you tell me how. Thanks.

-Terry
 
Old 04-29-2005, 01:35 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
configuring httpd.conf directly realy isn't too hard, but if you do want some form of gui, have a look at webmin.
 
Old 04-29-2005, 07:59 AM   #3
tspeicher
Member
 
Registered: Jan 2005
Distribution: Fedora 2.0
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks. I've used Webmin before but it slipped my mind.

You say it's not too difficult to do it in text mode. Can you tell me where I can get some basic instructions for how to edit that file (I'm not even sure what directory it is stored in)?

-Terry
 
Old 04-29-2005, 08:40 AM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Quote:
Originally posted by tspeicher
Thanks. I've used Webmin before but it slipped my mind.

You say it's not too difficult to do it in text mode. Can you tell me where I can get some basic instructions for how to edit that file (I'm not even sure what directory it is stored in)?

-Terry
The best place to get some basic instructions on how to edit the file is the file itself. It 's really well documented. I did not have any expirience on how to edit it when I first tried. Just back up it and then play with it. If something goes really wrong you may still restore the original one. Also google is your friend.
The file is the same I think for any OS. I'm sure if you use google there are many tutorials/guides
 
Old 04-30-2005, 10:12 AM   #5
tspeicher
Member
 
Registered: Jan 2005
Distribution: Fedora 2.0
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks. My problem was finding documentation that I could understand. It looks like a lot of the beginning docs still assume that you know basic text mode Linux. For all the times I've picked it up and put it down, I still struggle with the basics.

With that in mind, I am using debian and I need to know what to install that will enable me to print to my external Jetdirect on my network. I have lpr installed, but Webmin doesn't have anything in it except to print to a local port (coms and lpts) or to a unix server. I wanted to print out the http.conf file for closer examination. I'm off to try more things, but wondered if there were a helping hand (or rather a helping finger to point me in the right direction).

-Terry
 
Old 04-30-2005, 11:06 AM   #6
tspeicher
Member
 
Registered: Jan 2005
Distribution: Fedora 2.0
Posts: 38

Original Poster
Rep: Reputation: 15
Ok, the problem I am working on is to setup an Apache Server with multiple name-based web sites. If I find the answers to my own questions, I will post them here to have a log of what I am doing to accomplish this task.

I have printed information from Apache.org and I have a list of directives and explanations for them. I have Webmin installed and can get to the http.conf file through that GUI. However, the file is quite long and I would like to print it out.

So now I need to digress and figure out how to get my debian system to print to my JetDirect. I used Syanptic to find lprngtool and installed that. When I ran it, it suggested that I install mpage and gs (ghostscript - postscript - I finally got it!). The description for gs suggested that I try gv instead, so I did.

Then I successfully used lprngtool to (I think) configure my laserjet printer. But it won't print from a mozilla web page. Is there a printer test I can run?
 
Old 04-30-2005, 03:06 PM   #7
tspeicher
Member
 
Registered: Jan 2005
Distribution: Fedora 2.0
Posts: 38

Original Poster
Rep: Reputation: 15
You stupid newbie, (since noone has replied, I started talking to myself), You forgot to set the filter. The filter is the Windows equivalent to a "driver" that tells the computer what codes to send to the printer.

And as if that wasn't bad enough, the Printer Test page is right there on the menu of the lprngtool!!



The big question now is this: Why can't I print a web page showing in Mozilla? I click print but nothing comes out. It doesn't even show the new printer in the list. What's up with that?
 
Old 04-30-2005, 03:20 PM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
I don't know exactly what you are doing but most linux distros, including fedora I think use CUPS for printing. Enable cups from the services windows in one of your menus, if it isn't enabled and then open your favorite Web Browser, and in the address bar type:
Code:
localhost:631
(without any space)
From there you should be able to add a new printer, but as far I remember fedora can autodetect your printer. So even this may not be necessary.
 
Old 04-30-2005, 03:36 PM   #9
tspeicher
Member
 
Registered: Jan 2005
Distribution: Fedora 2.0
Posts: 38

Original Poster
Rep: Reputation: 15
I installed CUPS and configured it just like you said. From the CUPS administration, I was able to set up the printer and print a test page. (I have no idea if there will be any conflict between CUPS and LPRngtool.)

But why can't I print from the web browser?

And how do I print a document from a terminal window?
 
Old 04-30-2005, 03:47 PM   #10
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
make sure you have in usr/bin the lp, lpr, lpq,lprm,lpstat soft links pointing to lp-cups,lpr-cups,lpq-cups etc.
You can print an ASCII file using lp or lpr command:
Code:
lp <filename>
*EDIT*
lprng and CUPS cannot cooperate, because both need those links.
CUPS needs lp pointing to lp-cups and lprng needs lp pointing to lp-lprng I think.
But I don't think they conflict. It's just you cannot make use of both.

Also, it's really Ironic, you hijacked your own thread

Last edited by perfect_circle; 04-30-2005 at 03:54 PM.
 
Old 04-30-2005, 04:23 PM   #11
tspeicher
Member
 
Registered: Jan 2005
Distribution: Fedora 2.0
Posts: 38

Original Poster
Rep: Reputation: 15
I have located the httpd.conf file in the /etc/apache directory. I tried "lp httpd.conf" and "lpr httpd.conf" but nothing printed out. Remember I'm a newbie and I'm sure I'm missing something simple. Any directions you can kick me in?
 
Old 04-30-2005, 04:51 PM   #12
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
are the lp,lpr links OK?
DO
Code:
 ls -l /usr/bin/lp
to see where they are linking to
 
Old 04-30-2005, 05:23 PM   #13
tspeicher
Member
 
Registered: Jan 2005
Distribution: Fedora 2.0
Posts: 38

Original Poster
Rep: Reputation: 15
running that command produces this:

lrwxrwxrwx 1 root root 3 Apr 30 02:19 /usr/bin/lp -> lpr

I don't know exactly what that means.
 
Old 04-30-2005, 06:59 PM   #14
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
It means lp is a symlink to /usr/bin/lpr (think of it as like a shortcut in Windows, I made a post earlier this week with some more nerdy detail about how links work, which you can read if you want). Does typing lpq have an entry for your printer? If so, try lpr -P<printer name> httpd.conf. Do you get any messages of any type when you try that?

As for many host names on one server, read the virtual hosting part of httpd.conf. You use virtual hosts to do this. In particular in httpd.conf you have:

NameVirtualHost *

and then:

Code:
<VirtualHost *>
   ServerName www.foo.com
   DocumentRoot /foo/dot/com/docroot
   # other config parameters
</VirtualHost>
<VirtualHost *>
   ServerName www.bar.org
   DocumentRoot /bar/dot/org/docroot
   # other config parameters
</VirtualHost>
Fill in values appropriate to your system. Good luck!
 
Old 04-30-2005, 07:41 PM   #15
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Quote:
Originally posted by tspeicher
running that command produces this:

lrwxrwxrwx 1 root root 3 Apr 30 02:19 /usr/bin/lp -> lpr

I don't know exactly what that means.
WHat is lpr try the same command for lpr
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP configuration with apache web server vikrambhimbar Linux - Software 4 12-17-2005 04:04 AM
Apache vhost issues (client denied by server configuration) bpk Linux - Software 8 02-16-2005 07:02 PM
configuration of httpd.conf to run apache server adityabhat2 Linux - Newbie 2 02-13-2005 12:10 PM
Apache Server Newbie Hollywood W Linux - Software 5 05-11-2003 01:12 AM
tomcat server configuration with apache on RHL 7.2, 6.2 sathu Linux - Software 0 02-05-2002 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration