Win98 + Apache 1.3.up + PHP 4.3.up something wrong

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

    Win98 + Apache 1.3.up + PHP 4.3.up something wrong

    Hi

    I been first times setup. So Who have experience the Win98 + Apache + php
    (not run PWS or IIS)

    I begin download and installed the Apache. I test the run is working on
    browser (http://localhost) show the apache page.

    But Apache Console Running under the DOS Window say :-
    =============== =============== =======
    [Thu Nov 20 15:13:49 2003] [warn] (2)No such file or
    directory: exec() may not be safe
    Apache/1.3.29 (Win32) running...
    =============== =============== =======

    I expect that it.

    So, I shall the php installer from download. I try changed the httpd.conf
    under the Apache directory. Restart Apaches Console.

    I testing the (http://localhost/test.php), show error page say "HTTP -
    Error 400 Bad Request" also "HTTP - Error 404 Not found"

    I have tried times.... But unknown....


    Apaches Directory - c:\apache\apach es\*.*
    PHP Directory - c:\apache\apach es\phpwin32\*.*


    httd.conf -: (was add the line)
    ScriptAlias /php/ "C:/Apache/Apache/phpwin32/"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .phtml
    Action application/x-httpd-php "/php.exe"


    I didn't change php.ini yet

    I copy and paste the "php4ts.dll " under to C:\window\syste m from PHP


    What I have done that above ?






  • Eric Kincl

    #2
    Re: Win98 + Apache 1.3.up + PHP 4.3.up something wrong

    DrWizard wrote:
    [color=blue]
    > Hi
    >
    > I been first times setup. So Who have experience the Win98 + Apache + php
    > (not run PWS or IIS)
    >
    > I begin download and installed the Apache. I test the run is working on
    > browser (http://localhost) show the apache page.
    >
    > But Apache Console Running under the DOS Window say :-
    > =============== =============== =======
    > [Thu Nov 20 15:13:49 2003] [warn] (2)No such file or
    > directory: exec() may not be safe
    > Apache/1.3.29 (Win32) running...
    > =============== =============== =======
    >
    > I expect that it.
    >
    > So, I shall the php installer from download. I try changed the
    > httpd.conf
    > under the Apache directory. Restart Apaches Console.
    >
    > I testing the (http://localhost/test.php), show error page say "HTTP -
    > Error 400 Bad Request" also "HTTP - Error 404 Not found"
    >
    > I have tried times.... But unknown....
    >
    >
    > Apaches Directory - c:\apache\apach es\*.*
    > PHP Directory - c:\apache\apach es\phpwin32\*.*
    >
    >
    > httd.conf -: (was add the line)
    > ScriptAlias /php/ "C:/Apache/Apache/phpwin32/"
    > AddType application/x-httpd-php .php
    > AddType application/x-httpd-php .phtml
    > Action application/x-httpd-php "/php.exe"
    >
    >
    > I didn't change php.ini yet
    >
    > I copy and paste the "php4ts.dll " under to C:\window\syste m from PHP
    >
    >
    > What I have done that above ?[/color]

    Basic question:
    Did you create a "test.php"?

    Comment

    • DrWizard

      #3
      Re: Win98 + Apache 1.3.up + PHP 4.3.up something wrong

      > Basic question:[color=blue]
      > Did you create a "test.php"?[/color]

      Oh Well, I download from PHP Website some test. I have tested is not
      working


      Comment

      • Anonymous

        #4
        Re: Win98 + Apache 1.3.up + PHP 4.3.up something wrong

        DrWizard wrote:[color=blue][color=green]
        >>Basic question:
        >>Did you create a "test.php"?[/color]
        >
        >
        > Oh Well, I download from PHP Website some test. I have tested is not
        > working
        >
        >[/color]

        now for some answers from an ol' pro at getting this stuff set up. first
        of all, you're using the php cgi executable. that's generally a bad
        idea, use the installation help file and SET IT UP AS A MODULE. that
        will get your test.php working. second, that exec() thing, i'm having
        the same problem on all the '98 machines i install apache on, it works
        fine on the xp machine i'm on now. i'd like an answer too, cause it bugs
        the crap outta me every time i start up apache!

        Comment

        • Anonymous

          #5
          Re: Win98 + Apache 1.3.up + PHP 4.3.up something wrong

          Anonymous wrote:
          [color=blue]
          > DrWizard wrote:
          >[color=green][color=darkred]
          >>> Basic question:
          >>> Did you create a "test.php"?[/color]
          >>
          >>
          >>
          >> Oh Well, I download from PHP Website some test. I have tested is not
          >> working
          >>
          >>[/color]
          >
          > now for some answers from an ol' pro at getting this stuff set up. first
          > of all, you're using the php cgi executable. that's generally a bad
          > idea, use the installation help file and SET IT UP AS A MODULE. that
          > will get your test.php working. second, that exec() thing, i'm having
          > the same problem on all the '98 machines i install apache on, it works
          > fine on the xp machine i'm on now. i'd like an answer too, cause it bugs
          > the crap outta me every time i start up apache!
          >[/color]

          and also, if you delete all that stuff you added for php in httpd.conf,
          here's the config you should have where C:\ or C:/PHP is where php is
          installed:

          LoadModule php4_module C:/PHP/sapi/php4apache.dll
          AddModule mod_php4.c
          AddType application/x-httpd-php .php
          AddType application/x-httpd-php-source .phps

          Comment

          • Skeets

            #6
            Re: Win98 + Apache 1.3.up + PHP 4.3.up something wrong

            also, view your test.php file in a text editor and make sure the code
            is as expected. i had the same problem and found the actual
            downloaded code was different than advertised. when i put in the
            expected code, it worked fine.

            Anonymous <anonymous@isp. com> wrote in message news:<y0mAb.314 423$9E1.1567955 @attbi_s52>...[color=blue]
            > Anonymous wrote:
            >[color=green]
            > > DrWizard wrote:
            > >[color=darkred]
            > >>> Basic question:
            > >>> Did you create a "test.php"?
            > >>
            > >>
            > >>
            > >> Oh Well, I download from PHP Website some test. I have tested is not
            > >> working
            > >>
            > >>[/color]
            > >
            > > now for some answers from an ol' pro at getting this stuff set up. first
            > > of all, you're using the php cgi executable. that's generally a bad
            > > idea, use the installation help file and SET IT UP AS A MODULE. that
            > > will get your test.php working. second, that exec() thing, i'm having
            > > the same problem on all the '98 machines i install apache on, it works
            > > fine on the xp machine i'm on now. i'd like an answer too, cause it bugs
            > > the crap outta me every time i start up apache!
            > >[/color]
            >
            > and also, if you delete all that stuff you added for php in httpd.conf,
            > here's the config you should have where C:\ or C:/PHP is where php is
            > installed:
            >
            > LoadModule php4_module C:/PHP/sapi/php4apache.dll
            > AddModule mod_php4.c
            > AddType application/x-httpd-php .php
            > AddType application/x-httpd-php-source .phps[/color]

            Comment

            Working...