#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Dear all,

    I have run webserver on Windows 2000, My webserver to running is not IIS, i run OpenSA (had build Apache, SSL, PHP) but i don't know how to run php. I download PHP Installer for PHP 4.03 in http://php.weblogs.com/easywindows. Setup is done, all config are set. But when i try access to: http://php.vhvietnam.com/test.php is show-up error 404. (i'm sure the test.php in there). But when i rename test.php to test.htm then work but the phpinfo not show-up.

    At my httpd.conf are:

    DirectoryIndex index.htm index.html index.php index.php3
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .phtml
    AddType application/x-httpd-php4 .php
    AddType application/x-httpd-php4 .php3
    AddType application/x-httpd-php-source .phps

    ScriptAlias /php/ "C:/Apache/PHP/"

    Action application/x-httpd-php "c:/apache/php/php.exe"
    Action application/x-httpd-php-source "c:/apache/php/php.exe"
    Action application/x-httpd-php4 "/php/php.exe"

    All php*.dll in c:winntsystem32
    and php.ini in c:winnt

    Can someone help me to let php run.

    You can check that at: http://php.vhvietnam.com

    Thanks.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    2
    Rep Power
    0
    The first two Action lines are incorrect, they must point to a relative not an absolute path. Change them so they look like the third Action line. Also there are repeated AddType lines at the top, which may confuse Apache, and may be the source of the problem also.

    [This message has been edited by voicebox (edited October 13, 2000).]
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Hi Voicebox,

    Thanks for your comment, but still cannot run it.

    I already fix the setup in httpd.conf. Here they are:

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

    Action application/x-httpd-php4 "/php/php.exe"
    Action application/x-httpd-php "/php/php.exe"

    ScriptAlias /php/ "C:/Apache/PHP/"

    Can you take a look and give me more detail.

    Thanks for your help.

    [This message has been edited by Toan (edited October 13, 2000).]

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 11:45 PM
  2. Replies: 4
    Last Post: January 28th, 2004, 09:29 AM
  3. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 02:14 PM
  4. Passing string from PHP to Javascript
    By ka8oad in forum JavaScript Development
    Replies: 4
    Last Post: January 17th, 2004, 04:12 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 02:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo