RE: [PHP-DB] no sapi folder, or dll! RE: [PHP-DB] php/ apache/ windows XP
| From: | Einar Jónsson | Date: | Fri, 25 Apr 2003 22:01:04 +0000 |
| Subject: | RE: [PHP-DB] no sapi folder, or dll! RE: [PHP-DB] php/ apache/ windows XP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27371@lists.php.net to get a copy of this message | ||
isn't the installer only intended for IIS?
try downloading the .zip package and follow the install instructions
provided.
-----Original Message-----
From: Mechanical Messiah [mailto:mechanicalmessiah@yahoo.com]
Sent: 25. apríl 2003 21:25
To: php-db@lists.php.net
Subject: [PHP-DB] no sapi folder, or dll! RE: [PHP-DB] php/ apache/
windows XP
i don't have a sapi folder, nor a php4apache.dll...
i downloaded the installer, what might be the problem?
wrong version or something?
argh! :P sorry for the bother...
--- Einar_Jónsson <ej@emax.is> wrote:
> looks like you didn't read the install.txt provided
> with php, so i'll
> just paste the important part here for your
> convenience:
>
> Installing PHP for Apache as module
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Now that version 4.1 introduces a safer sapi
> module, we recommend
> that you configure PHP as a module in Apache.
>
> To accomplish this, you have to load the
> php4apache.dll in your
> Apache httpd.conf.
>
> !! NOTE !!
> Whereever you load php4apache.dll from,
> php4apache.dll also
> needs the php4ts.dll also included in the PHP4 distribution.
> php4apache.dll depends on php4ts.dll which is
> loaded as soon as
> Apache loads php4apache.dll. If php4ts.dll can't
> be found, you
> usually get an error like (also see the
> "Problems?" section at
> the end of the file):
>
> Cannot load c:/php/sapi/php4apache.dll into
> server
>
> So where does php4ts.dll has to be to be properly
> loaded ?
> php4ts.dll is searched in the following order:
>
> 1) in the directory where apache.exe is start from
> 2) in the directory where php4apache.dll is loaded
> from
> 3) in your %SYSTEMROOT%\System32,
> %SYSTEMROOT%\system and
> %SYSTEMROOT% directory.
> Note: %SYSTEMROOT%\System32 only applies to
> Windows NT/2000/XP)
> 4) in your whole %PATH%
>
> Note: What is %SYSTEMROOT% ? Depending on your
> Windows
> installation this may be for example
> c:\winnt or C:\windows
>
> Usually you would just copy it over to %SYSTEMROOT%\System32.
> But if you want to have multiple PHP installations
> (for
> whatever reason) this is a bad idea. For this
> circumstance the
> safest thing is to let php4ts.dll reside in the
> same directory
> where php4apache.dll is loaded from (see point 2
> above).
>
>
> After you've set up the file layout properly,
> you're ready to
> finally configure Apache to load the PHP4 module.
> Just add the
> following lines to your httpd.conf:
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
> AddType application/x-httpd-php .php
>
> Note: Especially newer versions of Apache do not
> need the
> AddModule directive anymore, your milage may
> vary.
>
>
> Where do I have to put the php.ini ?
> The php.ini files is only searched in two places:
> 1) in your Apache installation directory (e.g.
> c:\apache\apache)
> 2) in your %SYSTEMROOT% directory.
>
>
>
>
> -----Original Message-----
> From: Mechanical Messiah
> [mailto:mechanicalmessiah@yahoo.com]
> Sent: 25. apríl 2003 19:32
> To: php-db@lists.php.net
> Subject: [PHP-DB] php/ apache/ windows XP
>
>
> What is the problem here? I'm a n00b, I'm extremely
> sorry if I'm wasting your time, but I couldn't find
> the answer elsewhere!
>
> I'm trying to set up php through apache4 on an XP
> server. all i get when i view a php file is the
> source
> of it displayed in the browser.
>
> added to httpd.conf --> "LoadModule php4_module
> ../../../php/php4ts.dll"
>
> error -->
> "Syntax error on line 174 of C:/Program Files/Apache
> Group/Apache2/conf/httpd.conf:
> Can't locate API module structure `php4_module' in
> file C:/PHP/php4ts.dll: No error"
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php