getting 403/Forbidden on new install at http://localhost:10401/tpp/cgi-bin/tpp_gui.pl

43 views
Skip to first unread message

Malcolm Cook

unread,
Jun 8, 2022, 5:25:02 PM6/8/22
to spctools-discuss
I just finished building and installing TPP under centos7 


I am running apache as user 'apache'

It returns 403/Forbidden

I think I must have some permissions/ownership wrong somewhere

The error log shows:

 Options ExecCGI is off in this directory: /usr/local/tpp/cgi-bin/tpp_gui.pl

This should not be since the installed httpd-2.4-tpp-1.conf indeed has this stanza:

Alias //tpp/cgi-bin "/usr/local/tpp/cgi-bin"
<Directory "/usr/local/tpp/cgi-bin">
    Options MultiViews ExecCGI
    AddHandler cgi-script .pl .cgi 
...

Any ideas?

Here are some more configuration diagnostics that might help...

the CGI program is executable by anyone and owned by user tpp:

ls -la /usr/local/tpp/cgi-bin/tpp_gui.pl
-r-xr-xr-x 1 tpp tpp 484152 Jun  8 14:19 /usr/local/tpp/cgi-bin/tpp_gui.pl

Below I review the ownership of directories within /usr/local/tpp

 tree -u -d /usr/local/tpp
/usr/local/tpp
|-- [tpp     ]  bin
|-- [tpp     ]  cgi-bin
|-- [tpp     ]  conf
|-- [tpp     ]  html
|   |-- [tpp     ]  css
|   |-- [tpp     ]  images
|   |   |-- [tpp     ]  help
|   |   `-- [tpp     ]  lorikeet
|   |-- [tpp     ]  js
|   `-- [tpp     ]  ref
|-- [tpp     ]  lib
|   |-- [tpp     ]  Mayu
|   |   `-- [tpp     ]  R
|   `-- [tpp     ]  perl
|       `-- [tpp     ]  TPP
|-- [tpp     ]  lic
|   |-- [tpp     ]  ProteoWizard
|   |-- [tpp     ]  boost
|   |-- [tpp     ]  bzip2
|   |-- [tpp     ]  d3
|   |-- [tpp     ]  expat
|   |-- [tpp     ]  fann
|   |-- [tpp     ]  gsl
|   |-- [tpp     ]  gzstream
|   |-- [tpp     ]  libarchive
|   `-- [tpp     ]  libgd
|-- [apache  ]  log
|-- [tpp     ]  man
|   |-- [tpp     ]  man1
|   `-- [tpp     ]  man3
|-- [tpp     ]  schema
`-- [apache  ]  users
    `-- [apache  ]  guest

David Shteynberg

unread,
Jun 8, 2022, 6:04:27 PM6/8/22
to spctools-discuss
It sounds like you are making progress get this installed and running. Can you check the apache error logs to see if they hold the next clue?

Thanks,
David

--
You received this message because you are subscribed to the Google Groups "spctools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spctools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spctools-discuss/55b3c042-60fb-4317-a05d-acae6a52a187n%40googlegroups.com.

Malcolm Cook

unread,
Jun 8, 2022, 6:14:17 PM6/8/22
to spctools-discuss
hi again
yes, I reported the only entry after fresh restart of apache and accessing that url I get the following in the error log:

[Wed Jun 08 17:08:31.331141 2022] [mpm_prefork:notice] [pid 4451] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Wed Jun 08 17:08:31.331189 2022] [core:notice] [pid 4451] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Jun 08 17:08:39.167358 2022] [cgi:error] [pid 4453] [client 127.0.0.1:44684] Options ExecCGI is off in this directory: /usr/local/tpp/cgi-bin/tpp_gui.pl

corresponding to this in the access log:

127.0.0.1 - - [08/Jun/2022:17:08:39 -0500] "GET /tpp/cgi-bin/tpp_gui.pl HTTP/1.1" 403 224 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"

Malcolm Cook

unread,
Jun 8, 2022, 6:17:49 PM6/8/22
to spctools-discuss
an oddity re: the error message is it says " ExecCGI is off in this directory: /usr/local/tpp/cgi-bin/tpp_gui.pl"  but it names a file, not a directory. 

...maybe nothing.

Malcolm Cook

unread,
Jun 8, 2022, 6:37:34 PM6/8/22
to spctools-discuss
Things I've tried and failed (with an `apachectl restart` after each)
  1.  sudo chown -R apache.apache /usr/local/tpp/cgi-bin;
  2.  sudo chown -R apache.apache /usr/local/tpp
  3.  sudo chmod 755 -R apache.apache /usr/local/tpp
  4. disabled other /etc/httpd/conf.d/
FIXED!  There was interference from another app being served (incorrectly) on this server.

Mea culpa,

~ Malcolm

David Shteynberg

unread,
Jun 8, 2022, 6:59:13 PM6/8/22
to spctools-discuss
Great! Thank you for keep and sharing your useful notes in this process.  Let us know if you encounter other issues or have any questions.

Cheers,
David

Reply all
Reply to author
Forward
0 new messages