ServerWatch Tutorial: Getting Apache , PHP, MySQL, and phpMyAdmin to Work Together
Page 1 of 2 12 LastLast
Results 1 to 15 of 27

Thread: ServerWatch Tutorial: Getting Apache , PHP, MySQL, and phpMyAdmin to Work Together

  1. #1
    Join Date
    Jun 2002
    Posts
    90

    ServerWatch Tutorial: Getting Apache , PHP, MySQL, and phpMyAdmin to Work Together

    Real-World Windows 2000 Configuration: Getting Apache, PHP, MySQL, and phpMyAdmin to Work Together

    This two-part tutorial covers nearly every detail of one writer's quest to install and configure a Web server, server-side scripting language, database, and data administration application on Windows 2000. Part 1 focuses on how to get Apache 1.3.26 with Mod_SSL 2.8.10 and PHP 4.2.2 up and running. Part 2 examines ways to install and configure MySQL and phpMyAdmin on the operating system.

  2. #2
    Join Date
    Aug 2002
    Posts
    9

    New Link for Apache + Mod_SSL

    The link for obtaining Apache 1.3 plus Mod_SSL has changed. The new link is:

    http://www.modssl.org/contrib/ftp/contrib/

    Currently, the latest file for Windows is the same one mentioned in the article:

    Apache_1.3.26-Mod_SSL_2.8.10-OpenSSL_0.9.6d-Win32.zip

    When you go to the new page, the link to this file may appear in your browser as:

    Apache_1.3.26-Mod_SS..> 24-Jun-2002 18:54 2.1M

    - Scott Beatty

  3. #3
    Join Date
    Jun 2002
    Posts
    90

    Changes Made to Real-World Windows 2000 Configuration Article

    Due to some changes in how the Mod_SSL site handles its downloads, we have made modifications to the tutorial on Page 2 of Part 1 and in the sidebar titled Creating Your SSL Test Certificate.

    In a nutshell: the link has changed, the required files are spread over two downloads, and a little bit of directory
    building is now required.

  4. #4
    Join Date
    Sep 2002
    Posts
    1

    apache\openssl\bin not in zip file

    Hello,
    I have downloaded the appropriate file from modssl.org but when I unzip it I do not have a apache\openssl folder and no ssleay32.dll or libeay32.dll anywhere within the file. Can you clarify/help? Did I miss something in the instructions? The file I downloaded was apache_1.3.26-mod_ssl_2.8.10-openssl_0.9.6d-win32.zip.

    thanks

  5. #5
    Join Date
    Aug 2002
    Posts
    9

    Re: apache\openssl\bin not in zip file

    Please see the post that precedes yours (from Amy Newman, on 08-15-2002). It refers you to p. 2 of part 1 of the article:

    http://www.serverwatch.com/tutorials...0825_1437211_2

    That page was updated a few weeks ago. You'll find your answer in the third and fourth paragraphs.

  6. #6
    Join Date
    Mar 2003
    Posts
    2

    Site not working

    Even in your updated article, the link for the modssl.org site is no longer valid. Without this link you cannot download Apache_1.3.26-Mod_SSL_2.8.10-OpenSSL_0.9.6d-Win32.zip.

    http://www.modssl.org/contrib/ftp/contrib/ points to a folder that no longer exists.

    Where else can you download the needed file?

  7. #7
    Join Date
    Jan 2003
    Posts
    50
    Try this one (best ... tutorial ... evar!) ...

    http://www.wowwebdesigns.com/power_g...trio_intro.php

  8. #8
    Join Date
    Mar 2003
    Posts
    2

    Thanks

    Great - I cannot wait to try it out - but are there any resources to getting Apache to run SSL on a Win32 box? I would prefer 2.0.x but anything might help.....

    Thanks in advance.

  9. #9
    Join Date
    Aug 2002
    Posts
    9

    Where to get latest Apache with SSL

    The Windows binaries for Apache with mod_ssl, and openssl, aren't available any longer from the mod_ssl web site. I've been getting them from:

    http://hunter.campbus.com/

    If someone knows of other sites where they are available on a consistent basis I'd be interested in hearing about them. TIA.

    - Scott

  10. #10
    Join Date
    Jan 2003
    Posts
    50

    Re: Thanks

    Originally posted by pmears
    Great - I cannot wait to try it out - but are there any resources to getting Apache to run SSL on a Win32 box? I would prefer 2.0.x but anything might help.....

    Thanks in advance.
    From the tutorial I linked above, this is 2.0.44 ...

    http://www.wowwebdesigns.com/tools/id_28/

  11. #11
    Join Date
    Apr 2003
    Location
    Berkeley
    Posts
    3

    php4apache.dll API error

    Hey, this an excellent article. I got PHP/APACHE/SSL/MYSQL to work earlier, however I had to piece info together from several articles. This is the first how to that has all the correct information in one place. One problem that this article didn't address, is that apache will work with this configuration, however you do get an error message when you start apache: ."php4apache.dll is compiled as an API, please recompile as EAPI or errors may occur." That's basically what the error message says. I've searched around, and have not been able to find any good tutorials on how to recompile, or compile php under windows from the source code. I have Microsofts visual studio C++. I've downloaded the php source code and tried compling it several times. Everytime the compile fails because of errors. Any information, or know tutorials, on how to compile php or php4apache.dll under windows would be greatly appreciated.

  12. #12
    Join Date
    Aug 2002
    Posts
    9
    The message that I've always seen when starting up PHP as an Apache module on Windows 2000 (Win32) says:

    [warn] Loaded DSO C:/php/sapi/php4apache.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)

    I haven't experienced any crashes, though I sometimes see a message in a pop-up window that Apache had an error, but it keeps on running. I usually only see them during the development of a site. I don't know if those messages are related to this issue.

    Generally, I ignore this warning, and things seem to run fine. If someone can come up with a version of the .dll compiled with -DEAPI, I'd like to test it out.

    I did some research, and came up with the following:


    There is some information about compiling PHP for Windows at:

    http://www.phpfreaks.com/phpmanual/p...l.windows.html

    but I don't see specific information about -DEAPI.


    There is some information about seting -DEAPI in Visual C++ 6 here:

    http://www.opensa.org/archive/opensa.../msg00017.html


    This message:

    http://bugs.php.net/bug.php?id=15309

    suggests contacting:

    php-general@lists.php.net


    This message:

    http://bugs.php.net/bug.php?id=13893

    includes the following comments from sniper@php.net:

    (snip)

    Not a bug. You need to compile PHP with the apache you're
    running it with as the distribution module is not compiled
    with Apache that has EAPI enabled.

    Or use the CGI instead.

    --Jani

    (/snip)


    The basic information for compiling Apache for Windows is here:

    http://httpd.apache.org/docs/win_compiling.html
    Last edited by webdevguy1; 05-01-2003 at 12:37 PM.

  13. #13
    Join Date
    Apr 2003
    Location
    Berkeley
    Posts
    3

    Compiling php4apache.dll as an EAPI

    Here are the steps I followed to compile php4apahce.dll--as EAPI--under windows. In this case, I'm using Microsoft's--curse them--visual c++ 6.0. The first part of this tutorial is taken directly from the php online manual. So, go to:

    http://www.php.net/manual/en/install.windows.php

    start at "Building From Source." You'll want to follow these steps verbatum, all the way through "Build reslov.lib." Once you have finished the steps under the "Build resolve.lib" section," you should open Visual C++. Under "File" select "Open workspace." You'll want to open php4ts.dsw, this is located in the win32 folder of you php source. Once the php4ts workspace is loaded, select "projects" -> "settings" from the main menu. Then select the php4apache project in the list. Now click on the "c/c++" tab and you will see the preprocessor definitions. Here you should add "EAPI,"(without the quotes). Now go back to the main menu. Select "Tools" -> "Options." Now click on the "Directories" tab and select "include files" from the drop down menu. You will need to add the path to your apache include directory. Ex: "C:\apache\include" Now select "library files" from the drop down menu. YOu need to add the path to your apache lib directory: "c:\apache\lib" and your apache "libexec" directory "c:\apache\libexec" Now click "ok" and return to the main menu. Go to "Build" and select "active configuration." From the menu select "php4apache-Win32Release_TS" and click "ok" Select "Build" again and then select "Rebuild all." Once the compile has comleted, go to your php source, and look in the Release_TS directory. You should have "php4apache.dll" compiled as an EAPI.

  14. #14
    Join Date
    Aug 2002
    Posts
    9

    Re: Compiling php4apache.dll as an EAPI

    Steven,

    Thanks for posting that build information. As I'm sure you know, it is not commonly known.

    Scott

  15. #15
    Join Date
    May 2003
    Location
    Dallas, TX
    Posts
    1

    Re: php4apache.dll

    Originally posted by stevenwulf
    Last week I finally figured out how to compile php4apache.dll as an EAPI, this eliminates all error messages when you fire apache up. And so far, I've experienced no abnormal behavior with apache or php. I haven't had time to post the proceedure I went through to do the compile, but I hope to have a post up by next week. If you want to try running this .dll, just send me an email and I'll send it to you as an attachment. Email: runner@uclink4.berkeley.edu.

    Thanks,

    Steven
    Steven, I do not have VC++ (like many others). Do you think that you could post that file as an attachment to this thread, or even a link to someplace to download it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •