CUPS web interface gives 403 Forbidden error upon connecting to 127.0.0.1:631
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CUPS web interface gives 403 Forbidden error upon connecting to 127.0.0.1:631
Hello,
I'm on arch linux, and I've just got this issue, I'm trying to add a new printer on my netbook and I can't get cups to work anymore, it was working a little bit ago (maybe a few weeks ago) but now when I try it, it doesn't work. I will post any conf files you need. Thanks in advance,
then i take it that the cups deamon is not starting
what is in the error message when you try to manually start it .
Is there anything in any of the logs after you try to manually start it
and what has changes since the time that it was working
then i take it that the cups deamon is not starting
what is in the error message when you try to manually start it .
Is there anything in any of the logs after you try to manually start it
and what has changes since the time that it was working
No errors upon starting. It starts fine. The error log shows an interesting line though:
Code:
E [24/Jul/2011:09:25:03 -0400] Request from "192.168.0.101" using invalid Host: field "localhost:631"
This repeats 4 times in the logs. Not sure why. However starting the daemon there are no errors and it completes. To confirm it starts, an attempt to start it again fails and shutting it down succeeds.
"localhost" is the address of your local network services,127.0.0.1: "localhost:631" is the web address through which CUPS is controlled. In my system, "localhost" is defined in /etc/hosts.
What happens if you type
ping localhost
in a terminal? You should get repeated lines of output: break in with ctrl+C. If no output, try
ping 127.0.0.1
If the second works and not the first, then you do not have the definition.
"localhost" is the address of your local network services,127.0.0.1: "localhost:631" is the web address through which CUPS is controlled. In my system, "localhost" is defined in /etc/hosts.
What happens if you type
ping localhost
in a terminal? You should get repeated lines of output: break in with ctrl+C. If no output, try
ping 127.0.0.1
If the second works and not the first, then you do not have the definition.
It's in /etc/hosts. Pinging localhost directs to 127.0.0.1.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.