want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?

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

    want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?

    I have tried to install mod_PHP5 on freebsd where I had installed apache 2.
    It throws as error indicating mod_php5 needs apache 1.3.

    I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the
    latest Apache?


  • Colin McKinnon

    #2
    Re: want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?

    NotGiven wrote:
    [color=blue]
    > I have tried to install mod_PHP5 on freebsd where I had installed apache
    > 2. It throws as error indicating mod_php5 needs apache 1.3.
    >
    > I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the
    > latest Apache?[/color]

    No.

    How did you install PHP? Presumably not from source. Try installing from
    source, or if you want a binary get one compiled for apache2.

    C.

    Comment

    • Chung Leong

      #3
      Re: want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?

      Make sure you're using the correct SAPI module. Apache 1.X and Apache
      2.X use different ones.

      Comment

      • Gerard Seibert

        #4
        Re: want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?


        "NotGiven" <noname@nonegiv en.invalid> wrote in message
        news:Bhjsf.2848 0$Qa1.14209@big news1.bellsouth .net...[color=blue]
        >I have tried to install mod_PHP5 on freebsd where I had
        >installed apache 2. It throws as error indicating mod_php5 needs
        >apache 1.3.
        >
        > I am a newbie, shoudl I just run Apache 1.3 rather than trying
        > to run the latest Apache?
        >[/color]
        What you want to do is update your ports. Then cd to
        /usr/ports/lang/php5

        Now just install the port: make install && make distclean

        There are certain attributes that should be added to the
        httpd.conf file after the installation. You might try using this
        installation method to get a better idea of what to do.

        make && make install > ~/php5-install.log && make distclean

        Now you can just read the log file created to get a better
        picture of what you have to do.

        By the way, I personally run PHP5 with Apache2 and have no
        problems.

        --
        Gerard Seibert
        gerard@seiberco m.net

        Comment

        • NotGiven

          #5
          Re: want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?

          "Gerard Seibert" <gerard-seibert@suscom. net> wrote in message
          news:NaCdnZJ5ft 2WPy_eRVn-oQ@suscom.com.. .[color=blue]
          >
          > "NotGiven" <noname@nonegiv en.invalid> wrote in message
          > news:Bhjsf.2848 0$Qa1.14209@big news1.bellsouth .net...[color=green]
          >>I have tried to install mod_PHP5 on freebsd where I had installed apache
          >>2. It throws as error indicating mod_php5 needs apache 1.3.
          >>
          >> I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the
          >> latest Apache?
          >>[/color]
          > What you want to do is update your ports. Then cd to /usr/ports/lang/php5
          >
          > Now just install the port: make install && make distclean
          >
          > There are certain attributes that should be added to the httpd.conf file
          > after the installation. You might try using this installation method to
          > get a better idea of what to do.
          >
          > make && make install > ~/php5-install.log && make distclean
          >
          > Now you can just read the log file created to get a better picture of what
          > you have to do.
          >
          > By the way, I personally run PHP5 with Apache2 and have no problems.
          >
          > --
          > Gerard Seibert
          > gerard@seiberco m.net[/color]

          Gerard - thanks. I've read alittle about a prefork MPM and others. SOme
          things say not to use MPM, on freebsd - like me - you should run prefork.

          How the heck do I make that happen? (Feeling like I'm in over my head)


          Comment

          • Gerard Seibert

            #6
            Re: want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?


            "NotGiven" <noname@nonegiv en.invalid> wrote in message
            news:CMAsf.918$ Nr6.515@bignews 5.bellsouth.net ...[color=blue]
            > "Gerard Seibert" <gerard-seibert@suscom. net> wrote in message
            > news:NaCdnZJ5ft 2WPy_eRVn-oQ@suscom.com.. .[color=green]
            >>
            >> "NotGiven" <noname@nonegiv en.invalid> wrote in message
            >> news:Bhjsf.2848 0$Qa1.14209@big news1.bellsouth .net...[color=darkred]
            >>>I have tried to install mod_PHP5 on freebsd where I had
            >>>installed apache 2. It throws as error indicating mod_php5
            >>>needs apache 1.3.
            >>>
            >>> I am a newbie, shoudl I just run Apache 1.3 rather than
            >>> trying to run the latest Apache?
            >>>[/color]
            >> What you want to do is update your ports. Then cd to
            >> /usr/ports/lang/php5
            >>
            >> Now just install the port: make install && make distclean
            >>
            >> There are certain attributes that should be added to the
            >> httpd.conf file after the installation. You might try using
            >> this installation method to get a better idea of what to do.
            >>
            >> make && make install > ~/php5-install.log && make distclean
            >>
            >> Now you can just read the log file created to get a better
            >> picture of what you have to do.
            >>
            >> By the way, I personally run PHP5 with Apache2 and have no
            >> problems.
            >>
            >> --
            >> Gerard Seibert
            >> gerard@seiberco m.net[/color]
            >
            > Gerard - thanks. I've read alittle about a prefork MPM and
            > others. SOme things say not to use MPM, on freebsd - like me -
            > you should run prefork.
            >
            > How the heck do I make that happen? (Feeling like I'm in over
            > my head)[/color]
            I'll be quite honest and admit I know nothing about a 'prefork
            MPM'.

            I gave you the basic information you need to get PHP5 for Apache2
            installed. If you need further information I would suggest you
            contact the FreeBSD mailing list directly. I can supply you with
            that information if you require it. I am a member there also.

            --
            Ciao

            Comment

            • NotGiven

              #7
              Re: want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?

              ok - thanks


              Comment

              Working...