Welcome, Guest
  • Author Topic: PHP 4.2.2 + Apache 2.0.39 (Windows)  (Read 111186 times)

    Jose

    • Server what's that
    • *
    • Posts: 16
      • View Profile
      • Email
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #75 on: 06/30/03, 10:44 »
    I have a question, I just downloaded  apache_2.0.46-win32-x86-no_src.exe to my comp. is this the latest?? because you said in your notes at the top that I need ot change the conf\httpd.conf, or open it with notepad to do some changes and I can not find that file, can you help me

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #76 on: 07/01/03, 02:58 »
    did u extract (installed, clicked the .exe) ?

    after you install, you should find subfolder called "conf" and there's httpd.conf file what u can open with Notepad..


    Jose

    • Server what's that
    • *
    • Posts: 16
      • View Profile
      • Email
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #77 on: 07/01/03, 11:15 »
    yes apache is working fine, no problems I was just following the instructions and I could not find that particular folder, now I have a site that i was building with macromedia and I viewed it with apache and was fine, I have not used any php  with it i don't know how to do that, should i just copy the code and  paste it onto my site ??

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #78 on: 07/02/03, 04:56 »
    How to install PHP Click Here

    what code? PHP? It won't work if u don't have php installed..pff.. Please start new thread in right section if u have something else to ask. This is just for PHP & Apache installation - thread.

    :)

    Jose

    • Server what's that
    • *
    • Posts: 16
      • View Profile
      • Email
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #79 on: 07/02/03, 06:42 »
    Jeff, I have downloaded php 4.3.2 and unziped it but I don't see not set up exe. should it have one?? how do I set up what I just downloaded??

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #80 on: 07/02/03, 06:45 »
    Hi Jose,

    im not jeff, im vesa.

    Did u take installer or zip package ? See http://www.php.net/downloads.php

    I think installer would be easier for you mate :)

    hola back,

    TinnyFusion

    • Server what's that
    • *
    • Posts: 3
      • View Profile
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #81 on: 07/05/03, 11:23 »
    Hi there, i have had Apache2 version 2.0.46, php version 4.3.2, and MySQL version 4.0.13 all running spot on but the time came when i needed to remaster my computer.

    I have re-installed Apache2 without any real issues but when it come to re-installing PHP again all i get is the following error: LoadModule takes two arguments, a module name and the name of a shared object file to load it from
    This is either from the command prompt or using the 'Test Configuration' link from the start menu.

    I have followed all instructions from this forum and got to the stage where you add the following two lines of code to the httpd.conf:

    LoadModule php4_module C:/My Web Server/PHP/sapi/php4apache2.dll

    AddType application/x-httpd-php .php .php3 .phtml .php4

    All the DLL's are accounted for and installed in the correct directorys and i have added extension_dir = c:\My Web Server\PHP\extensions & session.save_path = c:/temp  as suggested.

    I have checked that the all paths are correct.  I have even tried installing to C:/PHP as your fine tutorial advised but i still get the same error.

    If i remove the above two lines of code then the Apache2 server works fine so it has to be some thing to do with them.

    Please help as i think i have hit a wall here.

    Kind regards, TinntFusion
    "I disagree, Trinity. I think the Matrix can be more real than this world."
    - Cypher - The Matrix -

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #82 on: 07/29/03, 11:44 »
    LoadModule php4_module c:/PHP/experimental/apache2filter.dll       (Make sure to use forward slashes for this path instead of Back Slashes).

    Please note that you must use the apache2filter.dll and not the php4apache.dll.  With earlier versions of PHP (before 4.2.0 and Apache 2.0 you do however use the php4apache.dll).  This is an important change to keep in mind when using earlier versions of Apache with PHP.


    Simon

    • Server what's that
    • *
    • Posts: 20
      • View Profile
      • Email
    Flash Files
    « Reply #83 on: 07/29/03, 18:47 »
    Is anyone having any trouble with the flash and php files that come with this tutorial? It seems to add a record to the table in the db, but not any details of what has been entered.

    Anyone

    Simon

    Elena

    • Server what's that
    • *
    • Posts: 50
      • View Profile
      • Email
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #84 on: 08/23/03, 05:18 »
    Hi, I had this problem in windows xp with the Loadmodule in apache, so I did exactly what Clueless said in page 4 of this post (php like cgi), then apache started ok (without any errors), but when I go to localhost and ask for the file phpinfo.php it says that the page cannot be found and the page is there, If I change to phpinfo.txt it finds the page (but of course nothing happens)....????? does anyone know why?, is it something related with the version of xp I have?, is it something related with php?..I'm using Apache 1.3.28-win32-x86  

    thnks in advance

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #85 on: 08/26/03, 05:02 »
    your apache version should work at XP, I had apache 1.3.x and it worked (Sorry for "x", i don't remember what was the number, however) ..

    So you made php work as CGI.. Well , me never try that , so hard to say  :-\

    Elena

    • Server what's that
    • *
    • Posts: 50
      • View Profile
      • Email
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #86 on: 09/01/03, 08:47 »
    sorted...was just a stupid path problem refering to win32..:)

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #87 on: 09/01/03, 17:51 »
    Hi,

    just looking at this post.... if the line in question reads
    LoadModule php4_module C:/My Web Server/PHP/sapi/php4apache2.dll
    without any quotes, wouldn't that be 4 arguments to loadmodule?
    php4_module
    C:/My
    Web
    Server/PHP/sapi/php4apache2.dll

    Musicman

    Tuan

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Email
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #88 on: 09/13/03, 04:55 »
    First off, thank you for an easy step by step guide to getting Apache, PHP, mySQL up.

    Everything is up and running fine, but my goal is to be able to host my own site.  During your tutorial it says: " By locating your IP address that your computer is currently using for it's connection to the internet, you'll be able to give that address to others so they can view your website running on your own personal computer."  (I am on DSL, so I have a dynamic IP address)  Sounds easy enough, however, I've been at it forever playing around with the httpd.conf.  I've tried to play with virtual hosts.  I am not sure where to add this IP address to get others to be able to see my page.  Can anyone offer any solutions or point to any links that may guide me in the right direction.

    Thank you kindly in advance,

    2 1

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Re:PHP 4.2.2 + Apache 2.0.39 (Windows)
    « Reply #89 on: 09/13/03, 06:25 »
    Hi,

    this works for me:
    a) I have subscribed to dyndns and installed ddclient, so I always have the same somename.dyndns.org
    b) I am using virtual hosts, one (with little content) uses the dyndns name as server name, the other one uses an internal name

    Apache complains about this setting (because virtualhost *:80 is repeated) but everything works as expected

    Musicman