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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bughunter

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

    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 .




  • Tim Roberts

    #2
    Re: Reconfiguring from php as a CGI executable to an Apache module?

    "Bughunter" <nobody@home.ne t> wrote:[color=blue]
    >
    >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.[/color]

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

    Comment

    • Bughunter

      #3
      Re: Reconfiguring from php as a CGI executable to an Apache module?

      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" <timr@probo.com > wrote in message
      news:s3e3019so6 ttcfuhhkfndcqnc n2s8jkhq3@4ax.c om...[color=blue]
      > "Bughunter" <nobody@home.ne t> wrote:[color=green]
      >>
      >>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.[/color]
      >
      > That shouldn't make a difference. What isn't working?
      > --
      > - Tim Roberts, timr@probo.com
      > Providenza & Boekelheide, Inc.[/color]


      Comment

      Working...