[SOLVED] CUPS web interface on localhost:631 not connecting
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
CUPS web interface on localhost:631 not connecting
I haven't used the CUPS web interface in awhile, but I know it worked before and now it loads forever in the browser and finally times out.
I'm wondering if CUPS uses apache? Because my apache server I noticed has also stopped working, when I try to visit http://localhost. It also times out.
'ps -e' shows that cupsd and httpd are both running. I've tried restarting both of them, to no avail.
this is the only line I have in my /etc/hosts file:
127.0.0.1 localhost
Also I forgot to mention, pinging localhost shows that it is redirecting to 127.0.0.1 correctly, but the pings timeout and I have 100% packet loss.
Last edited by zuzoa; 06-10-2009 at 11:58 AM.
Reason: more information
I believe if you type iptables -L will show firewall rules. I'm no firewall expert (I typically use a gui like Firestarter to manage mine) so the results may look a bit cryptic. If you haven't set anything up, it should be essentially blank. If there's a problem specific to localhost, there should be something like DENY 127.0.0.1 blah blah.
CUPS has traditionally provided a dynamic web interface through dedicated CGI programs that are executed when users open special directories on the CUPS server. Each CGI performs administration, class, help, job, and printer functions as directed by the user, but the actual programs that are run and functions that are available are limited to those that were originally designed into the scheduler.
you do have to have the documentroot configured properly in cupsd.conf, and the cgi files for the web interface need to have execute permissions. I would think that is all handled automatically when you install it though.
Description
The DocumentRoot directive specifies the location of web content for the HTTP server in CUPS. If an absolute path is not specified then it is assumed to be relative to the ServerRoot directory. The default directory is /usr/share/cups/doc-root.
CGI Programs
CUPS uses five CGI programs to manage the dynamic web interfaces:
Each CGI program accepts standard form variables such as OP for the operation to perform, PRINTER_NAME for the printer or class name to operate on, QUERY for any search words, FIRST for the first class, job, or printer to display, and ORDER to control the order that classes, jobs, or printers are displayed.
Okay, I realised that my DocumentRoot should actually be /usr/share/doc/cups and not /usr/lib/cups and changed it accordingly, but I still have no success.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.