Results 1 to 5 of 5

Thread: 404 Not Found

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved 404 Not Found

    I have
    Code:
    ScriptAlias /php4/ "C:/php4"
    AddType application/x-httpd-php .php .phtml
    AddType application/x-httpd-php-source .phps
    Action application/x-httpd-php "C:/php4/php.exe"
    on my httpd.conf and I get 404 Not Found error
    Code:
    The requested URL /php4/php.exe/phpinfo.php was not found on this server.
    Am I missing something? I have extracted php4.4.1. to C:/php4.

    Edit: I just edited the config and added
    Code:
    LoadModule php4_module "C:/php4/sapi/php4apache2.dll"
    AddType application/x-httpd-php .php
    and viola it worked.
    Last edited by nebulom; Nov 22nd, 2006 at 01:07 AM.

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: 404 Not Found

    any real reason you're not installing PHP as a module on Apache?

    either way, I've only ever installed PHP as a module, so I doubt very much I could help you. just by looking at it though, I'm confused as to what you're requesting from the browser. are you going to localhost/phpinfo.php? localhost/php4/phpinfo.php? or are you actually entering localhost/php4/php.exe/phpinfo.php?

    Version of Apache?

    edit: nevermind, guess you figured out how to install it as a module instead of as a CGI while I was looking around for similar problems.

    Just a note: installing PHP as a CGI on a webserver opens you up to several possible attacks. you can read, I believe, on php.net about these. I don't have a link, but I'm sure you could find it by searching google if you were so inclined.
    Last edited by kows; Nov 22nd, 2006 at 01:26 AM.

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: 404 Not Found

    Quote Originally Posted by nebulom
    I have
    Code:
    ScriptAlias /php4/ "C:/php4"
    AddType application/x-httpd-php .php .phtml
    AddType application/x-httpd-php-source .phps
    Action application/x-httpd-php "C:/php4/php.exe"
    on my httpd.conf and I get 404 Not Found error
    Code:
    The requested URL /php4/php.exe/phpinfo.php was not found on this server.
    Am I missing something? I have extracted php4.4.1. to C:/php4.

    Edit: I just edited the config and added
    Code:
    LoadModule php4_module "C:/php4/sapi/php4apache2.dll"
    AddType application/x-httpd-php .php
    and viola it worked.
    Why aren't you using PHP 5
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: 404 Not Found

    Hehe. Coz there's just a little revision on it and I don't want myself getting involve with the migrating from 4 to 5. Not for now. It would be okay though if I code 5 from scratch.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: 404 Not Found

    Unless your PHP scripts are actually in c:\php4, get rid of the ScriptAlias.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width