Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

cupsctl WebInterface=yes

I am unable to access the CUPS Web Interface so that I can change my printer settings, and it's pretty frustrating!


I am using OS X 10.9.4

If I go to http://127.0.0.1:631 or http://localhost:631I get the following error:

The web interface is currently disabled. Run "cupsctl WebInterface=yes" to enable it.

I have researched this on the web, and have found, and followed, various articles containing the following instructions to resolve it:

  • Enable the root admin account
  • Log in using the root account
  • Open Terminal while logged in as the root account and enter the following:
    • cupsctl WebInterface=yes
    • sudo cupsctl WebInterface=yes
  • I have receive the following message in Terminal when running these commands:

    cupsctl: Internal Server Error

  • I have restarted my Mac and ran them again and received the same error messages.

As I mentioned, I am still receiving unable to access the CUPS Web Interface.

Please help!

References:

Enabling and using the "root" user in Mac OS X

Can't Change CUPS Settings on Mac:

http://superuser.com/questions/183553/cant-change-cups-settings-on-mac-os-x

Enabling the CUPS Web Interface on OS X 10.8

http://definitebounds.blogspot.com/2013/03/enabling-cups-interface-on-osx-108.ht ml


iMac, OS X 10.9.4

Posted on Aug 8, 2014 9:08 AM

Reply
Question marked as Best reply

Posted on Aug 8, 2014 1:24 PM

Hi Alberto,


Both of those commands executed without error. However, when I try to run the following commands, they fail with the same error:

  • cupsctl webinterface=yes
  • cupsctl --remote-any


Error: "cupsctl: Internal Server Error"


How do I look at the log files?


Thanks.

28 replies

Aug 8, 2014 2:57 PM in response to CSRocks

This procedure is a diagnostic test. It makes no changes to your data.

Please triple-click anywhere in the line below on this page to select it:

ls -@Oen /etc/cups/cupsd.conf | pbcopy

Copy the selected text to the Clipboard by pressing the key combination command-C.

Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.

Wait for a new line ending in a dollar sign ($) to appear below what you entered.

The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.

The Terminal window doesn't show the output. Please don't copy anything from there.

Aug 8, 2014 3:04 PM in response to Alberto Ravasio

Alberto, where do I find the users and permissions info in the access log? This is what mine has, and doesn't look like user and permission info to me:


localhost - garylima [08/Aug/2014:12:59:38 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4835 - -

localhost - - [08/Aug/2014:13:20:41 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -

localhost - garylima [08/Aug/2014:13:20:41 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4786 - -

localhost - - [08/Aug/2014:13:21:18 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -

localhost - garylima [08/Aug/2014:13:21:18 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4796 - -

localhost - - [08/Aug/2014:13:21:47 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -

localhost - garylima [08/Aug/2014:13:21:47 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4796 - -

localhost - - [08/Aug/2014:14:25:26 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -

localhost - garylima [08/Aug/2014:14:25:26 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4786 - -

localhost - - [08/Aug/2014:14:30:05 -0700] "POST / HTTP/1.1" 200 1013845 CUPS-Get-PPDs -

localhost - - [08/Aug/2014:14:30:05 -0700] "POST / HTTP/1.1" 200 1013845 CUPS-Get-PPDs -

localhost - - [08/Aug/2014:14:30:43 -0700] "POST /admin/ HTTP/1.1" 401 10975158 CUPS-Add-Modify-Printer successful-ok

localhost - root [08/Aug/2014:14:30:43 -0700] "POST /admin/ HTTP/1.1" 200 10975158 CUPS-Add-Modify-Printer successful-ok

localhost - - [08/Aug/2014:14:36:29 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -

localhost - root [08/Aug/2014:14:36:29 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4786 - -

localhost - - [08/Aug/2014:14:38:11 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -

localhost - root [08/Aug/2014:14:38:11 -0700] "PUT /admin/conf/cupsd.conf HTTP/1.1" 500 4796 - -

Aug 8, 2014 3:10 PM in response to CSRocks

In Terminal issue


ls -la /etc/cups/


and check if your output is equal to mine apart from date and time


total 48

drwxr-xr-x 12 root _lp 408 4 Lug 22:15 .

drwxr-xr-x 95 root wheel 3230 7 Ago 18:36 ..

dr-x--x--x 2 _lp admin 68 8 Ago 22:39 certs

-rw-r--r-- 1 root _lp 3297 24 Mag 13:17 cups-files.conf

-rw-r--r-- 1 root _lp 4783 4 Lug 22:14 cupsd.conf

-rw-r--r-- 1 root _lp 4790 4 Lug 22:14 cupsd.conf.O

-rw-r--r-- 1 root _lp 6512 24 Mag 13:17 cupsd.conf.default

drwxr-xr-x 2 root _lp 68 5 Apr 09:53 interfaces

drwxr-xr-x 3 root _lp 102 26 Mag 10:38 ppd

-rw------- 1 root _lp 463 4 Lug 22:15 printers.conf

-rw------- 1 root _lp 463 4 Lug 22:14 printers.conf.O

-rw-r--r-- 1 root _lp 270 24 Mag 13:17 snmp.conf

Aug 8, 2014 3:29 PM in response to Alberto Ravasio

Ok, sorry Alberto! I'm a pretty much a Windows guy, and don't know much about Macs, although I have one. 🙂


Here you go:

total 80

drwxr-xr-x 16 root _lp 544 Aug 8 08:13 .

drwxr-xr-x 96 root wheel 3264 Aug 8 11:52 ..

-rw-rw-r-- 1 root _lp 143 Feb 19 17:43 Coupon_v2.convs

-rw-rw-r-- 1 root _lp 123 Feb 19 17:43 Coupon_v2.types

dr-x--x--x 3 _lp admin 102 Aug 8 15:21 certs

-rw-r--r-- 1 root _lp 6632 Dec 19 2012 cupsd.conf

-rw-r--r-- 1 root _lp 4796 Aug 8 14:38 cupsd.conf.N

-rw-r--r-- 1 root _lp 6632 Dec 19 2012 cupsd.conf.default

-rw-r--r-- 1 root _lp 6632 Aug 7 16:51 cupsd.conf.new

drwxr-xr-x 2 root _lp 68 Jun 20 2012 interfaces

-rw-r--r-- 1 root _lp 27 Aug 8 14:30 lpoptions

drwxr-xr-x 5 root _lp 170 Aug 8 12:20 ppd

-rw------- 1 root _lp 1208 Mar 7 12:38 printers.conf

-rw------- 1 root _lp 1178 Aug 8 15:22 printers.conf.N

-rw------- 1 root _lp 1263 Mar 7 12:35 printers.conf.O

-rw-r--r-- 1 root _lp 172 Dec 19 2012 snmp.conf


Thanks!

Aug 8, 2014 3:42 PM in response to CSRocks

Try this:


In the Finder press 'cmd-shift-G' and enter in the dialog window '/private' without the quotes.

Navigate to the folder 'cups' and open (double-click) the 'cupsd.conf' file if there is no program that opens the file, try to open it with 'TextEdit'. On my Mac it opens with 'TextMate' but 'BBEdit' will do also.

Search (cmd-F) for 'WebInterface' if you don't find it, add a line in the first block like this:

WebInterface yes


On my Mac it Looks Like this:

LogLevel warn

PageLogFormat

Listen localhost:631

Listen /private/var/run/cupsd

Browsing On

BrowseLocalProtocols dnssd

DefaultAuthType Basic

WebInterface yes

<Location />

Order allow,deny

</Location>

<Location /admin>


If it is set to no (WebInterface no), just change the 'no' to a 'yes'.


To save the changes you need to enter your password.


Good luck

and enjoy

Aug 5, 2015 4:16 AM in response to apple_power

Hi,


I tried it too, but couldn't get it to work.


A fellow mac user can print to this printer, but I can't. We have the same driver and I can see the printer : features, supply levels etc

it's just the actual printing that doesn't work : it says "Printing - Connected to printer" and that's is, no output.


My error message in the logs is always:

E [05/Aug/2015:12:55:42 +0200] Unknown directive BrowseOrder on line 9 of /private/etc/cups/cupsd.conf.

E [05/Aug/2015:12:55:42 +0200] Unknown directive BrowseAllow on line 10 of /private/etc/cups/cupsd.conf.

E [05/Aug/2015:12:55:42 +0200] Missing value for BrowseRemoteProtocols on line 121 of /private/etc/cups/cupsd.conf.


the lines it's referring to in the config file are :


LogLevel warn

SystemGroup admin

SystemGroupAuthKey system.print.admin

# Only listen for connections from the local machine.

Listen localhost:631

Listen /private/var/run/cupsd

# Disable printer sharing.

Browsing on

BrowseOrder allow,deny

BrowseAllow all

DefaultAuthType Basic

WebInterface Yes

<Location />


+ last line is:

BrowseRemoteProtocols


If someone can help with this?


Kind regards,

Peter

cupsctl WebInterface=yes

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.