Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29507 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68844 invoked by uid 1010); 17 May 2007 23:27:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68829 invoked from network); 17 May 2007 23:27:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2007 23:27:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=news@sea.gmane.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:38749] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/82-10325-5D4EC464 for ; Thu, 17 May 2007 19:27:18 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HopNC-0004Xr-LE for internals@lists.php.net; Fri, 18 May 2007 01:27:06 +0200 Received: from dslb-084-057-137-141.pools.arcor-ip.net ([84.57.137.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 May 2007 01:27:06 +0200 Received: from carsten_sttgt by dslb-084-057-137-141.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 May 2007 01:27:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Fri, 18 May 2007 01:26:50 +0200 Lines: 292 Message-ID: References: Reply-To: "Carsten Wiedmann" Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0214_01C798EB.9BB81EE0" X-Gmane-NNTP-Posting-Host: dslb-084-057-137-141.pools.arcor-ip.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Sender: news Subject: Re: [PHP-DEV] comment to Bug #41408 From: carsten_sttgt@gmx.de ("Carsten Wiedmann") ------=_NextPart_000_0214_01C798EB.9BB81EE0 Content-Type: text/plain; format=flowed; charset="iso-8859-15"; reply-type=response Content-Transfer-Encoding: 7bit Hello list, > For a correct solution you should allways use forwardslashs > in the Apache config files, also on Windows: > > PHPIniDir "C:/Program Files/PHP" Just to clarify that. The Apache manual [1] is very clear about that: | For example, in a default install, Apache resides at ... | "c:/Program Files/Apache Group/Apache2" in the Windows filesystem. | (Note that forward slashes should always be used as the path separator | in Apache, even for Windows.) After a review of the file "PHPInstallerScripts60.vbs" in the cvs, I found other problems. The cgi setup can't work: - wrong target in the Action directive - no Directory block for the ScriptAlias (this should also changed in the documentation) I find problematic also, that you change the "mime.types" instead of using AddType. From the Apache manual [2]/[3] : | It is recommended that new MIME types be added using the AddType | directive rather than changing the TypesConfig file. | | You should not edit the mime.types file, because it may be replaced | when you upgrade your server. IMHO you should respect the Apache manual. And in addition not confusing the user. Apache also uses only forwardslashs in its installer and default config file. And with the current PHP installer you have single backslashs (module) or double backslashs (cgi). I've appended a diff to this mail, which change/correct the behavior of the installer. It's a diff against revision 1.4 of the file "PHPInstallerScripts60.vbs" and replace the sub procedure configApache. With a change of the line 'strVersion = "php6"' to 'strVersion = "php5"', this should also work in the file "PHPInstallerScripts52.vbs". Maybe someone want look at this. Regards, Carsten [1] http://httpd.apache.org/docs/2.2/en/sections.html#file-and-web [2] http://httpd.apache.org/docs/2.2/en/mod/mod_mime.html#addtype [3] http://httpd.apache.org/docs/2.2/en/mod/mod_mime.html#typesconfig ------=_NextPart_000_0214_01C798EB.9BB81EE0--