Announcement

Collapse
No announcement yet.

Configuring PHP, Apache, and MySQL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configuring PHP, Apache, and MySQL

    The best way to help Apolyton is to help me sort out my newbie PHP problems.

    <b>Error</b>:
    Not Found
    The requested URL /app/php/php.exe/experiments/crap.php was not found on this server.
    Apache/1.3.20 Server at localhost Port 80

    <b>Apps</b>:
    c:\app\Apache Group\apache
    c:\app\php
    c:\app\mysql

    <b>Content</b>:
    c:\leo\php

    <b>httpd.conf</b>:
    ScriptAlias /php/ "c:/app/php/"
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/app/php/php.exe"
    ~
    ServerName localhost
    ~
    DocumentRoot "C:/leo/php"

    <b>php.ini</b>:
    doc_root = c:\leo\php
    extension_dir = C:\app\php

    <b>former my.cnf</b>
    [mysqld]
    basedir=c:/app/mysql/
    datadir=c:/app/mysql/

    <b>c:\leo\php\experiments\crap.php</b>:
    &lt;html&gt;
    &lt;head&gt;
    &lt;title&gt;PHP Test&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;?php echo "Hello World&lt;p&gt;"; ?&gt;
    &lt;/body&gt;
    &lt;/html&gt;

    Any ideas for fixing the 404?

    P.S. MySQL isn't involved, but I am wondering whether I need to do anything with it to integrate it with Apache/PHP.
    Blog | Civ2 Scenario League | leo.petr at gmail.com

  • #2
    Hey Leo!
    Long time no see.

    Wrong forum though, buddy.

    I've gotten similar errors before. Can't recall how I ever fixed it.
    "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
    Ben Kenobi: "That means I'm doing something right. "

    Comment


    • #3
      What's the right one?

      Do you have a working PHP installation?
      Blog | Civ2 Scenario League | leo.petr at gmail.com

      Comment


      • #4
        Off-Topic is the right one.

        I've got Apache 1.3.20 w/ PHP + MySQL working perfectly on WinXP.
        "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
        Ben Kenobi: "That means I'm doing something right. "

        Comment


        • #5
          <i>Off-Topic is the right one.</i>

          1. Have you looked at the Apolyton OT lately?
          2. I'm installing these because Markos told me to.

          <i>I've got Apache 1.3.20 w/ PHP + MySQL working perfectly on WinXP.</i>

          I don't.
          Blog | Civ2 Scenario League | leo.petr at gmail.com

          Comment


          • #6
            Originally posted by St Leo
            1. Have you looked at the Apolyton OT lately?
            2. I'm installing these because Markos told me to.
            We need more sanity, come join us.

            I don't.
            [drone]Did you try reinstalling?[/drone]
            "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
            Ben Kenobi: "That means I'm doing something right. "

            Comment


            • #7
              Action application/x-httpd-php "/app/php/php.exe"


              change to

              Action application/x-httpd-php "c:/app/php/php.exe"


              which might need to be

              Action application/x-httpd-php "c:\app\php\php.exe"
              Co-Founder, Apolyton Civilization Site
              Co-Owner/Webmaster, Top40-Charts.com | CTO, Apogee Information Systems
              giannopoulos.info: my non-mobile non-photo news & articles blog

              Comment


              • #8
                The slashes don't matter, I've tried both on my system.
                "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                Ben Kenobi: "That means I'm doing something right. "

                Comment


                • #9
                  New Error

                  <b>New Error:</b>
                  Bad Request
                  Your browser sent a request that this server could not understand.
                  Invalid URI in request GET /experiments/crap.php HTTP/1.1
                  Apache/1.3.20 Server at localhost Port 80

                  I've tried removing the PHP code to no effect. BTW, *.htm files work
                  Blog | Civ2 Scenario League | leo.petr at gmail.com

                  Comment

                  Working...
                  X