php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5732 Access Violation opening http://localhost/php/php.exe
Submitted: 2000-07-22 01:43 UTC Modified: 2000-07-25 00:04 UTC
From: patrick at automotive dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: WinNT Wks 4.0 SP 6a
Private report: No CVE-ID: None
 [2000-07-22 01:43 UTC] patrick at automotive dot com
Access violation when accessing url:

http://localhost/php/php.exe


Using the default setup recommended for NT/apache and php, This places the virtual path /php/ with the program file/dll/ini files available to the world.  Acessing php.exe causes an AV, does no this seem like somewhat of a security issue as well?  Or shold I be placing my ini files and dlls elsewhere?  Or just deny access to them?  Either way, this ug is still very reproducable.  Contact me if you need more info.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-25 00:04 UTC] waldschrott@php.net
you?ve to register apache to handle .php files in the httpd.conf, you?re never (rarely) accessing php.exe directly, your php dir shouldn?t be a subdir of your php dir, you can change this setting using

DocumentRoot "c:/phpfiles"
You should place you .php files into this dir, these should be registered using (for example):

ScriptAlias /php4 "d:/Programme/Apache Group/Apache/php-4"
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php4 .php
Action application/x-httpd-php4 "/php4/php.exe"

I?m guessing you didn?t follow the instructions or you?re not well informed using php/Apache.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 08:01:36 2025 UTC