By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,588 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,588 IT Pros & Developers. It's quick & easy.

Reconfiguring from php as a CGI executable to an Apache module?

P: n/a
I have written some php scripts that use basic HTTP authentication as
described in the php manual. It works fine on my development server which
runs php as an apache module. But, the production server (Linux), which is
operated by a hosting service, has their php setup to run as a CGI
executable.

So, I'm trying to find out how hard it is to reconfigure to run as an apache
module as opposed to a CGI executable on a Linux server. If it's just a
matter of editing a couple configuration files, than maybe I can just do
that myself. If it requires a rebuild of php, then I may need to ask the
hosting service support to do it (if they will).

Is it just a matter of adding a few modules to httpd.conf, or is there more
to it? The php documentation seems to be more focused on describing complete
installation procedures, and not reconfiguration.


Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Bughunter" <no****@home.net> wrote:

I have written some php scripts that use basic HTTP authentication as
described in the php manual. It works fine on my development server which
runs php as an apache module. But, the production server (Linux), which is
operated by a hosting service, has their php setup to run as a CGI
executable.


That shouldn't make a difference. What isn't working?
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 17 '05 #2

P: n/a
Basic http authentication isn't working. It says in the documentation that
it is not supposed to work when php is running a as a CGI executable. So,
yes it does make a difference.

"Tim Roberts" <ti**@probo.com> wrote in message
news:s3********************************@4ax.com...
"Bughunter" <no****@home.net> wrote:

I have written some php scripts that use basic HTTP authentication as
described in the php manual. It works fine on my development server which
runs php as an apache module. But, the production server (Linux), which is
operated by a hosting service, has their php setup to run as a CGI
executable.


That shouldn't make a difference. What isn't working?
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.